@alacrity-ai/kbrelaymcp 0.3.0 → 0.4.0
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/server.js +6 -1
- package/dist/tools/index.js +9 -2
- package/package.json +1 -1
package/dist/server.js
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
|
+
import { createRequire } from 'node:module';
|
|
1
2
|
import { Server } from '@modelcontextprotocol/sdk/server/index.js';
|
|
2
3
|
import { CallToolRequestSchema, ListToolsRequestSchema } from '@modelcontextprotocol/sdk/types.js';
|
|
3
4
|
import { allTools } from './tools/index.js';
|
|
5
|
+
// Single source of truth for the advertised version: the package's own
|
|
6
|
+
// package.json (resolved at runtime — dist/server.js sits one dir under the
|
|
7
|
+
// package root). Avoids the hardcoded string drifting from the npm version.
|
|
8
|
+
const { version } = createRequire(import.meta.url)('../package.json');
|
|
4
9
|
/**
|
|
5
10
|
* The low-level MCP server: advertises `allTools` for ListTools, and for
|
|
6
11
|
* CallTool finds the tool by name, validates+runs it (zod validation happens
|
|
@@ -8,7 +13,7 @@ import { allTools } from './tools/index.js';
|
|
|
8
13
|
* (`isError: true` on failure).
|
|
9
14
|
*/
|
|
10
15
|
export function createServer(opts) {
|
|
11
|
-
const server = new Server({ name: 'kbrelaymcp', version
|
|
16
|
+
const server = new Server({ name: 'kbrelaymcp', version }, { capabilities: { tools: {} } });
|
|
12
17
|
server.setRequestHandler(ListToolsRequestSchema, () => ({
|
|
13
18
|
tools: allTools.map((t) => ({
|
|
14
19
|
name: t.name,
|
package/dist/tools/index.js
CHANGED
|
@@ -35,7 +35,7 @@ export const allTools = [
|
|
|
35
35
|
}),
|
|
36
36
|
defineTool({
|
|
37
37
|
name: 'get_project',
|
|
38
|
-
description: 'Get
|
|
38
|
+
description: 'Get a project (name, code, description, color, status) + its columns, each with an optional `role`. Read `description` for context. Resolve target columns by `role`, never by hardcoded name.',
|
|
39
39
|
inputSchema: z.object({ projectId: z.string() }),
|
|
40
40
|
handler: (a, c) => c.request('GET', `/v1/projects/${enc(a.projectId)}`),
|
|
41
41
|
}),
|
|
@@ -102,7 +102,7 @@ export const allTools = [
|
|
|
102
102
|
}),
|
|
103
103
|
defineTool({
|
|
104
104
|
name: 'update_card',
|
|
105
|
-
description: 'Edit a card
|
|
105
|
+
description: 'Edit a card and/or move it (status = column). Move by role: pickup → in_progress, finish → review, done only when told, stuck → blocked. Log progress via add_comment, not the description.',
|
|
106
106
|
inputSchema: z.object({
|
|
107
107
|
cardId: z.string(),
|
|
108
108
|
summary: z.string().optional(),
|
|
@@ -157,6 +157,13 @@ export const allTools = [
|
|
|
157
157
|
inputSchema: z.object({ cardId: z.string(), commentId: z.string() }),
|
|
158
158
|
handler: (a, c) => c.request('DELETE', `/v1/cards/${enc(a.cardId)}/comments/${enc(a.commentId)}`),
|
|
159
159
|
}),
|
|
160
|
+
// ── Your queue (what to work now) ──
|
|
161
|
+
defineTool({
|
|
162
|
+
name: 'list_my_queue',
|
|
163
|
+
description: 'Your queue: cards assigned to you in a `ready`-role column (optional projectId). Work these first. Pick up → in_progress, finish → review + handoff, done only when told.',
|
|
164
|
+
inputSchema: z.object({ projectId: z.string().optional() }),
|
|
165
|
+
handler: (a, c) => c.request('GET', `/v1/me/queue${qs({ projectId: a.projectId })}`),
|
|
166
|
+
}),
|
|
160
167
|
// ── Mentions (your inbox) ──
|
|
161
168
|
defineTool({
|
|
162
169
|
name: 'get_mentions',
|
package/package.json
CHANGED