@ash-ai/mcp-server 0.0.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.
- package/LICENSE +21 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +154 -0
- package/dist/index.js.map +1 -0
- package/package.json +40 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Ash Contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":""}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
|
|
3
|
+
import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js';
|
|
4
|
+
import { z } from 'zod';
|
|
5
|
+
const serverUrl = (process.env.ASH_SERVER_URL || 'http://localhost:4100').replace(/\/$/, '');
|
|
6
|
+
const apiKey = process.env.ASH_API_KEY;
|
|
7
|
+
function headers(json = false) {
|
|
8
|
+
const h = {};
|
|
9
|
+
if (json)
|
|
10
|
+
h['Content-Type'] = 'application/json';
|
|
11
|
+
if (apiKey)
|
|
12
|
+
h['Authorization'] = `Bearer ${apiKey}`;
|
|
13
|
+
return h;
|
|
14
|
+
}
|
|
15
|
+
async function request(method, path, body) {
|
|
16
|
+
const res = await fetch(`${serverUrl}${path}`, {
|
|
17
|
+
method,
|
|
18
|
+
headers: headers(!!body),
|
|
19
|
+
body: body ? JSON.stringify(body) : undefined,
|
|
20
|
+
});
|
|
21
|
+
if (!res.ok) {
|
|
22
|
+
const err = await res.json().catch(() => ({ error: res.statusText }));
|
|
23
|
+
throw new Error(err.error);
|
|
24
|
+
}
|
|
25
|
+
return await res.json();
|
|
26
|
+
}
|
|
27
|
+
async function consumeSSEStream(res) {
|
|
28
|
+
if (!res.body)
|
|
29
|
+
return 'No response body';
|
|
30
|
+
const reader = res.body.getReader();
|
|
31
|
+
const decoder = new TextDecoder();
|
|
32
|
+
let buffer = '';
|
|
33
|
+
let currentEvent = '';
|
|
34
|
+
const textParts = [];
|
|
35
|
+
let errorMsg = null;
|
|
36
|
+
try {
|
|
37
|
+
while (true) {
|
|
38
|
+
const { done, value } = await reader.read();
|
|
39
|
+
if (done)
|
|
40
|
+
break;
|
|
41
|
+
buffer += decoder.decode(value, { stream: true });
|
|
42
|
+
const lines = buffer.split('\n');
|
|
43
|
+
buffer = lines.pop() || '';
|
|
44
|
+
for (const line of lines) {
|
|
45
|
+
if (line.startsWith('event: ')) {
|
|
46
|
+
currentEvent = line.slice(7).trim();
|
|
47
|
+
}
|
|
48
|
+
else if (line.startsWith('data: ')) {
|
|
49
|
+
const raw = line.slice(6);
|
|
50
|
+
try {
|
|
51
|
+
const data = JSON.parse(raw);
|
|
52
|
+
if (currentEvent === 'message') {
|
|
53
|
+
// Extract text from assistant messages
|
|
54
|
+
if (data.type === 'assistant' && data.message) {
|
|
55
|
+
const msg = data.message;
|
|
56
|
+
const content = msg.content;
|
|
57
|
+
if (Array.isArray(content)) {
|
|
58
|
+
for (const block of content) {
|
|
59
|
+
const b = block;
|
|
60
|
+
if (b.type === 'text' && typeof b.text === 'string') {
|
|
61
|
+
textParts.push(b.text);
|
|
62
|
+
}
|
|
63
|
+
else if (b.type === 'tool_use') {
|
|
64
|
+
textParts.push(`[Tool: ${b.name}]`);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
else if (data.type === 'result' && typeof data.result === 'string') {
|
|
70
|
+
textParts.push(data.result);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
else if (currentEvent === 'error') {
|
|
74
|
+
errorMsg = data.error;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
catch {
|
|
78
|
+
// Non-JSON data, skip
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
finally {
|
|
85
|
+
reader.releaseLock();
|
|
86
|
+
}
|
|
87
|
+
if (errorMsg)
|
|
88
|
+
return `Error: ${errorMsg}`;
|
|
89
|
+
return textParts.join('\n') || 'No text response';
|
|
90
|
+
}
|
|
91
|
+
const server = new McpServer({
|
|
92
|
+
name: 'ash',
|
|
93
|
+
version: '0.0.1',
|
|
94
|
+
});
|
|
95
|
+
// -- Tools --
|
|
96
|
+
server.tool('list_agents', 'List all deployed agents on the Ash server', {}, async () => {
|
|
97
|
+
const res = await request('GET', '/api/agents');
|
|
98
|
+
return { content: [{ type: 'text', text: JSON.stringify(res.agents, null, 2) }] };
|
|
99
|
+
});
|
|
100
|
+
server.tool('create_session', 'Create a new agent session. Returns the session object with its ID.', { agent: z.string().describe('Name of the deployed agent') }, async ({ agent }) => {
|
|
101
|
+
const res = await request('POST', '/api/sessions', { agent });
|
|
102
|
+
return { content: [{ type: 'text', text: JSON.stringify(res.session, null, 2) }] };
|
|
103
|
+
});
|
|
104
|
+
server.tool('send_message', 'Send a message to an active session and return the agent response. The response is collected from the SSE stream.', {
|
|
105
|
+
sessionId: z.string().describe('Session ID (UUID)'),
|
|
106
|
+
content: z.string().describe('Message content to send to the agent'),
|
|
107
|
+
}, async ({ sessionId, content }) => {
|
|
108
|
+
const res = await fetch(`${serverUrl}/api/sessions/${sessionId}/messages`, {
|
|
109
|
+
method: 'POST',
|
|
110
|
+
headers: headers(true),
|
|
111
|
+
body: JSON.stringify({ content }),
|
|
112
|
+
});
|
|
113
|
+
if (!res.ok) {
|
|
114
|
+
const err = await res.json().catch(() => ({ error: res.statusText }));
|
|
115
|
+
throw new Error(err.error);
|
|
116
|
+
}
|
|
117
|
+
const text = await consumeSSEStream(res);
|
|
118
|
+
return { content: [{ type: 'text', text }] };
|
|
119
|
+
});
|
|
120
|
+
server.tool('list_sessions', 'List all sessions, optionally filtered by agent name', { agent: z.string().optional().describe('Filter by agent name') }, async ({ agent }) => {
|
|
121
|
+
const path = agent ? `/api/sessions?agent=${encodeURIComponent(agent)}` : '/api/sessions';
|
|
122
|
+
const res = await request('GET', path);
|
|
123
|
+
return { content: [{ type: 'text', text: JSON.stringify(res.sessions, null, 2) }] };
|
|
124
|
+
});
|
|
125
|
+
server.tool('get_session', 'Get details of a specific session by ID', { sessionId: z.string().describe('Session ID (UUID)') }, async ({ sessionId }) => {
|
|
126
|
+
const res = await request('GET', `/api/sessions/${sessionId}`);
|
|
127
|
+
return { content: [{ type: 'text', text: JSON.stringify(res.session, null, 2) }] };
|
|
128
|
+
});
|
|
129
|
+
server.tool('end_session', 'End a session permanently. Destroys the sandbox but preserves messages.', { sessionId: z.string().describe('Session ID (UUID)') }, async ({ sessionId }) => {
|
|
130
|
+
const res = await request('DELETE', `/api/sessions/${sessionId}`);
|
|
131
|
+
return { content: [{ type: 'text', text: JSON.stringify(res.session, null, 2) }] };
|
|
132
|
+
});
|
|
133
|
+
server.tool('pause_session', 'Pause a session. Sandbox may stay alive for fast resume.', { sessionId: z.string().describe('Session ID (UUID)') }, async ({ sessionId }) => {
|
|
134
|
+
const res = await request('POST', `/api/sessions/${sessionId}/pause`);
|
|
135
|
+
return { content: [{ type: 'text', text: JSON.stringify(res.session, null, 2) }] };
|
|
136
|
+
});
|
|
137
|
+
server.tool('resume_session', 'Resume a paused or errored session.', { sessionId: z.string().describe('Session ID (UUID)') }, async ({ sessionId }) => {
|
|
138
|
+
const res = await request('POST', `/api/sessions/${sessionId}/resume`);
|
|
139
|
+
return { content: [{ type: 'text', text: JSON.stringify(res.session, null, 2) }] };
|
|
140
|
+
});
|
|
141
|
+
server.tool('health', 'Check Ash server health status', {}, async () => {
|
|
142
|
+
const res = await request('GET', '/health');
|
|
143
|
+
return { content: [{ type: 'text', text: JSON.stringify(res, null, 2) }] };
|
|
144
|
+
});
|
|
145
|
+
// -- Start --
|
|
146
|
+
async function main() {
|
|
147
|
+
const transport = new StdioServerTransport();
|
|
148
|
+
await server.connect(transport);
|
|
149
|
+
}
|
|
150
|
+
main().catch((err) => {
|
|
151
|
+
console.error('MCP server error:', err);
|
|
152
|
+
process.exit(1);
|
|
153
|
+
});
|
|
154
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AACpE,OAAO,EAAE,oBAAoB,EAAE,MAAM,2CAA2C,CAAC;AACjF,OAAO,EA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;IACnB,OAAO,CAAC,KAAK,CAAC,mBAAmB,EAAE,GAAG,CAAC,CAAC;IACxC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC,CAAC,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@ash-ai/mcp-server",
|
|
3
|
+
"version": "0.0.2",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"bin": {
|
|
8
|
+
"ash-mcp-server": "dist/index.js"
|
|
9
|
+
},
|
|
10
|
+
"files": [
|
|
11
|
+
"dist",
|
|
12
|
+
"README.md"
|
|
13
|
+
],
|
|
14
|
+
"publishConfig": {
|
|
15
|
+
"access": "public"
|
|
16
|
+
},
|
|
17
|
+
"repository": {
|
|
18
|
+
"type": "git",
|
|
19
|
+
"url": "https://github.com/ash-ai-org/ash-ai.git",
|
|
20
|
+
"directory": "packages/mcp-server"
|
|
21
|
+
},
|
|
22
|
+
"license": "MIT",
|
|
23
|
+
"description": "MCP server that exposes the Ash REST API as tools for AI coding agents",
|
|
24
|
+
"keywords": [
|
|
25
|
+
"ash",
|
|
26
|
+
"mcp",
|
|
27
|
+
"ai",
|
|
28
|
+
"agent",
|
|
29
|
+
"model-context-protocol"
|
|
30
|
+
],
|
|
31
|
+
"dependencies": {
|
|
32
|
+
"@modelcontextprotocol/sdk": "^1.12.1",
|
|
33
|
+
"zod": "^3.23.0"
|
|
34
|
+
},
|
|
35
|
+
"scripts": {
|
|
36
|
+
"build": "tsc",
|
|
37
|
+
"clean": "rm -rf dist *.tsbuildinfo",
|
|
38
|
+
"typecheck": "tsc --noEmit"
|
|
39
|
+
}
|
|
40
|
+
}
|