@dain-os/mcp-server 0.1.1 → 0.2.1

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/README.md CHANGED
@@ -1,18 +1,19 @@
1
1
  # @dain-os/mcp-server
2
2
 
3
- MCP server for DainOS. Lets Claude Code and other MCP clients manage your projects, tasks, and task comments through a small, well-scoped tool surface.
3
+ MCP server for DainOS. Lets Claude Code and other MCP clients manage your projects, tasks, and task comments, and persist + retrieve developer knowledge (changelog / sessions / KB).
4
4
 
5
5
  ## What it does
6
6
 
7
- Wraps the DainOS Express API behind 12 tools:
7
+ Wraps the DainOS Express API behind 17 tools:
8
8
 
9
9
  | Domain | Tools |
10
10
  |---|---|
11
11
  | Projects | `list_projects`, `get_project`, `create_project`, `update_project`, `archive_project` |
12
12
  | Tasks | `list_tasks`, `get_task`, `create_task`, `update_task`, `complete_task`, `archive_task` |
13
13
  | Comments | `add_task_comment` |
14
+ | Developer KB (v0.2+) | `log_changelog_entry`, `log_session_context`, `log_knowledge_base_entry`, `list_recent_sessions`, `search_knowledge_base` |
14
15
 
15
- All operations run as the user who minted the token. Tenant scoping is enforced server-side.
16
+ Project / task / comment tools run as the user who minted the token, with tenant scoping enforced server-side. Developer KB tools are intentionally cross-tenant: they accept `project` as a required parameter and store entries in a shared developer schema (used by `/wrapup`, `/recap`, `/dev-kb`).
16
17
 
17
18
  ## Setup
18
19
 
package/dist/index.js CHANGED
@@ -13,7 +13,7 @@ import { DainOsClient, DainOsApiError } from './client.js';
13
13
  import { allTools, getTool } from './tools/index.js';
14
14
  import { toJsonSchema } from './tools/types.js';
15
15
  const PACKAGE_NAME = 'dainos';
