Skip to content

Commit f1c8eae

Browse files
committed
Add http transport for MCP
1 parent c77ccbc commit f1c8eae

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/copilot/chat/mcp-servers.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ By standardizing this interaction, MCP eliminates the need for custom integratio
2828

2929
### Supported MCP capabilities
3030

31-
VS Code supports local standard input/output (`stdio`) and server-sent events (`sse`) for MCP server transport. Currently of the [three primitives](https://modelcontextprotocol.io/specification/2025-03-26#features) (`tools`, `prompts`, `resources`), servers can only provide `tools` to Copilot's agent mode. The list and descriptions of tools can be updated dynamically using *list changed* events. VS Code provides servers with the current workspace folders using `roots` ([spec](https://modelcontextprotocol.io/docs/concepts/roots)).
31+
VS Code supports local standard input/output (`stdio`), server-sent events (`sse`), and streamable HTTP (`http`) for MCP server transport. Currently of the [three primitives](https://modelcontextprotocol.io/specification/2025-03-26#features) (`tools`, `prompts`, `resources`), servers can only provide `tools` to Copilot's agent mode. The list and descriptions of tools can be updated dynamically using *list changed* events. VS Code provides servers with the current workspace folders using `roots` ([spec](https://modelcontextprotocol.io/docs/concepts/roots)).
3232

3333
### Finding MCP servers
3434

@@ -152,13 +152,13 @@ Use the following JSON configuration format to define MCP servers.
152152
| `env` | Environment variables for the server. | `{"API_KEY": "${input:api-key}"}` |
153153
| `envFile` | Path to an `.env` from which to load additional environment variables. | `"${workspaceFolder}/.env"` |
154154

155-
**Connect with `sse`:**
155+
**Connect with `sse` or `http`:**
156156

157157
| Field | Description | Examples |
158158
|-------|-------------|----------|
159-
| `type` | Server connection type. | `"sse"` |
160-
| `url` | URL of the server (for `"type": "sse"`). | `"http://localhost:3000"` |
161-
| `headers` | HTTP headers for the server (for `"type": "sse"`). | `{"API_KEY": "${input:api-key}"}` |
159+
| `type` | Server connection type. VS Code first tries the streamable HTTP transport and falls back to SSE if HTTP is not supported. | `"sse"`, `"http"` |
160+
| `url` | URL of the server. | `"http://localhost:3000"` |
161+
| `headers` | HTTP headers for the server. | `{"API_KEY": "${input:api-key}"}` |
162162

163163
- The `"inputs": []` field lets you define custom placeholders for configuration values, avoiding hardcoding sensitive information.
164164

0 commit comments

Comments
 (0)