@skills-hub-ai/mcp 0.1.7 → 0.1.8
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/package.json +20 -9
- package/src/index.test.ts +29 -25
package/package.json
CHANGED
|
@@ -1,16 +1,27 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@skills-hub-ai/mcp",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.8",
|
|
4
4
|
"description": "MCP server for skills-hub.ai — serve installed skills as prompts in any MCP-compatible AI tool",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"mcp",
|
|
8
8
|
"model-context-protocol",
|
|
9
|
+
"mcp-server",
|
|
9
10
|
"claude-code",
|
|
11
|
+
"claude-desktop",
|
|
12
|
+
"claude-skills",
|
|
13
|
+
"agent-skills",
|
|
14
|
+
"skill-md",
|
|
15
|
+
"ai-skills",
|
|
10
16
|
"cursor",
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
-
"prompts"
|
|
17
|
+
"cline",
|
|
18
|
+
"continue",
|
|
19
|
+
"ai-prompts",
|
|
20
|
+
"developer-tools",
|
|
21
|
+
"anthropic",
|
|
22
|
+
"ai-search",
|
|
23
|
+
"skill-registry",
|
|
24
|
+
"skills-hub"
|
|
14
25
|
],
|
|
15
26
|
"repository": {
|
|
16
27
|
"type": "git",
|
|
@@ -27,14 +38,14 @@
|
|
|
27
38
|
"skills-hub-mcp": "dist/index.js"
|
|
28
39
|
},
|
|
29
40
|
"dependencies": {
|
|
30
|
-
"@modelcontextprotocol/sdk": "^1.
|
|
31
|
-
"@skills-hub-ai/skill-parser": "0.2.
|
|
41
|
+
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
42
|
+
"@skills-hub-ai/skill-parser": "0.2.2"
|
|
32
43
|
},
|
|
33
44
|
"devDependencies": {
|
|
34
|
-
"@types/node": "^25.
|
|
45
|
+
"@types/node": "^25.6.0",
|
|
35
46
|
"tsx": "^4.0.0",
|
|
36
|
-
"typescript": "^
|
|
37
|
-
"vitest": "^
|
|
47
|
+
"typescript": "^6.0.3",
|
|
48
|
+
"vitest": "^4.1.5"
|
|
38
49
|
},
|
|
39
50
|
"scripts": {
|
|
40
51
|
"dev": "tsx src/index.ts",
|
package/src/index.test.ts
CHANGED
|
@@ -18,23 +18,25 @@ vi.mock("./installer.js", () => ({
|
|
|
18
18
|
vi.mock("@modelcontextprotocol/sdk/server/index.js", () => {
|
|
19
19
|
const handlers = new Map<string, (req: unknown) => Promise<unknown>>();
|
|
20
20
|
return {
|
|
21
|
-
Server: vi.fn().mockImplementation(()
|
|
22
|
-
|
|
23
|
-
(
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
21
|
+
Server: vi.fn().mockImplementation(function () {
|
|
22
|
+
return {
|
|
23
|
+
setRequestHandler: vi.fn(
|
|
24
|
+
function (
|
|
25
|
+
schema: { method: string },
|
|
26
|
+
handler: (req: unknown) => Promise<unknown>,
|
|
27
|
+
) {
|
|
28
|
+
handlers.set(schema.method, handler);
|
|
29
|
+
},
|
|
30
|
+
),
|
|
31
|
+
connect: vi.fn(),
|
|
32
|
+
_handlers: handlers,
|
|
33
|
+
};
|
|
34
|
+
}),
|
|
33
35
|
};
|
|
34
36
|
});
|
|
35
37
|
|
|
36
38
|
vi.mock("@modelcontextprotocol/sdk/server/stdio.js", () => ({
|
|
37
|
-
StdioServerTransport: vi.fn(),
|
|
39
|
+
StdioServerTransport: vi.fn().mockImplementation(function () { return {}; }),
|
|
38
40
|
}));
|
|
39
41
|
|
|
40
42
|
vi.mock("@modelcontextprotocol/sdk/types.js", () => ({
|
|
@@ -110,22 +112,24 @@ beforeEach(async () => {
|
|
|
110
112
|
const h = new Map<string, (req: unknown) => Promise<unknown>>();
|
|
111
113
|
handlers = h;
|
|
112
114
|
return {
|
|
113
|
-
Server: vi.fn().mockImplementation(()
|
|
114
|
-
|
|
115
|
-
(
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
115
|
+
Server: vi.fn().mockImplementation(function () {
|
|
116
|
+
return {
|
|
117
|
+
setRequestHandler: vi.fn(
|
|
118
|
+
function (
|
|
119
|
+
schema: { method: string },
|
|
120
|
+
handler: (req: unknown) => Promise<unknown>,
|
|
121
|
+
) {
|
|
122
|
+
h.set(schema.method, handler);
|
|
123
|
+
},
|
|
124
|
+
),
|
|
125
|
+
connect: vi.fn(),
|
|
126
|
+
};
|
|
127
|
+
}),
|
|
124
128
|
};
|
|
125
129
|
});
|
|
126
130
|
|
|
127
131
|
vi.doMock("@modelcontextprotocol/sdk/server/stdio.js", () => ({
|
|
128
|
-
StdioServerTransport: vi.fn(),
|
|
132
|
+
StdioServerTransport: vi.fn().mockImplementation(function () { return {}; }),
|
|
129
133
|
}));
|
|
130
134
|
|
|
131
135
|
vi.doMock("@modelcontextprotocol/sdk/types.js", () => ({
|