Skip to content

Commit 260dbc2

Browse files
committed
Add info about docker detach mode
1 parent 0a52a4d commit 260dbc2

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

docs/copilot/chat/mcp-servers.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ Use the following JSON configuration format to define MCP servers.
140140
| Field | Description | Examples |
141141
|-------|-------------|----------|
142142
| `type` | Server connection type. | `"stdio"` |
143-
| `command` | Command to start the server executable. | `"npx"`,`"node"`, `"python"`, `"docker"` |
143+
| `command` | Command to start the server executable. The command needs to be available on your system path or contain its full path.<br/>If you use docker, don't use the detach option. | `"npx"`,`"node"`, `"python"`, `"docker"` |
144144
| `args` | Array of arguments passed to the command. | `["server.py", "--port", "3000"]` |
145145
| `env` | Environment variables for the server. | `{"API_KEY": "${input:api-key}"}` |
146146
| `envFile` | Path to an `.env` from which to load additional environment variables. | `"${workspaceFolder}/.env"` |
@@ -303,6 +303,10 @@ Yes, you have several options to control which tools are active:
303303
- Add specific tools to your prompt by using the **Add Context** button or by typing `#`.
304304
- For more advanced control, you can use `.github/copilot-instructions.md` to fine-tune tool usage.
305305
306+
### My docker-based MCP server is not starting
307+
308+
Verify that the command arguments are correct and that the container is not running in detached mode (`-d` option). You can also check the MCP server output for any error messages (see [Troubleshooting](#troubleshooting)).
309+
306310
## Related resources
307311
308312
- [Model Context Protocol Documentation](https://modelcontextprotocol.io/)

0 commit comments

Comments
 (0)