A comprehensive guide to debugging Model Context Protocol (MCP) integrations
# Follow logs in real-timetail -n 20 -F ~/Library/Logs/Claude/mcp*.logdeveloper_settings.json file withallowDevTools set to true:echo '{"allowDevTools": true}' > ~/Library/Application\Support/Claude/developer_settings.jsonCommand-Option-Shift-iclaude_desktop_config.json may be undefined (like/ on macOS) since Claude Desktop could be started from anywhere.env files to ensure reliable operationclaude_desktop_config.json, use:{ "command":"npx", "args": [ "-y", "@modelcontextprotocol/server-filesystem", "/Users/username/data" ]}./dataUSER,HOME, andPATH.To override the default variables or provide your own, you can specify anenv key inclaude_desktop_config.json:{ "myserver": { "command":"mcp-server-myapp", "env": { "MYAPP_API_KEY":"some_key" } }}commandserver.request_context.session.send_log_message( level="info", data="Server started successfully",)Was this page helpful?