@skillstate/mcp 2.0.2 → 2.0.4

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.
Files changed (2) hide show
  1. package/README.md +35 -2
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -6,8 +6,8 @@
6
6
 
7
7
  [![npm version](https://img.shields.io/npm/v/@skillstate/mcp)](https://www.npmjs.com/package/@skillstate/mcp)
8
8
  [![node](https://img.shields.io/node/v/@skillstate/mcp)](https://www.npmjs.com/package/@skillstate/mcp)
9
- [![Tests](https://img.shields.io/badge/tests-755%20passing-brightgreen)](https://github.com/vitalykuzyaev/skillstate)
10
- [![License: MIT](https://img.shields.io/badge/license-MIT-blue)](https://github.com/vitalykuzyaev/skillstate/blob/main/LICENSE)
9
+ [![Tests](https://img.shields.io/badge/tests-755%20passing-brightgreen)](https://github.com/vitkuz573/skillstate)
10
+ [![License: MIT](https://img.shields.io/badge/license-MIT-blue)](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`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skillstate/mcp",
3
- "version": "2.0.2",
3
+ "version": "2.0.4",
4
4
  "description": "Zero-dependency MCP server + adapter for the skillstate runtime.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",