Skip to content

Commit 0d4f46c

Browse files
authored
Merge pull request #4 from agents-oss/ci/deploy_mcp_server
ci: publish mcp
2 parents 70fd37c + 25b691e commit 0d4f46c

5 files changed

Lines changed: 45 additions & 2 deletions

File tree

.github/workflows/publish.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,11 @@ jobs:
7070
cd packages/sdk
7171
npm publish --access public --provenance
7272
73+
- name: Publish @agentspec/mcp
74+
run: |
75+
cd packages/mcp-server
76+
npm publish --access public --provenance
77+
7378
- name: Resolve workspace deps for adapter-claude
7479
run: |
7580
SDK_VER=$(node -p "require('./packages/sdk/package.json').version")
@@ -110,5 +115,6 @@ jobs:
110115
echo "**Version:** ${VERSION}" >> $GITHUB_STEP_SUMMARY
111116
echo "" >> $GITHUB_STEP_SUMMARY
112117
echo "- \`@agentspec/sdk@${VERSION}\`" >> $GITHUB_STEP_SUMMARY
118+
echo "- \`@agentspec/mcp@${VERSION}\`" >> $GITHUB_STEP_SUMMARY
113119
echo "- \`@agentspec/adapter-claude@${VERSION}\`" >> $GITHUB_STEP_SUMMARY
114120
echo "- \`@agentspec/cli@${VERSION}\`" >> $GITHUB_STEP_SUMMARY

docs/concepts/operating-modes.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,26 @@ agent in the AgentSpec Agents view, the extension port-forwards automatically.
6868

6969
### MCP configuration
7070

71+
Install the MCP server in your AI editor:
72+
73+
**Claude Code / Cursor / Windsurf** — add to your MCP config:
74+
```json
75+
{
76+
"mcpServers": {
77+
"agentspec": {
78+
"command": "npx",
79+
"args": ["-y", "@agentspec/mcp"]
80+
}
81+
}
82+
}
83+
```
84+
85+
**Claude Code** (`.claude/settings.json` or via `claude mcp add`):
86+
```bash
87+
claude mcp add agentspec -- npx -y @agentspec/mcp
88+
```
89+
90+
Tool arguments for sidecar mode:
7191
```json
7292
// agentspec_health
7393
{ "sidecarUrl": "http://localhost:4001" }
@@ -138,6 +158,9 @@ port-forward.
138158

139159
### MCP configuration
140160

161+
Same install as sidecar mode — `@agentspec/mcp` supports both modes via tool arguments.
162+
163+
Tool arguments for operator mode:
141164
```json
142165
// agentspec_health
143166
{

docs/quick-start.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,20 @@ kubectl apply -f ./generated/k8s/deployment.yaml
167167
kubectl apply -f ./generated/k8s/service.yaml
168168
```
169169

170+
## Use AgentSpec from your AI editor (MCP)
171+
172+
Install `@agentspec/mcp` to use AgentSpec tools directly inside Claude Code, Cursor, or Windsurf:
173+
174+
```bash
175+
# Claude Code
176+
claude mcp add agentspec -- npx -y @agentspec/mcp
177+
178+
# Cursor / Windsurf / any MCP-compatible editor — add to mcpServers config:
179+
# { "mcpServers": { "agentspec": { "command": "npx", "args": ["-y", "@agentspec/mcp"] } } }
180+
```
181+
182+
See [Operating Modes](./concepts/operating-modes) for sidecar vs operator configuration.
183+
170184
## What to do next
171185

172186
| I want to... | Go to |

packages/mcp-server/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@agentspec/mcp-server",
2+
"name": "@agentspec/mcp",
33
"version": "0.1.0",
44
"description": "AgentSpec MCP server — exposes validate, health, audit, scan, generate, gap, diff as MCP tools",
55
"author": "Sallah Kokaina <sallah.kokaina@gmail.com>",

packages/mcp-server/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* POST /mcp → JSON-RPC 2.0 for tools/list + tools/call
55
*
66
* Add to Claude Code / Cursor / Windsurf:
7-
* { "mcpServers": { "agentspec": { "command": "npx", "args": ["-y", "@agentspec/mcp-server"] } } }
7+
* { "mcpServers": { "agentspec": { "command": "npx", "args": ["-y", "@agentspec/mcp"] } } }
88
*/
99

1010
import http from 'http'

0 commit comments

Comments
 (0)