MCP Server
Debugging
Test and troubleshoot MCP tools
MCP Inspector
Use the MCP Inspector to test tools interactively without an AI client:
npx @modelcontextprotocol/inspector uv --directory /path/to/MCP-Template run mycli-mcpThis opens a web UI where you can:
- Browse all available tools
- Call each tool with custom parameters
- Inspect request/response payloads
- Verify error handling
Common Issues
Server not showing up in client
- Verify the path in your config points to the correct
MCP-Templatedirectory - Make sure
uvis installed and on your PATH - Restart your AI client after saving the config
Tools not appearing
- Run
uv syncin the MCP-Template directory to ensure dependencies are installed - Try running
uv --directory /path/to/MCP-Template run mycli-mcpmanually to check for errors
Tool call returns an error
- Check the error message in the response - it usually describes the issue
- Use
config_getwith a known key to verify the server is working - Run
doctorto check for environment issues