Skip to content

Prefer context7 for MCP spec lookups, drop hardcoded version#5805

Open
jhrozek wants to merge 1 commit into
mainfrom
context7-mcp-spec-lookups
Open

Prefer context7 for MCP spec lookups, drop hardcoded version#5805
jhrozek wants to merge 1 commit into
mainfrom
context7-mcp-spec-lookups

Conversation

@jhrozek

@jhrozek jhrozek commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

Summary

The mcp-protocol-expert agent hardcoded the 2025-11-25 MCP spec date, so it
would silently point at a superseded spec once a new stable release ships, and
one of its fallback URLs had already gone dead after a doc restructure. This
makes its spec lookups self-correcting (relevant to the protocol-currency epic
#5743).

  • Prefer context7 for MCP spec lookups (it mints a new pinned library per
    release), falling back to WebFetch against the unversioned spec index and
    sitemap.xml.
  • Drop the hardcoded spec version.

Closes #5804

Type of change

  • Other (describe): repo tooling — Claude agent configuration

Test plan

  • Manual testing (describe below)

Reviewed the updated agent instructions; change is limited to
.claude/agents/mcp-protocol-expert.md (no code or build surface).

Does this introduce a user-facing change?

No.

Generated with Claude Code

Hardcoding the 2025-11-25 date meant this agent would silently point
at a superseded spec once a new stable release ships, and one of its
fallback URLs (basic/security_best_practices) had already gone dead
after a doc restructure. Resolve the current version and page set
dynamically instead: try context7 first (it mints a new pinned
library per release), fall back to WebFetch with the unversioned
spec index and sitemap.xml as self-correcting sources of truth.

Closes #5804

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@github-actions github-actions Bot added size/XS Extra small PR: < 100 lines changed and removed size/XS Extra small PR: < 100 lines changed labels Jul 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/XS Extra small PR: < 100 lines changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

mcp-protocol-expert: prefer context7 for MCP spec lookups

1 participant