summaryrefslogtreecommitdiff
path: root/plugins/plugin-dev
diff options
context:
space:
mode:
authorant-kurt <kurt@anthropic.com>2026-11-10 14:01:16 -0800
committerGitHub <noreply@github.com>2026-11-10 14:01:16 -0800
commit43fd1f9db0941b2b83cb62268e35970d4a67c202 (patch)
treec333f3eff6a0d42beba586a4ade5e3fa39f9a5b7 /plugins/plugin-dev
parentdceb15d50832e6adf380bedc26dde03d251324b9 (diff)
plugin-dev: use local servers in MCP examples (#7074)
Co-authored-by: Claude <noreply@anthropic.com>
Diffstat (limited to 'plugins/plugin-dev')
-rw-r--r--plugins/plugin-dev/.claude-plugin/plugin.json2
-rw-r--r--plugins/plugin-dev/README.md1
-rw-r--r--plugins/plugin-dev/skills/mcp-integration/references/server-types.md12
3 files changed, 9 insertions, 6 deletions
diff --git a/plugins/plugin-dev/.claude-plugin/plugin.json b/plugins/plugin-dev/.claude-plugin/plugin.json
index 430179f0..f640c0a0 100644
--- a/plugins/plugin-dev/.claude-plugin/plugin.json
+++ b/plugins/plugin-dev/.claude-plugin/plugin.json
@@ -1,7 +1,7 @@
{
"name": "plugin-dev",
"description": "Plugin development toolkit with skills for creating agents, commands, hooks, MCP integrations, and comprehensive plugin structure guidance",
- "version": "0.1.1",
+ "version": "0.1.2",
"author": {
"name": "Anthropic",
"email": "support@anthropic.com"
diff --git a/plugins/plugin-dev/README.md b/plugins/plugin-dev/README.md
index 3e981736..4efe926a 100644
--- a/plugins/plugin-dev/README.md
+++ b/plugins/plugin-dev/README.md
@@ -387,6 +387,7 @@ This plugin is part of the claude-code-marketplace. To contribute improvements:
## Version
+0.1.2 - Two MCP reference examples now run a bundled server instead of an npm package
0.1.1 - Initial release with seven comprehensive skills and three validation agents
## Author
diff --git a/plugins/plugin-dev/skills/mcp-integration/references/server-types.md b/plugins/plugin-dev/skills/mcp-integration/references/server-types.md
index d2e48be8..b97a017a 100644
--- a/plugins/plugin-dev/skills/mcp-integration/references/server-types.md
+++ b/plugins/plugin-dev/skills/mcp-integration/references/server-types.md
@@ -14,8 +14,8 @@ Execute local MCP servers as child processes with communication via stdin/stdout
```json
{
"my-server": {
- "command": "npx",
- "args": ["-y", "my-mcp-server"]
+ "command": "node",
+ "args": ["${CLAUDE_PLUGIN_ROOT}/servers/my-server.js"]
}
}
```
@@ -463,8 +463,8 @@ Combine different types:
```json
{
"local-db": {
- "command": "npx",
- "args": ["-y", "mcp-server-sqlite", "./data.db"]
+ "command": "node",
+ "args": ["${CLAUDE_PLUGIN_ROOT}/servers/local-db.js", "--db-path", "${CLAUDE_PLUGIN_DATA}/data.db"]
},
"cloud-api": {
"type": "sse",
@@ -480,6 +480,8 @@ Combine different types:
}
```
+`${CLAUDE_PLUGIN_DATA}` is one folder per plugin, shared by all projects. It survives plugin updates; `${CLAUDE_PLUGIN_ROOT}` does not, so don't store data there.
+
### Conditional Configuration
Use environment variables to switch servers:
@@ -498,7 +500,7 @@ Use environment variables to switch servers:
Set different values for dev/prod:
- Dev: `API_URL=http://localhost:8080/mcp`
-- Prod: `API_URL=https://api.production.com/mcp`
+- Prod: `API_URL=https://api.example.com/mcp`
## Security Considerations