Skip to content

Fix/issue 844 cursor mcp json schema#869

Open
chaobo8484 wants to merge 6 commits intomicrosoft:mainfrom
chaobo8484:fix/issue-844-cursor-mcp-json-schema
Open

Fix/issue 844 cursor mcp json schema#869
chaobo8484 wants to merge 6 commits intomicrosoft:mainfrom
chaobo8484:fix/issue-844-cursor-mcp-json-schema

Conversation

@chaobo8484
Copy link
Copy Markdown

@chaobo8484 chaobo8484 commented Apr 23, 2026

Description

Brief description of changes and motivation.

Fixes # (issue)

Type of change

  • Bug fix
  • New feature
  • Documentation
  • Maintenance / refactor

Testing

  • Tested locally
  • All existing tests pass
  • Added tests for new functionality (if applicable)

chaobo8484 and others added 3 commits April 23, 2026 09:53
When load_policy() receives a YAML string that exceeds ~1023 bytes,
the is_file() syscall fails on macOS (PATH_MAX ≈ 1024) with
OSError [Errno 63] File name too long. Wrap the call in try/except
to gracefully fall back to treating the input as a YAML string.

Fixes microsoft#848
- Override _format_server_config() to emit correct 'type' field:
  - stdio transports -> 'type: stdio' (not 'type: local')
  - http/sse transports -> 'type: http'
- Remove Copilot-specific 'tools' and 'id' fields that cause
  Cursor's MCP loader to silently reject servers

Fixes microsoft#844
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant