Skip to content

docs: add unauthenticated docs MCP proxy at /docs/mcp#4853

Open
philip wants to merge 1 commit intomainfrom
docs/mcp-category-docs
Open

docs: add unauthenticated docs MCP proxy at /docs/mcp#4853
philip wants to merge 1 commit intomainfrom
docs/mcp-category-docs

Conversation

@philip
Copy link
Copy Markdown
Collaborator

@philip philip commented May 5, 2026

Summary

Makes /docs/mcp a real MCP server endpoint (not just a discovery descriptor) by proxying requests to mcp.neon.tech/mcp?category=docs, which exposes list_docs_resources and get_doc_resource without requiring OAuth.

  • GET — unchanged, returns the MCP Foundation server.json descriptor pointing to ?category=docs
  • POST — new: proxies MCP protocol requests (initialize, tools/list, tools/call) to the unauthenticated docs endpoint
  • Middleware fix — adds docs/mcp to the static prefix exclusions so the middleware doesn't intercept MCP protocol POSTs before they reach the route handler

Depends on neondatabase/mcp-server-neon#230 adding unauthenticated support for ?category=docs. The check script will show 1 failure until that PR merges to production.

Test plan

  • node scripts/check-agent-endpoints.js http://localhost:3000 — 8/9 pass (POST 401 until MCP PR merges)
  • After MCP PR merges: all 9 pass
  • npx vitest run src/app/\(docs\)/docs/mcp/route.test.js — 8/8 pass

@vercel
Copy link
Copy Markdown

vercel Bot commented May 5, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
neon-next Ready Ready Preview, Comment May 5, 2026 3:04am

Request Review

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