Files
mcp-use__mcp-use/context7.json
T
Luigi Pederzani 8c385e38f3 Improve Context7 configuration for mcp-use docs (#1606)
* improve context7.json file for github repo reference

* Add mcp-use Context7 generation rules

* Include curated examples in Context7 config
2026-06-03 09:46:02 -07:00

69 lines
3.7 KiB
JSON

{
"$schema": "https://context7.com/schema/context7.json",
"url": "https://context7.com/mcp-use/mcp-use",
"public_key": "pk_DHbfCHmtCxcbCOAR8Q9HX",
"projectTitle": "mcp-use - The fullstack MCP framework to develop MCP Apps for ChatGPT / Claude & MCP Servers for AI",
"description": "Fullstack MCP framework for TypeScript and Python. Build MCP Apps for ChatGPT and Claude, MCP Servers, MCP Clients, and MCP Agents with end-to-end type safety, a built-in Inspector, OAuth, and one-command deploy.",
"folders": [
"docs/home",
"docs/typescript/server",
"docs/guides",
"docs/python/server",
"docs/typescript/getting-started",
"docs/python/getting-started",
"docs/typescript/client",
"docs/python/client",
"docs/typescript/agent",
"docs/python/agent",
"docs/python/integration",
"docs/python/development",
"docs/inspector",
"docs/tunneling",
"examples",
"libraries/python/examples",
"libraries/typescript/packages/mcp-use/examples"
],
"excludeFolders": [
"docs/snippets",
"docs/images",
"docs/home/redirects",
"docs/typescript/changelog",
"docs/python/changelog",
"libraries/typescript/packages/mcp-use/examples/client/conformance",
"**/dist",
"**/build",
"**/coverage",
"**/node_modules"
],
"excludeFiles": [
"README.md",
"CONTRIBUTING.md",
"TESTING.md",
"CHANGELOG.md",
"changelog.md",
"CHANGELOG.mdx",
"changelog.mdx",
"LICENSE.md",
"license.md",
"CODE_OF_CONDUCT.md",
"code_of_conduct.md"
],
"rules": [
"mcp-use is a fullstack MCP framework. Lead with building MCP Apps for ChatGPT and Claude, then production MCP Servers.",
"Use the TypeScript MCP Server and MCP Apps docs as the primary source for new app and server code.",
"Use Python server, client, and agent docs for Python SDK examples. Avoid mixing TypeScript and Python APIs.",
"MCPAgent plus an LLM is the Agent capability only. Do not present connecting an LLM to an MCP server as the headline use case.",
"Prefer concept-anchored API examples from the docs tree over install/run shell snippets or example README files.",
"For widgets, prefer the MCP Apps flow using mcp-use server widgets and React hooks such as useWidget, useCallTool, useFiles, and ModelContext.",
"For server examples, prefer MCPServer tools, resources, prompts, response helpers, OAuth providers, middleware, session management, Inspector, and deployment docs.",
"Every tool should set explicit annotations readOnlyHint, openWorldHint, and destructiveHint; add outputSchema when returning structured content or widget props.",
"Import server APIs from mcp-use/server and React hooks/components from mcp-use/react; avoid internal package paths unless docs explicitly require them.",
"For new TypeScript MCP servers or apps, scaffold with npx create-mcp-use-app instead of hand-rolling MCPServer boilerplate, package.json, or widget build setup.",
"Tool handlers should use Zod schemas with describe fields and return response helpers such as text(), object(), widget(), and error() instead of raw objects or thrown errors.",
"Widgets should use McpUseProvider autoSize, useWidget<Props>(), and an isPending guard before reading props; keep UI state inside the widget.",
"Use useCallTool() for widget-initiated tool calls and ModelContext only to describe what the user is seeing, not as persistent state.",
"Verify tools and widgets with mcp-use client and mcp-use client screenshot during development, especially before shipping widget changes.",
"Never hardcode secrets. Read API keys and configuration from environment variables and document required variables in .env.example."
]
}