Skip to content

Conversation

@dancer
Copy link
Collaborator

@dancer dancer commented Jan 19, 2026

background

adds an mcp (model context protocol) server that provides searchable, paginated access to ai sdk documentation, allowing ai assistants to find and retrieve relevant docs on demand

summary

  • add @ai-sdk/mcp-docs-server package with three tools: search_ai_sdk_docs, get_ai_sdk_doc, list_ai_sdk_docs
  • add documentation page at docs/03-ai-sdk-core/66-mcp-docs-server.mdx
  • update introduction page with new "ai tooling" section covering llms.txt and mcp
  • include installation instructions for cursor and claude code

verification

  • all tests pass covering search, retrieval, pagination, and edge cases
  • tested with cursor and claude code mcp clients
  • tested edge cases: empty queries, special characters, negative limits, path traversal attempts

test with cursor locally

add to .cursor/mcp.json:

{
  "mcpServers": {
    "ai-sdk-docs": {
      "command": "node",
      "args": ["/path/to/ai/packages/mcp-docs-server/dist/index.js"]
    }
  }
}

test with claude code locally

claude mcp add ai-sdk-docs -- node /path/to/ai/packages/mcp-docs-server/dist/index.js

checklist

  • Tests have been added / updated (for bug fixes / features)
  • Documentation has been added / updated (for bug fixes / features)
  • A patch changeset for relevant packages has been added (for bug fixes / features - run pnpm changeset in the project root)
  • I have reviewed this pull request (self-review)

@vercel-ai-sdk vercel-ai-sdk bot added the ai/mcp label Jan 19, 2026
@vercel-ai-sdk vercel-ai-sdk bot added the documentation Improvements or additions to documentation label Jan 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ai/mcp documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants