@impetik/xeer-mcp 0.2.9 → 0.2.10
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 +1 -1
- package/dist/server.js +2 -8
- package/package.json +2 -2
- package/vendor/spec/actions.d.ts +8 -6
- package/vendor/spec/actions.js +8 -8
package/README.md
CHANGED
|
@@ -74,7 +74,7 @@ The generated registry is the complete MCP tool and exclusion surface:
|
|
|
74
74
|
| `xeer_dev_start` | `dev.start` | `author` / `operator` | Start a local development session. | `directory?`: `string`<br>`host?`: `string`<br>`port?`: `integer` [0..65535]<br>`timeoutMilliseconds?`: `integer` [1000..600000] | `read-source`<br>`write-generated`<br>`run-local`<br>`write-state` | writes; non-idempotent; reversible; non-destructive | `project-relative` | `xeer.dev.v0` | none |
|
|
75
75
|
| `xeer_dev_status` | `dev.status` | `author` / `operator` | Read new events from a local development session. | `sessionId?`: `string`<br>`cursor?`: `integer` [0..9007199254740991]; default `0`<br>`waitMilliseconds?`: `integer` [0..600000]; default `0`<br>`limit?`: `integer` [1..1000]; default `200` | none | read-only; idempotent; reversible; non-destructive | `none` | `xeer.dev.v0` | none |
|
|
76
76
|
| `xeer_dev_stop` | `dev.stop` | `author` / `operator` | Stop a local development session and release its lease. | `sessionId?`: `string`<br>`cursor?`: `integer` [0..9007199254740991]; default `0` | `run-local` | writes; idempotent; reversible; non-destructive | `none` | `xeer.dev.v0` | none |
|
|
77
|
-
| `xeer_diagnostics` | `diagnostics` | `author` / `operator` |
|
|
77
|
+
| `xeer_diagnostics` | `diagnostics` | `author` / `operator` | Explain one emitted diagnostic code. | `code`: `string` | none | read-only; idempotent; reversible; non-destructive | `none` | `xeer.command.v0` | none |
|
|
78
78
|
|
|
79
79
|
**CLI actions intentionally excluded from MCP (34).**
|
|
80
80
|
|
package/dist/server.js
CHANGED
|
@@ -3,7 +3,7 @@ import { isAbsolute, relative, sep } from 'node:path';
|
|
|
3
3
|
import { McpServer, ResourceTemplate } from '@modelcontextprotocol/sdk/server/mcp.js';
|
|
4
4
|
import { z } from 'zod';
|
|
5
5
|
import { createAgentContext, readDocsIndex, readDocsPage, searchDocs } from '@impetik/xeer/agent-context';
|
|
6
|
-
import {
|
|
6
|
+
import { DIAGNOSTIC_FAMILIES, diagnosticDefinition, } from '../vendor/spec/diagnostics.js';
|
|
7
7
|
import { actionDefinition, mcpAnnotations, } from '../vendor/spec/actions.js';
|
|
8
8
|
import { isReviewReceiptId } from '../vendor/spec/review.js';
|
|
9
9
|
import { DevSessionRegistry } from './dev-session.js';
|
|
@@ -541,18 +541,12 @@ export function createXeerMcpServer(options = {}) {
|
|
|
541
541
|
means: z.string().optional(),
|
|
542
542
|
repair: z.string().optional(),
|
|
543
543
|
surfaces: z.array(z.string()).optional(),
|
|
544
|
-
codes: z.array(z.string()).optional(),
|
|
545
|
-
reference: z.string().optional(),
|
|
546
544
|
}).loose()),
|
|
547
545
|
}, async ({ code }) => {
|
|
548
|
-
if (!code) {
|
|
549
|
-
return structured('diagnostics', { codes: [...DIAGNOSTIC_CODES], reference: renderDiagnosticsReference() });
|
|
550
|
-
}
|
|
551
546
|
const normalized = code.trim().toUpperCase();
|
|
552
547
|
const definition = diagnosticDefinition(normalized);
|
|
553
548
|
if (!definition) {
|
|
554
|
-
|
|
555
|
-
return failure('diagnostics', 'unknown_diagnostic', `Unknown diagnostic code: ${normalized}. Known codes: ${known}`);
|
|
549
|
+
return failure('diagnostics', 'unknown_diagnostic', `Unknown diagnostic code: ${normalized}. Pass the exact XE#### emitted by Xeer.`);
|
|
556
550
|
}
|
|
557
551
|
const family = DIAGNOSTIC_FAMILIES.find((candidate) => candidate.prefix === definition.prefix);
|
|
558
552
|
return structured('diagnostics', {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@impetik/xeer-mcp",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.10",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Model Context Protocol server for Xeer: the scaffold, check, dev, build, and deploy loop as agent tools.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"dependencies": {
|
|
48
48
|
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
49
49
|
"zod": "^4.0.10",
|
|
50
|
-
"@impetik/xeer": "0.2.
|
|
50
|
+
"@impetik/xeer": "0.2.10"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"@types/node": "^24.1.0"
|
package/vendor/spec/actions.d.ts
CHANGED
|
@@ -627,10 +627,11 @@ declare const actions: readonly [{
|
|
|
627
627
|
};
|
|
628
628
|
}, {
|
|
629
629
|
readonly id: "diagnostics";
|
|
630
|
-
readonly command: readonly [];
|
|
631
|
-
readonly summary: "
|
|
632
|
-
readonly usage: readonly [];
|
|
633
|
-
readonly
|
|
630
|
+
readonly command: readonly ["diagnostics"];
|
|
631
|
+
readonly summary: "Explain one emitted diagnostic code.";
|
|
632
|
+
readonly usage: readonly ["diagnostics <XE####> [--json]"];
|
|
633
|
+
readonly helpOrder: 37;
|
|
634
|
+
readonly outputProtocol: "xeer.command.v0";
|
|
634
635
|
readonly effects: readonly [];
|
|
635
636
|
readonly idempotent: true;
|
|
636
637
|
readonly reversible: true;
|
|
@@ -646,10 +647,11 @@ declare const actions: readonly [{
|
|
|
646
647
|
readonly type: "string";
|
|
647
648
|
};
|
|
648
649
|
};
|
|
650
|
+
readonly required: readonly ["code"];
|
|
649
651
|
};
|
|
650
652
|
readonly mcpTitle: "Look up Xeer diagnostic codes";
|
|
651
653
|
readonly mcpDescription: string;
|
|
652
|
-
readonly cli:
|
|
654
|
+
readonly cli: true;
|
|
653
655
|
readonly mcpTool: "xeer_diagnostics";
|
|
654
656
|
readonly mcpProfiles: readonly ["author", "operator"];
|
|
655
657
|
};
|
|
@@ -1244,7 +1246,7 @@ export declare function mcpAnnotations(action: XeerActionDefinition): McpActionA
|
|
|
1244
1246
|
export declare function mcpInputJsonSchema(action: XeerActionDefinition): McpInputJsonSchema | undefined;
|
|
1245
1247
|
export declare const ACTION_REFERENCE_START = "<!-- xeer-action-reference:start -->";
|
|
1246
1248
|
export declare const ACTION_REFERENCE_END = "<!-- xeer-action-reference:end -->";
|
|
1247
|
-
export declare const ACTION_REFERENCE_TARGETS: readonly ["docs/AGENTS.md", "packages/website/content/guides/agents.md", ".agents/skills/xeer/
|
|
1249
|
+
export declare const ACTION_REFERENCE_TARGETS: readonly ["docs/AGENTS.md", "packages/website/content/guides/agents.md", ".agents/skills/xeer/references/mcp-actions.md", "packages/mcp/README.md", "packages/website/content/reference/cli.md"];
|
|
1248
1250
|
/** One generated block is embedded in every agent-facing action-policy surface. */
|
|
1249
1251
|
export declare function renderActionReference(): string;
|
|
1250
1252
|
export {};
|
package/vendor/spec/actions.js
CHANGED
|
@@ -136,9 +136,8 @@ const MCP_PRESENTATION = {
|
|
|
136
136
|
},
|
|
137
137
|
diagnostics: {
|
|
138
138
|
mcpTitle: 'Look up Xeer diagnostic codes',
|
|
139
|
-
mcpDescription: 'Explain
|
|
140
|
-
+ '
|
|
141
|
-
+ 'from, so it cannot drift from the codes you receive.',
|
|
139
|
+
mcpDescription: 'Explain one diagnostic code: what the platform observed and which edit closes it. '
|
|
140
|
+
+ 'Pass the exact XE#### emitted by the command; this lookup intentionally never returns the whole catalogue.',
|
|
142
141
|
},
|
|
143
142
|
};
|
|
144
143
|
const actions = [
|
|
@@ -387,15 +386,16 @@ const actions = [
|
|
|
387
386
|
},
|
|
388
387
|
},
|
|
389
388
|
{
|
|
390
|
-
id: 'diagnostics', command: [], summary: '
|
|
391
|
-
usage: [
|
|
389
|
+
id: 'diagnostics', command: ['diagnostics'], summary: 'Explain one emitted diagnostic code.',
|
|
390
|
+
usage: ['diagnostics <XE####> [--json]'], helpOrder: 37,
|
|
391
|
+
outputProtocol: 'xeer.command.v0', effects: [], idempotent: true, reversible: true,
|
|
392
392
|
destructive: false, humanPrerequisites: [], pathPolicy: 'none',
|
|
393
393
|
surfaces: {
|
|
394
|
-
cli:
|
|
394
|
+
cli: true, mcpTool: 'xeer_diagnostics', mcpProfiles: XEER_MCP_PROFILES,
|
|
395
395
|
...MCP_PRESENTATION.diagnostics,
|
|
396
396
|
mcpInputSchema: { type: 'object', properties: {
|
|
397
397
|
code: { description: 'An XE#### code, e.g. XE1202.', type: 'string' },
|
|
398
|
-
} },
|
|
398
|
+
}, required: ['code'] },
|
|
399
399
|
},
|
|
400
400
|
},
|
|
401
401
|
{
|
|
@@ -732,7 +732,7 @@ export const ACTION_REFERENCE_END = '<!-- xeer-action-reference:end -->';
|
|
|
732
732
|
export const ACTION_REFERENCE_TARGETS = [
|
|
733
733
|
'docs/AGENTS.md',
|
|
734
734
|
'packages/website/content/guides/agents.md',
|
|
735
|
-
'.agents/skills/xeer/
|
|
735
|
+
'.agents/skills/xeer/references/mcp-actions.md',
|
|
736
736
|
'packages/mcp/README.md',
|
|
737
737
|
'packages/website/content/reference/cli.md',
|
|
738
738
|
];
|