@skillstate/mcp 2.0.2 → 2.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +35 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
|
|
7
7
|
[](https://www.npmjs.com/package/@skillstate/mcp)
|
|
8
8
|
[](https://www.npmjs.com/package/@skillstate/mcp)
|
|
9
|
-
[](https://github.com/
|
|
10
|
-
[](https://github.com/
|
|
9
|
+
[](https://github.com/vitkuz573/skillstate)
|
|
10
|
+
[](https://github.com/vitkuz573/skillstate/blob/main/LICENSE)
|
|
11
11
|
|
|
12
12
|
</div>
|
|
13
13
|
|
|
@@ -67,6 +67,39 @@ Command-line:
|
|
|
67
67
|
skillstate-mcp # reads SKILLSTATE_SPEC_PATH / SKILLSTATE_STATE_PATH
|
|
68
68
|
```
|
|
69
69
|
|
|
70
|
+
## Register in opencode.jsonc
|
|
71
|
+
|
|
72
|
+
For an OpenCode host, add the stdio server to the `mcp` block of
|
|
73
|
+
`~/.config/opencode/opencode.jsonc` (or the project `opencode.jsonc`). The
|
|
74
|
+
`environment` block feeds `SKILLSTATE_STATE_PATH`, which `launch()` reads:
|
|
75
|
+
|
|
76
|
+
```jsonc
|
|
77
|
+
{
|
|
78
|
+
"mcp": {
|
|
79
|
+
"skillstate": {
|
|
80
|
+
"type": "local",
|
|
81
|
+
"command": ["node", "/abs/path/to/skillstate/packages/mcp/bin/mcp.js"],
|
|
82
|
+
"enabled": true,
|
|
83
|
+
"environment": {
|
|
84
|
+
"SKILLSTATE_STATE_PATH": "/abs/path/to/.skillstate.json"
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
If you installed from npm instead of a checkout, replace the command with
|
|
92
|
+
`["npx", "-y", "skillstate-mcp"]` (the packaged bin). Create the state file
|
|
93
|
+
first (see the `@skillstate/opencode` README for a sample). Verify with:
|
|
94
|
+
|
|
95
|
+
```bash
|
|
96
|
+
opencode debug config # mcp.skillstate appears in the resolved config
|
|
97
|
+
echo '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2024-11-05","capabilities":{},"clientInfo":{"name":"t","version":"0"}}}
|
|
98
|
+
{"jsonrpc":"2.0","id":2,"method":"tools/list","params":{}}' \
|
|
99
|
+
| SKILLSTATE_STATE_PATH=/abs/path/to/.skillstate.json node packages/mcp/bin/mcp.js
|
|
100
|
+
# -> serverInfo {"name":"skillstate","version":"1.0.0"} + 6 tools
|
|
101
|
+
```
|
|
102
|
+
|
|
70
103
|
## API / Exports
|
|
71
104
|
|
|
72
105
|
Root path `@skillstate/mcp` exports `McpAdapter`, `McpServer`, and `launch`
|