This is a minimal MCP server designed to reproduce the issue where Cursor Desktop incorrectly rejects valid values for optional parameters that use JSON Schema union types (e.g., ["null", "string"]).
- build the MCP server with
go build - add
cursor-mcp-testto registered servers~/.cursor/mcp.go:
{
"mcpServers": {
"cursor-mcp-test": {
"command": "/absolute/path/to/cursor-mcp-test"
}
}
}- Restart Cursor and ask it to invoke the server's "Example Tool"