16
- const PACKAGE_VERSION = '0.1.0';
16
+ const PACKAGE_VERSION = '0.2.1';
17
17
  function fail(message) {
18
18
  process.stderr.write(`[dainos-mcp] ${message}\n`);
19
19
  process.exit(1);
@@ -0,0 +1,3 @@
1
+ import type { ToolDefinition } from './types.js';
2
+ export declare const developerTools: ToolDefinition[];
3
+ //# sourceMappingURL=developer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"developer.d.ts","sourceRoot":"","sources":["../../src/tools/developer.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AA+LjD,eAAO,MAAM,cAAc,EAAE,cAAc,EAM1C,CAAC"}
@@ -0,0 +1,182 @@
1
+ import { z } from 'zod';
2
+ /**
3
+ * Developer KB tools. Five operations: log_changelog_entry, log_session_context,
4
+ * log_knowledge_base_entry, list_recent_sessions, search_knowledge_base.
5
+ *
6
+ * These back the /wrapup, /recap, and /dev-kb slash commands. The slash command
7
+ * still does the conversation analysis (parsing decisions, lessons, etc.); the
8
+ * tools here are the persistence + retrieval surface. With these in place a
9
+ * developer needs only the DainOS MCP installed — no Supabase MCP token — and
10
+ * the workflows port to any MCP client (Cursor, Continue, etc.).
11
+ *
12
+ * All tools are cross-project: the caller supplies `project` (e.g. "dain-os",
13
+ * "herbert", "mabel") on every call. The backing tables live in the developer
14
+ * schema and span tenants.
15
+ */
16
+ const commitTypeEnum = z.enum([
17
+ 'feat', 'fix', 'chore', 'refactor', 'test', 'docs', 'perf', 'ci', 'build', 'revert', 'style',
18
+ ]);
19
+ const sourceTypeEnum = z.enum([
20
+ 'fix_commit', 'pr_comment', 'pr_review', 'code_review',
21
+ 'ai_conversation', 'incident', 'documentation', 'debugging_session',
22
+ ]);
23
+ const severityEnum = z.enum(['critical', 'high', 'medium', 'low']);
24
+ const kbCategoryEnum = z.enum(['gotcha', 'pattern', 'lesson', 'decision', 'workaround']);
25
+ // ---------------------------------------------------------------------------
26
+ // log_changelog_entry — batch insert of commit records
27
+ // ---------------------------------------------------------------------------
28
+ const changelogEntrySchema = z.object({
29
+ commit_sha: z.string().length(40).describe('Full 40-character SHA.'),
30
+ branch: z.string().optional().describe('Defaults to "main" if omitted.'),
31
+ commit_type: commitTypeEnum.describe('Conventional-commit type prefix.'),
32
+ scope: z.string().optional(),
33
+ summary: z.string().describe('Commit message subject line.'),
34
+ description: z.string().optional(),
35
+ files_changed: z.number().int().optional(),
36
+ insertions: z.number().int().optional(),
37
+ deletions: z.number().int().optional(),
38
+ milestone: z.string().optional(),
39
+ task_ref: z.string().optional().describe('Linear / Jira / Notion task id.'),
40
+ impacts_config: z.boolean().optional().describe('Defaults false.'),
41
+ breaking_change: z.boolean().optional().describe('Defaults false.'),
42
+ tags: z.array(z.string()).optional(),
43
+ author: z.string().optional(),
44
+ committed_at: z.string().describe('ISO 8601 timestamp.'),
45
+ pr_number: z.number().int().optional(),
46
+ pr_url: z.string().optional(),
47
+ });
48
+ const logChangelogEntry = {
49
+ name: 'log_changelog_entry',
50
+ description: 'Append commit records to the developer changelog for a project. Use during /wrapup to persist today\'s commits. Accepts a batch (1-50 entries). Idempotent on (project, commit_sha): duplicates are silently skipped. Returns { inserted, skipped } counts.',
51
+ inputSchema: z.object({
52
+ project: z.string().describe('Project slug, e.g. "dain-os", "herbert", "mabel".'),
53
+ entries: z.array(changelogEntrySchema).min(1).max(50),
54
+ }),
55
+ handler: async (client, input) => {
56
+ const entries = input.entries.map((entry) => ({
57
+ ...entry,
58
+ project: input.project,
59
+ }));
60
+ return client.post('/developer/changelog', { entries });
61
+ },
62
+ };
63
+ // ---------------------------------------------------------------------------
64
+ // log_session_context — single session insert
65
+ // ---------------------------------------------------------------------------
66
+ const decisionSchema = z.object({
67
+ decision: z.string(),
68
+ reason: z.string(),
69
+ });
70
+ const logSessionContext = {
71
+ name: 'log_session_context',
72
+ description: 'Record a single development session for a project (one row per session). Captures decisions made, files touched, blockers, and handoff notes. Use during /wrapup to leave breadcrumbs for the next session. Read back via list_recent_sessions during /recap.',
73
+ inputSchema: z.object({
74
+ project: z.string().describe('Project slug, e.g. "dain-os".'),
75
+ session_name: z.string().describe('Short descriptive title.'),
76
+ session_date: z.string().optional().describe('YYYY-MM-DD. Defaults to today server-side.'),
77
+ operator: z.string().describe('e.g. "Dane + Claude Opus 4.7".'),
78
+ machine: z.string().optional(),
79
+ duration_minutes: z.number().int().optional(),
80
+ summary: z.string().describe('2-4 sentence overview of WHAT and WHY.'),
81
+ decisions_made: z.array(decisionSchema).optional().describe('Non-obvious choices future sessions need to understand.'),
82
+ files_touched: z.array(z.string()).optional(),
83
+ tasks_completed: z.array(z.string()).optional(),
84
+ blockers: z.array(z.string()).optional(),
85
+ handoff_notes: z.string().optional().describe('What the next session needs to know first.'),
86
+ tags: z.array(z.string()).optional(),
87
+ }),
88
+ handler: async (client, input) => client.post('/developer/sessions', input),
89
+ };
90
+ // ---------------------------------------------------------------------------
91
+ // log_knowledge_base_entry — batch insert of KB findings
92
+ // ---------------------------------------------------------------------------
93
+ const kbEntrySchema = z.object({
94
+ category: kbCategoryEnum,
95
+ module: z.string().describe('System / area, e.g. "auth", "react", "prisma".'),
96
+ title: z.string().describe('Short descriptive title.'),
97
+ description: z.string().describe('What happened / what is this.'),
98
+ impact: z.string().optional().describe('What goes wrong if you don\'t know this.'),
99
+ prevention: z.string().optional().describe('How to avoid it next time.'),
100
+ severity: severityEnum.optional(),
101
+ source_type: sourceTypeEnum,
102
+ source_refs: z.array(z.string()).optional().describe('Links, file paths, or commit SHAs.'),
103
+ tags: z.array(z.string()).optional(),
104
+ platform: z.string().optional().describe('e.g. "supabase", "anthropic", "vercel".'),
105
+ });
106
+ const logKnowledgeBaseEntry = {
107
+ name: 'log_knowledge_base_entry',
108
+ description: 'Append KB findings (gotchas, patterns, lessons, decisions, workarounds) for a project. Only add entries for things that were SURPRISING, NON-OBVIOUS, or caused real problems. Use during /wrapup. Accepts a batch (1-50 entries). Check for similar existing titles via search_knowledge_base before adding to avoid duplicates.',
109
+ inputSchema: z.object({
110
+ project: z.string().describe('Project slug, e.g. "dain-os". Use "universal" for cross-product lessons.'),
111
+ entries: z.array(kbEntrySchema).min(1).max(50),
112
+ }),
113
+ handler: async (client, input) => {
114
+ const entries = input.entries.map((entry) => ({
115
+ ...entry,
116
+ project: input.project,
117
+ }));
118
+ return client.post('/developer/knowledge-base', { entries });
119
+ },
120
+ };
121
+ // ---------------------------------------------------------------------------
122
+ // list_recent_sessions — read recent sessions for /recap
123
+ // ---------------------------------------------------------------------------
124
+ const listRecentSessions = {
125
+ name: 'list_recent_sessions',
126
+ description: 'List the most recent development sessions for a project, newest first. Use during /recap to brief the user on what happened in the last 1-N sessions. Returns full session_context rows including decisions, blockers, and handoff_notes.',
127
+ inputSchema: z.object({
128
+ project: z.string().describe('Project slug.'),
129
+ limit: z.number().int().min(1).max(50).optional().describe('Default 10, max 50.'),
130
+ offset: z.number().int().min(0).optional().describe('For pagination.'),
131
+ }),
132
+ handler: async (client, input) => {
133
+ const params = new URLSearchParams();
134
+ params.set('project', input.project);
135
+ if (input.limit !== undefined)
136
+ params.set('limit', String(input.limit));
137
+ if (input.offset !== undefined)
138
+ params.set('offset', String(input.offset));
139
+ return client.get(`/developer/sessions?${params.toString()}`);
140
+ },
141
+ };
142
+ // ---------------------------------------------------------------------------
143
+ // search_knowledge_base — read KB by project/module/severity/keyword
144
+ // ---------------------------------------------------------------------------
145
+ const searchKnowledgeBase = {
146
+ name: 'search_knowledge_base',
147
+ description: 'Search the developer KB for relevant gotchas, patterns, lessons, decisions, and workarounds. Use before writing code in a module (catches existing gotchas), during /dev-kb invocations, and before /wrapup to dedupe. Filters AND together; `q` is a case-insensitive substring match against title and description.',
148
+ inputSchema: z.object({
149
+ project: z.string().describe('Project slug. Filter by "universal" for cross-product entries.'),
150
+ module: z.string().optional().describe('e.g. "auth", "react", "prisma".'),
151
+ category: kbCategoryEnum.optional(),
152
+ severity: severityEnum.optional(),
153
+ q: z.string().optional().describe('Free-text match against title + description.'),
154
+ limit: z.number().int().min(1).max(50).optional().describe('Default 10.'),
155
+ offset: z.number().int().min(0).optional(),
156
+ }),
157
+ handler: async (client, input) => {
158
+ const params = new URLSearchParams();
159
+ params.set('project', input.project);
160
+ if (input.module)
161
+ params.set('module', input.module);
162
+ if (input.category)
163
+ params.set('category', input.category);
164
+ if (input.severity)
165
+ params.set('severity', input.severity);
166
+ if (input.q)
167
+ params.set('q', input.q);
168
+ if (input.limit !== undefined)
169
+ params.set('limit', String(input.limit));
170
+ if (input.offset !== undefined)
171
+ params.set('offset', String(input.offset));
172
+ return client.get(`/developer/knowledge-base/search?${params.toString()}`);
173
+ },
174
+ };
175
+ export const developerTools = [
176
+ logChangelogEntry,
177
+ logSessionContext,
178
+ logKnowledgeBaseEntry,
179
+ listRecentSessions,
180
+ searchKnowledgeBase,
181
+ ];
182
+ //# sourceMappingURL=developer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"developer.js","sourceRoot":"","sources":["../../src/tools/developer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB;;;;;;;;;;;;;GAaG;AAEH,MAAM,cAAc,GAAG,CAAC,CAAC,IAAI,CAAC;IAC5B,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO;CAC7F,CAAC,CAAC;AAEH,MAAM,cAAc,GAAG,CAAC,CAAC,IAAI,CAAC;IAC5B,YAAY,EAAE,YAAY,EAAE,WAAW,EAAE,aAAa;IACtD,iBAAiB,EAAE,UAAU,EAAE,eAAe,EAAE,mBAAmB;CACpE,CAAC,CAAC;AAEH,MAAM,YAAY,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,CAAC,CAAC,CAAC;AACnE,MAAM,cAAc,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,SAAS,EAAE,QAAQ,EAAE,UAAU,EAAE,YAAY,CAAC,CAAC,CAAC;AAEzF,8EAA8E;AAC9E,uDAAuD;AACvD,8EAA8E;AAE9E,MAAM,oBAAoB,GAAG,CAAC,CAAC,MAAM,CAAC;IACpC,UAA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KAAK,CAAC,OAAO,CAAC,CAAC;QACrC,IAAI,KAAK,CAAC,MAAM;YAAE,MAAM,CAAC,GAAG,CAAC,QAAQ,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;QACrD,IAAI,KAAK,CAAC,QAAQ;YAAE,MAAM,CAAC,GAAG,CAAC,UAAU,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAC;QAC3D,IAAI,KAAK,CAAC,QAAQ;YAAE,MAAM,CAAC,GAAG,CAAC,UAAU,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAC;QAC3D,IAAI,KAAK,CAAC,CAAC;YAAE,MAAM,CAAC,GAAG,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC;QACtC,IAAI,KAAK,CAAC,KAAK,KAAK,SAAS;YAAE,MAAM,CAAC,GAAG,CAAC,OAAO,EAAE,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC;QACxE,IAAI,KAAK,CAAC,MAAM,KAAK,SAAS;YAAE,MAAM,CAAC,GAAG,CAAC,QAAQ,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC;QAC3E,OAAO,MAAM,CAAC,GAAG,CAAC,oCAAoC,MAAM,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC;IAC7E,CAAC;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,cAAc,GAAqB;IAC9C,iBAAiB;IACjB,iBAAiB;IACjB,qBAAqB;IACrB,kBAAkB;IAClB,mBAAmB;CACpB,CAAC"}
@@ -2,9 +2,10 @@ import type { ToolDefinition } from './types.js';
2
2
  import { projectTools } from './projects.js';
3
3
  import { taskTools } from './tasks.js';
4
4
  import { commentTools } from './comments.js';
5
- export { projectTools, taskTools, commentTools };
5
+ import { developerTools } from './developer.js';
6
+ export { projectTools, taskTools, commentTools, developerTools };
6
7
  export type { ToolDefinition };
7
- /** All tools exposed by the DainOS MCP server (12 total). */
8
+ /** All tools exposed by the DainOS MCP server (17 total). */
8
9
  export declare const allTools: ToolDefinition[];
9
10
  /** Look up a tool by its exposed name. */
10
11
  export declare function getTool(name: string): ToolDefinition | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/tools/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAE7C,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,YAAY,EAAE,CAAC;AACjD,YAAY,EAAE,cAAc,EAAE,CAAC;AAE/B,6DAA6D;AAC7D,eAAO,MAAM,QAAQ,EAAE,cAAc,EAIpC,CAAC;AAEF,0CAA0C;AAC1C,wBAAgB,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,cAAc,GAAG,SAAS,CAEhE"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/tools/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAEhD,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,YAAY,EAAE,cAAc,EAAE,CAAC;AACjE,YAAY,EAAE,cAAc,EAAE,CAAC;AAE/B,6DAA6D;AAC7D,eAAO,MAAM,QAAQ,EAAE,cAAc,EAKpC,CAAC;AAEF,0CAA0C;AAC1C,wBAAgB,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,cAAc,GAAG,SAAS,CAEhE"}
