sdd-mcp-server 1.1.15 → 1.1.16
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/dist/simple-mcp-server.js +85 -1
- package/package.json +1 -1
|
@@ -1,2 +1,86 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
|
|
2
|
+
|
|
3
|
+
// Fast startup MCP server - optimized for Claude Code health checks
|
|
4
|
+
|
|
5
|
+
// Silence console output immediately
|
|
6
|
+
console.log = () => {};
|
|
7
|
+
console.info = () => {};
|
|
8
|
+
console.warn = () => {};
|
|
9
|
+
console.debug = () => {};
|
|
10
|
+
console.error = () => {};
|
|
11
|
+
|
|
12
|
+
import { Server } from '@modelcontextprotocol/sdk/server/index.js';
|
|
13
|
+
import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js';
|
|
14
|
+
import {
|
|
15
|
+
ListToolsRequestSchema,
|
|
16
|
+
CallToolRequestSchema,
|
|
17
|
+
InitializedNotificationSchema
|
|
18
|
+
} from '@modelcontextprotocol/sdk/types.js';
|
|
19
|
+
|
|
20
|
+
const server = new Server({
|
|
21
|
+
name: 'sdd-mcp-server',
|
|
22
|
+
version: '1.1.15'
|
|
23
|
+
}, {
|
|
24
|
+
capabilities: {
|
|
25
|
+
tools: {}
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
// Add basic SDD tools
|
|
30
|
+
server.setRequestHandler(ListToolsRequestSchema, async () => {
|
|
31
|
+
return {
|
|
32
|
+
tools: [
|
|
33
|
+
{
|
|
34
|
+
name: 'sdd-init',
|
|
35
|
+
description: 'Initialize a new SDD project',
|
|
36
|
+
inputSchema: {
|
|
37
|
+
type: 'object',
|
|
38
|
+
properties: {
|
|
39
|
+
projectName: { type: 'string' },
|
|
40
|
+
description: { type: 'string' }
|
|
41
|
+
},
|
|
42
|
+
required: ['projectName']
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
name: 'sdd-status',
|
|
47
|
+
description: 'Get current SDD project status',
|
|
48
|
+
inputSchema: {
|
|
49
|
+
type: 'object',
|
|
50
|
+
properties: {}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
]
|
|
54
|
+
};
|
|
55
|
+
});
|
|
56
|
+
|
|
57
|
+
server.setRequestHandler(CallToolRequestSchema, async (request) => {
|
|
58
|
+
const { name, arguments: args } = request.params;
|
|
59
|
+
|
|
60
|
+
switch (name) {
|
|
61
|
+
case 'sdd-init':
|
|
62
|
+
return {
|
|
63
|
+
content: [{
|
|
64
|
+
type: 'text',
|
|
65
|
+
text: `SDD project "${args?.projectName}" initialization would begin here. (Simplified MCP mode)`
|
|
66
|
+
}]
|
|
67
|
+
};
|
|
68
|
+
case 'sdd-status':
|
|
69
|
+
return {
|
|
70
|
+
content: [{
|
|
71
|
+
type: 'text',
|
|
72
|
+
text: 'SDD project status: No active project found. Use sdd-init to create a new project.'
|
|
73
|
+
}]
|
|
74
|
+
};
|
|
75
|
+
default:
|
|
76
|
+
throw new Error(`Unknown tool: ${name}`);
|
|
77
|
+
}
|
|
78
|
+
});
|
|
79
|
+
|
|
80
|
+
// Handle initialized notification
|
|
81
|
+
server.setNotificationHandler(InitializedNotificationSchema, async () => {
|
|
82
|
+
// Client has completed initialization - server is ready
|
|
83
|
+
});
|
|
84
|
+
|
|
85
|
+
const transport = new StdioServerTransport();
|
|
86
|
+
await server.connect(transport);
|