You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Refactor MCP server config types across all SDK languages (#1051)
* Refactor MCP server config types across all SDK languages
Introduce an abstract McpServerConfig base class in C# with a private
protected constructor and sealed derived types McpStdioServerConfig and
McpHttpServerConfig. Shared properties (Tools, Type, Timeout) are
deduplicated into the base class. The Type property uses the
JsonPolymorphic discriminator pattern consistent with SessionEvent.
All Dictionary<string, object> McpServers properties are now strongly
typed as Dictionary<string, McpServerConfig>.
Rename Local/Remote to Stdio/Http across all four SDK languages to
match MCP protocol terminology:
- C#: McpStdioServerConfig / McpHttpServerConfig
- TypeScript: MCPStdioServerConfig / MCPHttpServerConfig
- Go: MCPStdioServerConfig / MCPHTTPServerConfig
- Python: MCPStdioServerConfig / MCPHttpServerConfig
Update documentation examples accordingly.
Fixes#245
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Use idiomatic HTTP casing in Python and TypeScript type names
Rename MCPHttpServerConfig to MCPHTTPServerConfig in Python (matching
stdlib convention: HTTPServer, HTTPError) and TypeScript (matching
the all-caps treatment of MCP already in use).
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Update mcp-servers C# scenario to use strongly-typed McpServerConfig API
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Make Go MCPServerConfig type-safe with interface + marker method
Change MCPServerConfig from map[string]any to an interface with a
private marker method, matching the type-safety approach used for C#.
MCPStdioServerConfig and MCPHTTPServerConfig implement the interface
and use MarshalJSON to auto-inject the type discriminator.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Fix consistency gaps: update JSDoc and drop stale type field in Python tests
- Update MCPServerConfigBase JSDoc to reference stdio/http instead of
local/remote
- Remove explicit type: local from Python E2E tests (omitted type
defaults to stdio, matching Go/C# pattern)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
---------
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
0 commit comments