Skip to content

Refine mcp server configuration type #120

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
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

charleyslee
Copy link

Support precise typing of MCP server configurations by conditionally enforcing stdio or sse server specific properties.

Stdio server properties:

  • command (required)
  • args
  • env

SSE server properties:

  • url (required)
  • headers

Also added a $schema link in the README config example for visibility.

@kujtimiihoxha
Copy link
Collaborator

@charleyslee we need to change the script that generates this, not the opencode-schema.json directly.

cmd/schema/main.go

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.

2 participants