Skip to content

Commit 356222e

Browse files
committed
Document how to use FineCode MCP with Copilot in VSCode
1 parent b6a3455 commit 356222e

3 files changed

Lines changed: 33 additions & 3 deletions

File tree

docs/cli.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,9 @@ Start the FineCode MCP server on stdio. Connects to a running FineCode WM Server
222222
| `--workdir=<path>` | Workspace root directory (default: current directory). |
223223
| `--log-level=<level>` | Set log level: `TRACE`, `DEBUG`, `INFO`, `WARNING`, `ERROR` (default: `INFO`) |
224224

225-
Typically started automatically by MCP-compatible clients (for example, Claude Code) — see [IDE and MCP Setup](getting-started-ide-mcp.md#mcp-setup-for-ai-clients).
225+
Typically started automatically by MCP-compatible clients (for example, Claude Code) or by VS Code Copilot when the FineCode VSCode extension registers the MCP provider.
226+
227+
For setup details, see [IDE and MCP Setup](getting-started-ide-mcp.md#mcp-setup-for-ai-clients). If you use VS Code without the FineCode extension, use the fallback `.vscode/mcp.json` configuration from that page.
226228

227229
---
228230

docs/getting-started-ide-mcp.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ To use the Testing panel, you need handlers registered for both actions. The `fi
3737

3838
FineCode exposes an MCP server so any MCP-compatible client can invoke FineCode actions directly.
3939

40+
If you use VS Code and the FineCode VSCode extension, prefer the extension-based integration for Copilot (recommended below). Manual MCP configuration is a fallback for setups without the extension.
41+
4042
At a minimum, your client should launch:
4143

4244
```bash
@@ -63,5 +65,31 @@ Create `.mcp.json` in the workspace root:
6365

6466
Claude Code discovers this file and prompts for approval on first use.
6567

68+
### Example: VS Code Copilot (recommended with FineCode VSCode extension)
69+
70+
When the FineCode VSCode extension is installed, it registers FineCode MCP servers for Copilot automatically.
71+
72+
No manual MCP configuration is required.
73+
74+
### Example: VS Code Copilot fallback (only without FineCode VSCode extension)
75+
76+
Use this only if you are not using the FineCode VSCode extension.
77+
78+
Create `.vscode/mcp.json` in the workspace root:
79+
80+
```json
81+
{
82+
"servers": {
83+
"finecode": {
84+
"type": "stdio",
85+
"command": ".venvs/dev_workspace/bin/python",
86+
"args": ["-m", "finecode", "start-mcp", "--workdir=${workspaceFolder}"]
87+
}
88+
}
89+
}
90+
```
91+
92+
Note: VS Code uses the top-level `servers` key in `mcp.json`.
93+
6694
Manual server startup is mainly for debugging and custom integration development.
6795
See [LSP and MCP Architecture](reference/lsp-mcp-architecture.md#manual-server-startup-for-debugging).

docs/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ FineCode lets you define actions once and run them through the surfaces develope
2121

2222
- Local CLI: `python -m finecode run lint`
2323
- CI: run the same actions instead of re-creating tool wiring in pipelines
24-
- IDE: connect through the [VSCode and MCP setup guide](getting-started-ide-mcp.md)
24+
- IDE and AI: use the [VSCode and MCP setup guide](getting-started-ide-mcp.md) (extension path recommended, MCP fallback available)
2525
- AI assistants: expose the same action surface through MCP-compatible clients
2626

2727
That means less duplicated glue code and fewer mismatches between "what works on my machine" and "what CI expects".
@@ -116,7 +116,7 @@ FineCode is not just a wrapper around linters and formatters. It gives those too
116116
## Where to go next
117117

118118
- [Getting Started](getting-started.md) for the full setup path
119-
- [IDE and MCP Setup](getting-started-ide-mcp.md) to connect editors and AI clients
119+
- [IDE and MCP Setup](getting-started-ide-mcp.md) for the recommended VSCode extension path and MCP fallback options
120120
- [Concepts](concepts.md) for the core mental model
121121
- [Why FineCode's Action Model Works](theory/why-action-model.md) for the design rationale
122122
- [Designing Actions](guides/designing-actions.md) for action design guidance

0 commit comments

Comments
 (0)