@ikhono/mcp 0.1.0 → 0.1.2

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 (3) hide show
  1. package/README.md +153 -0
  2. package/dist/index.js +1 -1
  3. package/package.json +8 -8
package/README.md ADDED
@@ -0,0 +1,153 @@
1
+ # @ikhono/mcp
2
+
3
+ MCP server for [iKhono](https://github.com/ikhono/ikhono) — a runtime skill router that gives AI agents access to community-built skills on the fly.
4
+
5
+ No local skill installation needed. Your AI agent searches, loads, and follows skills directly from the iKhono registry.
6
+
7
+ ## Quick Setup
8
+
9
+ ### Claude Code
10
+
11
+ ```bash
12
+ claude mcp add ikhono -- npx -y @ikhono/mcp
13
+ ```
14
+
15
+ ### Claude Desktop
16
+
17
+ Add to `claude_desktop_config.json`:
18
+
19
+ ```json
20
+ {
21
+ "mcpServers": {
22
+ "ikhono": {
23
+ "command": "npx",
24
+ "args": ["-y", "@ikhono/mcp"]
25
+ }
26
+ }
27
+ }
28
+ ```
29
+
30
+ ### Cursor
31
+
32
+ Add to `.cursor/mcp.json`:
33
+
34
+ ```json
35
+ {
36
+ "mcpServers": {
37
+ "ikhono": {
38
+ "command": "npx",
39
+ "args": ["-y", "@ikhono/mcp"]
40
+ }
41
+ }
42
+ }
43
+ ```
44
+
45
+ ### Windsurf
46
+
47
+ Add to `~/.codeium/windsurf/mcp_config.json`:
48
+
49
+ ```json
50
+ {
51
+ "mcpServers": {
52
+ "ikhono": {
53
+ "command": "npx",
54
+ "args": ["-y", "@ikhono/mcp"]
55
+ }
56
+ }
57
+ }
58
+ ```
59
+
60
+ ## Authentication
61
+
62
+ To use authenticated features (pinning, rating, publishing your own skills), log in with the CLI first:
63
+
64
+ ```bash
65
+ npx @ikhono/cli login --email you@example.com --password yourpass
66
+ ```
67
+
68
+ The MCP server automatically reads your token from `~/.ikhono/config.json`.
69
+
70
+ You can also pass credentials directly:
71
+
72
+ ```bash
73
+ # Via CLI args
74
+ npx @ikhono/mcp --token YOUR_TOKEN --api-url https://api.ikhono.io
75
+
76
+ # Via environment variables
77
+ IKHONO_API_TOKEN=YOUR_TOKEN npx @ikhono/mcp
78
+ ```
79
+
80
+ **Priority order:** environment variables > CLI args > `~/.ikhono/config.json`
81
+
82
+ ## Available Tools
83
+
84
+ | Tool | Description |
85
+ |------|-------------|
86
+ | `ikhono_skill_search` | Search for skills by query, category, or author |
87
+ | `ikhono_skill_get` | Load a skill's full instructions by slug |
88
+ | `ikhono_skill_pin` | Pin a skill to your favorites |
89
+ | `ikhono_skill_unpin` | Remove a skill from your favorites |
90
+ | `ikhono_skill_list_pinned` | List your pinned skills |
91
+ | `ikhono_skill_rate` | Rate a skill (1-5 stars) |
92
+
93
+ ### ikhono_skill_search
94
+
95
+ Search for skills matching a query.
96
+
97
+ | Parameter | Type | Required | Description |
98
+ |-----------|------|----------|-------------|
99
+ | `query` | string | No | Search text (e.g., "code review", "test writing") |
100
+ | `category` | string | No | Filter by category |
101
+ | `author` | string | No | Filter by author (e.g., "@alice") |
102
+ | `mine` | boolean | No | Show only your skills |
103
+ | `limit` | number | No | Max results (default: 5) |
104
+
105
+ ### ikhono_skill_get
106
+
107
+ Load a skill's full content to follow its instructions.
108
+
109
+ | Parameter | Type | Required | Description |
110
+ |-----------|------|----------|-------------|
111
+ | `slug` | string | Yes | Skill slug (e.g., "@alice/code-reviewer") |
112
+
113
+ ### ikhono_skill_pin / ikhono_skill_unpin
114
+
115
+ Pin or unpin a skill.
116
+
117
+ | Parameter | Type | Required | Description |
118
+ |-----------|------|----------|-------------|
119
+ | `slug` | string | Yes | Skill slug to pin/unpin |
120
+
121
+ ### ikhono_skill_list_pinned
122
+
123
+ List all pinned skills. No parameters.
124
+
125
+ ### ikhono_skill_rate
126
+
127
+ Rate a skill after using it.
128
+
129
+ | Parameter | Type | Required | Description |
130
+ |-----------|------|----------|-------------|
131
+ | `slug` | string | Yes | Skill slug to rate |
132
+ | `stars` | number | Yes | Rating from 1 to 5 |
133
+ | `review` | string | No | Optional text review |
134
+
135
+ ## How It Works
136
+
137
+ 1. Your AI agent receives a task (e.g., "review this code")
138
+ 2. The agent calls `ikhono_skill_search` to find relevant skills
139
+ 3. The agent calls `ikhono_skill_get` to load the skill's instructions
140
+ 4. The agent follows those instructions for a better, more structured response
141
+
142
+ Skills are community-created Markdown documents with structured processes, checklists, and templates. The MCP server is a thin proxy to the iKhono API — no local storage or computation needed.
143
+
144
+ ## Links
145
+
146
+ - [Getting Started](https://github.com/ikhono/ikhono/blob/main/docs/getting-started.md)
147
+ - [Creating Skills](https://github.com/ikhono/ikhono/blob/main/docs/creating-skills.md)
148
+ - [CLI Reference](https://github.com/ikhono/ikhono/blob/main/docs/cli-reference.md)
149
+ - [GitHub](https://github.com/ikhono/ikhono)
150
+
151
+ ## License
152
+
153
+ MIT
package/dist/index.js CHANGED
@@ -151,7 +151,7 @@ async function handleRate(client2, args2) {
151
151
  // src/version.ts
152
152
  import { createRequire } from "module";
153
153
  function getVersion() {
154
- if (true) return "0.1.0";
154
+ if (true) return "0.1.2";
155
155
  const require2 = createRequire(import.meta.url);
156
156
  return require2("../package.json").version;
157
157
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ikhono/mcp",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "description": "iKhono MCP Server — runtime skill router for AI agents",
5
5
  "type": "module",
6
6
  "bin": {
@@ -9,12 +9,6 @@
9
9
  "files": [
10
10
  "dist"
11
11
  ],
12
- "scripts": {
13
- "build": "tsup",
14
- "dev": "tsx watch src/index.ts",
15
- "typecheck": "tsc --noEmit",
16
- "test": "vitest run"
17
- },
18
12
  "dependencies": {
19
13
  "@modelcontextprotocol/sdk": "^1.12.0",
20
14
  "zod": "^3.23.0"
@@ -27,5 +21,11 @@
27
21
  },
28
22
  "publishConfig": {
29
23
  "access": "public"
24
+ },
25
+ "scripts": {
26
+ "build": "tsup",
27
+ "dev": "tsx watch src/index.ts",
28
+ "typecheck": "tsc --noEmit",
29
+ "test": "vitest run"
30
30
  }
31
- }
31
+ }