A Model Context Protocol (MCP) server exposing GitHub documentation (enterprise site) topics via the Context7 API to AI clients.
get_github_docs
– Retrieve a GitHub documentation excerpt by topic slug / keyword
- Node.js 18+
npm install
npm run build
npm test
Runs the Vitest suite (test/
directory) covering the fetch helper and truncation behavior.
Integrate with an MCP-compatible client (the client is responsible for spawning the process over stdio):
node build/index.js
You should see on stderr:
GitHub Docs MCP Server running on stdio
Input:
{ "topic": "enterprise" }
Output: Text excerpt (truncated to ~5KB) of the requested GitHub documentation topic.
- Source in
src/
- Compiled JS in
build/
- Shared HTTP helper:
fetchGitHubDocs
- Validation via
zod
Follow the pattern in src/tools/github-docs.ts
(temporary filename) (see copilot-instructions.md
for full guidelines):
- Describe succinctly
- Validate inputs with
zod
- Wrap logic in try/catch; return friendly failures
- Keep responses concise
- All operational logs to stderr
- User-facing messages are short, no stack traces
PRs welcome. Keep diffs minimal and aligned with existing style. See copilot-instructions.md
for acceptance criteria.
MIT