-
Notifications
You must be signed in to change notification settings - Fork 88
docs(ai-integration): align Docs MCP page with @seed-design/docs-mcp 0.7 #1930
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
cha2hyun
wants to merge
1
commit into
daangn:dev
Choose a base branch
from
cha2hyun:docs/fix-docs-mcp-tool-surface
base: dev
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win
🧩 Analysis chain
🌐 Web query:
Cursor .cursor/mcp.json type stdio configuration schema💡 Result:
In Cursor, MCP server configurations are managed via a JSON file named mcp.json [1][2]. You can place this file in two locations: - Project-specific:.cursor/mcp.json (recommended for team-shared tools) [1][3] - Global: ~/.cursor/mcp.json (for personal tools available across all projects) [1][3] When both exist, the project-level configuration takes priority [3][4]. For stdio (Standard I/O) transport, which is used for locally executed servers, the schema requires the following fields within the mcpServers object [1][5][6]: Field | Required | Description | |:--- |:--- |:--- | | type | Yes | Must be set to "stdio" [1][6] | | command | Yes | The command to start the server (e.g., npx, node, python, docker) [1][6] | | args | No | An array of arguments passed to the command [1][6] | | env | No | An object of environment variables for the server process [1][6] | | envFile | No | A path to an environment file (e.g.,.env) to load variables [1][6] | Example Configuration: { "mcpServers": { "my-local-server": { "type": "stdio", "command": "python", "args": ["${workspaceFolder}/tools/server.py"], "env": { "API_KEY": "${env:API_KEY}" } } } } Cursor supports config interpolation for values in command, args, and env fields, allowing you to use variables such as ${env:NAME}, ${userHome}, and ${workspaceFolder} [1][2]. Because stdio communication relies on stdin and stdout, ensure your server does not print debug statements or logs to stdout, as this will pollute the protocol stream and cause connection errors [5][7].
Citations:
🌐 Web query:
Cursor MCP .cursor/mcp.json createClient settings customize MCP toggle log💡 Result:
To configure Model Context Protocol (MCP) servers in Cursor, you can use either a project-specific file or a global configuration file [1][2][3]. Configuration Locations Project-specific: Create a file at.cursor/mcp.json in the root of your project [1][4]. This is recommended for team-shared tools and will take priority if a server name conflicts with the global config [1][4]. Global: Create a file at ~/.cursor/mcp.json [1][3]. This makes the configured servers available across all projects [1][4]. Configuration Format The file must use mcpServers as the top-level key; if this key is missing or misspelled, Cursor will ignore the file [4][5]. You can configure local servers (via command/args) or remote servers (via URL) [1][2][4]. Example.cursor/mcp.json: { "mcpServers": { "my-server": { "command": "npx", "args": ["-y", "mcp-server-package"], "env": { "API_KEY": "your-key-here" } } } } Managing and Troubleshooting Settings Panel: Access MCP management via Settings > Tools & MCP (in some older versions labeled Features > MCP) [6][7][5]. You can add servers here via the UI, which automatically updates your mcp.json [6][5]. Logs: If a server fails to connect, check the MCP logs. Open the Output panel (Ctrl/Cmd + Shift + U) and select the MCP Logs channel [6]. This is where specific errors such as JSON syntax issues, missing API keys, or initialization failures are reported [6]. Toggle/Refresh Issues: If a server appears connected in the settings but the AI agent cannot access its tools, toggle the server off and then on again in the Tools & MCP settings [6][8][9]. This forces a re-initialization of the server [9]. Additionally, verify that individual tools are not toggled off in the tool list within your chat panel [6]. Always ensure the master Enable MCP servers switch is active in the settings [6].
Citations:
🌐 Web query:
Cursor MCP log "createClient" Settings MCP Customize MCP💡 Result:
To customize and manage Model Context Protocol (MCP) servers in Cursor, you primarily use the Cursor settings interface or direct configuration files [1][2]. Settings and Configuration You can manage your MCP servers via the Cursor interface or by manually editing configuration files [1][2]. 1. Interface: Go to Cursor Settings > Tools & MCP (or "Tools & Integrations" in some versions) [1][3][4]. From here, you can add new servers, and enable or disable existing ones using the toggle switches [2][4][5]. 2. Configuration Files: Cursor uses mcp.json files to define servers [6][2]. - Global Config: Located at ~/.cursor/mcp.json (or %USERPROFILE%.cursor\mcp.json on Windows) [1][3][6]. This configuration applies to all projects [1][6]. - Project-Level Config: Located at.cursor/mcp.json in your project root [1][6]. This configuration applies only to the current project and takes precedence over the global config if a server is defined in both [1][6]. Logging and Debugging To debug MCP connections, you can view logs through the built-in output panel or access raw files on your system [7][8]. 1. In-Editor Logs: Open the Command Palette (Cmd/Ctrl + Shift + P), search for "Developer: Show Logs...", and select "MCP Logs" (or "Cursor MCP" from the Output panel dropdown menu) [3][8][9]. 2. System Log Files: For deeper analysis, raw log files are stored in your Cursor application support directory [7][10][11]. The path generally follows: ~/Library/Application Support/Cursor/logs/[SESSION_ID]/window[N]/exthost/anysphere.cursor-always-local/Cursor MCP.log (Replace [SESSION_ID] with the relevant timestamped folder and [N] with your window number) [7]. If you are experiencing connection issues, check the "Tools & MCP" settings page to confirm the status indicator (green for connected, yellow for loading, red for error) [1][4][9]. If an MCP server is failing to initialize, logs often provide details on transport errors, authentication issues, or schema mismatches [7][9].
Citations:
MCP 안내에서 내부 로그 경로는 제거하세요.
.cursor/mcp.json의type: "stdio"는 Cursor MCP 스키마에서 유효합니다. 하지만createClient,Settings → MCP,Customize → MCP는 Cursor 문서 경로/로그 메시지와 달리 보입니다. 사용자에게 검증 가능한Tools & MCP설정 경로와 MCP Logs 채널만 언급하세요.🤖 Prompt for AI Agents