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
Copy file name to clipboardExpand all lines: plugins/vscode/README.md
+10-2Lines changed: 10 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,21 +1,29 @@
1
1
# WordPress Studio for VS Code
2
2
3
-
This is the smallest useful VS Code extension scaffold generated by Build with WordPress. It does not publish anything to the Marketplace from this repository.
3
+
This VS Code extension integrates WordPress Studio MCP with the current workspace by writing VS Code's supported `.vscode/mcp.json` configuration shape. It does not publish anything to the Marketplace from this repository.
4
4
5
5
## What it includes
6
6
7
7
-`package.json` with VS Code extension metadata and command contributions.
8
-
-`extension.js` with thin commands to check whether `studio` is available and to show or copy the bundled MCP config.
8
+
-`extension.js` with commands to validate Studio availability, show/copy the bundled MCP config, and merge the WordPress Studio MCP servers into the open workspace.
9
9
-`mcp.json` with `wordpress-studio` and `wordpress-telemetry` server entries.
10
10
-`skills/` as reference Build with WordPress playbooks for editor users and future extension behavior.
11
11
12
+
## MCP integration
13
+
14
+
VS Code supports workspace MCP configuration through `.vscode/mcp.json` with a top-level `servers` object. The `WordPress Studio: Configure Workspace MCP` command creates or updates that file in the open workspace, preserves unrelated server entries, and prompts before replacing an existing managed WordPress server that differs from the bundled configuration.
15
+
16
+
The extension targets VS Code `^1.95.0`. The published `@types/vscode@1.95.0` API surface does not include `contributes.mcpServerDefinitionProviders` or `vscode.lm.registerMcpServerDefinitionProvider`, so this package does not register an extension-owned MCP provider yet. When this package raises its VS Code engine to a version with stable MCP provider APIs, the file-write command can be complemented with provider registration.
17
+
12
18
## Marketplace placeholder
13
19
14
20
The manifest uses the Visual Studio Marketplace publisher `automattic`. This repo intentionally does not include publish automation or Marketplace credentials.
15
21
16
22
## Commands
17
23
18
24
-`WordPress Studio: Check Studio CLI` runs `studio --version` and reports whether the CLI is on `PATH`.
25
+
-`WordPress Studio: Configure Workspace MCP` merges the bundled `wordpress-studio` server, and `wordpress-telemetry` when bundled, into the open workspace's `.vscode/mcp.json`.
26
+
-`WordPress Studio: Validate MCP Config` runs `studio --version` and verifies the bundled VS Code MCP config contains `servers.wordpress-studio`.
19
27
-`WordPress Studio: Show MCP Config` opens the bundled `mcp.json` in an untitled JSON editor.
20
28
-`WordPress Studio: Copy MCP Config` copies the bundled `mcp.json` to the clipboard.
0 commit comments