@thedesignagent/mcp 0.2.3 → 0.2.5
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 +2 -2
- package/dist/index.js +8 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -34,11 +34,11 @@ Get an API key (it starts with `tda_`) at [thedesignagent.ai/dashboard/api-keys]
|
|
|
34
34
|
|
|
35
35
|
### Claude Code (recommended: the plugin)
|
|
36
36
|
|
|
37
|
-
The plugin includes this server, plus skills that teach the agent the brief → build → review loop and `/
|
|
37
|
+
The plugin includes this server, plus skills that teach the agent the brief → build → review loop and `/tda:brief` and `/tda:review` commands:
|
|
38
38
|
|
|
39
39
|
```
|
|
40
40
|
/plugin marketplace add CMBurnett/the-design-agent-plugin
|
|
41
|
-
/plugin install
|
|
41
|
+
/plugin install tda@thedesignagent
|
|
42
42
|
```
|
|
43
43
|
|
|
44
44
|
Or add the server on its own:
|
package/dist/index.js
CHANGED
|
@@ -344,7 +344,7 @@ async function handleUxCall(args) {
|
|
|
344
344
|
artifact: args.artifact,
|
|
345
345
|
project_id: args.project_id,
|
|
346
346
|
repo_hash: args.repo_hash,
|
|
347
|
-
|
|
347
|
+
codebase_context: args.codebase_context,
|
|
348
348
|
...(args.stages?.length && { stages: args.stages }),
|
|
349
349
|
});
|
|
350
350
|
if (gw.ok) {
|
|
@@ -482,13 +482,16 @@ async function handleDiscoverCall(args) {
|
|
|
482
482
|
}
|
|
483
483
|
log('info', 'pipeline_call', `tool=discover project_id=${args.project_id ?? 'none'} task_len=${args.task.length} via=gateway`);
|
|
484
484
|
// Route through hosted gateway so mcp_call_logs telemetry captures this call.
|
|
485
|
+
// The gateway takes the same snake_case arguments as its public tool schema
|
|
486
|
+
// (lib/mcp/tools.ts) and does the camelCase mapping to the edge function
|
|
487
|
+
// itself; camelCase keys sent here are silently dropped.
|
|
485
488
|
const gw = await callGatewayTool('Discover', {
|
|
486
489
|
task: args.task,
|
|
487
490
|
project_id: args.project_id,
|
|
488
491
|
repo_hash: args.repo_hash,
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
...(args.project_model && {
|
|
492
|
+
codebase_context: args.codebase_context,
|
|
493
|
+
schema_hash: args.schema_hash,
|
|
494
|
+
...(args.project_model && { project_model: args.project_model }),
|
|
492
495
|
...(args.skills?.length && { skills: args.skills }),
|
|
493
496
|
});
|
|
494
497
|
if (gw.ok) {
|
|
@@ -513,7 +516,7 @@ const evalInputSchema = {
|
|
|
513
516
|
repo_hash: z.string().optional().describe('SHA256 of git remote origin URL (fallback if no .thedesignagent)'),
|
|
514
517
|
codebase_context: z.string().optional().describe('Optional surrounding code context'),
|
|
515
518
|
};
|
|
516
|
-
const server = new McpServer({ name: 'TheDesignAgent', version: '0.2.
|
|
519
|
+
const server = new McpServer({ name: 'TheDesignAgent', version: '0.2.5' });
|
|
517
520
|
server.registerTool('Discover', {
|
|
518
521
|
description: `Get a build brief calibrated to your project, persona, and the specific screen you're building.
|
|
519
522
|
|