Skip to content

feat(context7): add the Context7 MCP Plugin for current library documentation - #83

Open
fangfuzha wants to merge 1 commit into
MiniMax-AI:mainfrom
fangfuzha:feat/fangfuzha-context7
Open

fangfuzha wants to merge 1 commit into
MiniMax-AI:mainfrom
fangfuzha:feat/fangfuzha-context7

Conversation

@fangfuzha

@fangfuzha fangfuzha commented Nov 21, 2026 •

Copy link
Copy Markdown

What changes

Adds the Context7 Plugin at plugins/fangfuzha/context7: the official Context7 MCP server
(https://mcp.context7.com/mcp/oauth) plus one Skill that resolves a library ID and queries the
documentation, so the agent answers version-specific library questions from the docs instead of from memory.

User value

Example prompt:

Next.js 15 的 middleware 里怎么读 cookie?

Expected result: the agent resolves Next.js through resolve-library-id, asks query-docs one focused
question, and answers from the returned documentation instead of from memory. Version-specific behavior and
setup steps come from the docs, and the agent says so when the docs do not cover a question.

Plugin submission checklist

  • Plugin lives at plugins/fangfuzha/context7.
  • plugin.json name matches the Plugin directory.
  • README.md includes a real example prompt and expected result.
  • LICENSE and plugin.json declare an open-source license (Apache-2.0).
  • Required executables, accounts, paid services, and supported platforms are disclosed.
  • Network destinations and data handled by the plugin are disclosed.
  • No credentials, private endpoints, hidden telemetry, installers, symlinks, or native binaries are included.
  • Every scaffold TODO has been replaced.
  • npm run check passes.

Dependencies and platforms

  • No local runtime and no extra executable; internet access to mcp.context7.com only.
  • A free Context7 account is required: the endpoint answers every unauthenticated request with 401,
    so the client completes the OAuth 2.1 (PKCE) flow once.
  • Windows, macOS and Linux.

Network and data

  • mcp.context7.com - the Context7 MCP server. A query sends the library name or library ID and the question text.
  • context7.com - the OAuth sign-in page opened during authorization.
  • No telemetry, no analytics, and no shipped credentials. The MCP entry deliberately carries no Authorization
    header so the runtime performs the OAuth flow.

Evidence

  • npm run validate: OK plugin fangfuzha/context7 (34 hosted Plugins and all examples validated).
  • Manual: the endpoint and its OAuth challenge were checked against the live server; the Skill documents the
    401 path and the fallback of adding the server in the global MCP settings.
  • Note: the repository test suite reports pre-existing failures in plugins/weekbin/octopus-meme-maker
    (local Pillow/CJK font environment); they are unrelated to this Plugin.

Proof this PR
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant