Skip to content

Commit 138e912

Browse files
stephentoubCopilot
andcommitted
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>
1 parent c1c7a85 commit 138e912

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

nodejs/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export type {
3131
InfiniteSessionConfig,
3232
InputOptions,
3333
MCPStdioServerConfig,
34-
MCPHttpServerConfig,
34+
MCPHTTPServerConfig,
3535
MCPServerConfig,
3636
MessageOptions,
3737
ModelBilling,

nodejs/src/types.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -951,7 +951,7 @@ export interface MCPStdioServerConfig extends MCPServerConfigBase {
951951
/**
952952
* Configuration for a remote MCP server (HTTP or SSE).
953953
*/
954-
export interface MCPHttpServerConfig extends MCPServerConfigBase {
954+
export interface MCPHTTPServerConfig extends MCPServerConfigBase {
955955
type: "http" | "sse";
956956
/**
957957
* URL of the remote server.
@@ -966,7 +966,7 @@ export interface MCPHttpServerConfig extends MCPServerConfigBase {
966966
/**
967967
* Union type for MCP server configurations.
968968
*/
969-
export type MCPServerConfig = MCPStdioServerConfig | MCPHttpServerConfig;
969+
export type MCPServerConfig = MCPStdioServerConfig | MCPHTTPServerConfig;
970970

971971
// ============================================================================
972972
// Custom Agent Configuration Types

python/copilot/session.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -737,7 +737,7 @@ class MCPStdioServerConfig(TypedDict, total=False):
737737
cwd: NotRequired[str] # Working directory
738738

739739

740-
class MCPHttpServerConfig(TypedDict, total=False):
740+
class MCPHTTPServerConfig(TypedDict, total=False):
741741
"""Configuration for a remote MCP server (HTTP or SSE)."""
742742

743743
tools: list[str] # List of tools to include. [] means none. "*" means all.
@@ -747,7 +747,7 @@ class MCPHttpServerConfig(TypedDict, total=False):
747747
headers: NotRequired[dict[str, str]] # HTTP headers
748748

749749

750-
MCPServerConfig = MCPStdioServerConfig | MCPHttpServerConfig
750+
MCPServerConfig = MCPStdioServerConfig | MCPHTTPServerConfig
751751

752752
# ============================================================================
753753
# Custom Agent Configuration Types

0 commit comments

Comments
 (0)