@@ -1,12 +1,14 @@
1
1
  import { projectTools } from './projects.js';
2
2
  import { taskTools } from './tasks.js';
3
3
  import { commentTools } from './comments.js';
4
- export { projectTools, taskTools, commentTools };
5
- /** All tools exposed by the DainOS MCP server (12 total). */
4
+ import { developerTools } from './developer.js';
5
+ export { projectTools, taskTools, commentTools, developerTools };
6
+ /** All tools exposed by the DainOS MCP server (17 total). */
6
7
  export const allTools = [
7
8
  ...projectTools,
8
9
  ...taskTools,
9
10
  ...commentTools,
11
+ ...developerTools,
10
12
  ];
11
13
  /** Look up a tool by its exposed name. */
12
14
  export function getTool(name) {
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/tools/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAE7C,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,YAAY,EAAE,CAAC;AAGjD,6DAA6D;AAC7D,MAAM,CAAC,MAAM,QAAQ,GAAqB;IACxC,GAAG,YAAY;IACf,GAAG,SAAS;IACZ,GAAG,YAAY;CAChB,CAAC;AAEF,0CAA0C;AAC1C,MAAM,UAAU,OAAO,CAAC,IAAY;IAClC,OAAO,QAAQ,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,CAAC;AACrD,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/tools/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAEhD,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,YAAY,EAAE,cAAc,EAAE,CAAC;AAGjE,6DAA6D;AAC7D,MAAM,CAAC,MAAM,QAAQ,GAAqB;IACxC,GAAG,YAAY;IACf,GAAG,SAAS;IACZ,GAAG,YAAY;IACf,GAAG,cAAc;CAClB,CAAC;AAEF,0CAA0C;AAC1C,MAAM,UAAU,OAAO,CAAC,IAAY;IAClC,OAAO,QAAQ,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,CAAC;AACrD,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dain-os/mcp-server",
3
- "version": "0.1.1",
3
+ "version": "0.2.1",
4
4
  "description": "MCP server for DainOS — manage projects and tasks from Claude Code and other MCP clients",
5
5
  "type": "module",
6
6
  "bin": {