@impetik/xeer-mcp 0.2.5 → 0.2.6
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 +4 -1
- package/dist/dev-session.d.ts +1 -1
- package/dist/network-policy.js +1 -1
- package/dist/server.d.ts +1 -1
- package/dist/server.js +4 -4
- package/dist/test-run.d.ts +1 -1
- package/dist/xeer-cli.d.ts +1 -1
- package/package.json +8 -5
- package/vendor/spec/actions.d.ts +1250 -0
- package/vendor/spec/actions.js +805 -0
- package/vendor/spec/admin-sql.d.ts +59 -0
- package/vendor/spec/admin-sql.js +147 -0
- package/vendor/spec/admin.d.ts +110 -0
- package/vendor/spec/admin.js +58 -0
- package/vendor/spec/canonical.d.ts +3 -0
- package/vendor/spec/canonical.js +36 -0
- package/vendor/spec/diagnostics.d.ts +49 -0
- package/vendor/spec/diagnostics.js +500 -0
- package/vendor/spec/docs.d.ts +21 -0
- package/vendor/spec/docs.js +57 -0
- package/vendor/spec/events.d.ts +8 -0
- package/vendor/spec/events.js +21 -0
- package/vendor/spec/identity-keys.d.ts +36 -0
- package/vendor/spec/identity-keys.js +72 -0
- package/vendor/spec/index.d.ts +20 -0
- package/vendor/spec/index.js +20 -0
- package/vendor/spec/local-identity.d.ts +69 -0
- package/vendor/spec/local-identity.js +132 -0
- package/vendor/spec/network-policy.d.ts +16 -0
- package/vendor/spec/network-policy.js +50 -0
- package/vendor/spec/public-assets.d.ts +153 -0
- package/vendor/spec/public-assets.js +166 -0
- package/vendor/spec/review.d.ts +82 -0
- package/vendor/spec/review.js +175 -0
- package/vendor/spec/route.d.ts +43 -0
- package/vendor/spec/route.js +87 -0
- package/vendor/spec/schema-lifecycle.d.ts +6 -0
- package/vendor/spec/schema-lifecycle.js +59 -0
- package/vendor/spec/schema-plan.d.ts +98 -0
- package/vendor/spec/schema-plan.js +194 -0
- package/vendor/spec/schema.d.ts +166 -0
- package/vendor/spec/schema.js +409 -0
- package/vendor/spec/sql-expression.d.ts +91 -0
- package/vendor/spec/sql-expression.js +650 -0
- package/vendor/spec/state-export.d.ts +143 -0
- package/vendor/spec/state-export.js +341 -0
- package/vendor/spec/storage.d.ts +61 -0
- package/vendor/spec/storage.js +120 -0
- package/vendor/spec/table-ddl.d.ts +162 -0
- package/vendor/spec/table-ddl.js +508 -0
- package/vendor/spec/types.d.ts +275 -0
- package/vendor/spec/types.js +11 -0
- package/vendor/spec/value.d.ts +22 -0
- package/vendor/spec/value.js +72 -0
package/README.md
CHANGED
|
@@ -76,7 +76,7 @@ The generated registry is the complete MCP tool and exclusion surface:
|
|
|
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
77
|
| `xeer_diagnostics` | `diagnostics` | `author` / `operator` | Read the generated diagnostic catalogue. | `code?`: `string` | none | read-only; idempotent; reversible; non-destructive | `none` | `unversioned` | none |
|
|
78
78
|
|
|
79
|
-
**CLI actions intentionally excluded from MCP (
|
|
79
|
+
**CLI actions intentionally excluded from MCP (34).**
|
|
80
80
|
|
|
81
81
|
| CLI action | Action | Summary | Effects | Safety | Path policy | Output | Why no MCP tool |
|
|
82
82
|
| --- | --- | --- | --- | --- | --- | --- | --- |
|
|
@@ -111,6 +111,9 @@ The generated registry is the complete MCP tool and exclusion surface:
|
|
|
111
111
|
| `xeer token ls` | `token.ls` | List service token metadata. | `network-read`<br>`secret-metadata` | read-only; idempotent; reversible; non-destructive | `none` | `xeer.command.v0` | Service credential issuance and revocation are intentionally CLI-only. |
|
|
112
112
|
| `xeer token revoke` | `token.revoke` | Revoke a service builder token. | `network-write`<br>`secret-write` | writes; idempotent; irreversible; destructive | `none` | `xeer.command.v0` | Service credential issuance and revocation are intentionally CLI-only. |
|
|
113
113
|
| `xeer actions` | `actions` | Print the machine-readable action and safety catalogue. | none | read-only; idempotent; reversible; non-destructive | `none` | `xeer.command.v0` | Not exposed through MCP v0; use the CLI deliberately. |
|
|
114
|
+
| `xeer db tables` | `db.tables` | List the tables of a running application database. | `read-state` | read-only; idempotent; reversible; non-destructive | `project-relative` | `xeer.command.v0` | Not exposed through MCP v0; use the CLI deliberately. |
|
|
115
|
+
| `xeer db schema` | `db.schema` | Print the declared schema of a running application database. | `read-state` | read-only; idempotent; reversible; non-destructive | `project-relative` | `xeer.command.v0` | Not exposed through MCP v0; use the CLI deliberately. |
|
|
116
|
+
| `xeer db exec` | `db.exec` | Run one SQL statement against a running application database. | `read-state`<br>`write-state` | writes; non-idempotent; irreversible; non-destructive | `project-relative` | `xeer.command.v0` | Destructive state replacement requires an explicit CLI invocation. |
|
|
114
117
|
<!-- xeer-action-reference:end -->
|
|
115
118
|
|
|
116
119
|
Every tool returns `{ protocol: "xeer.mcp-result.v0", action, ok, result?, error? }` both as
|
package/dist/dev-session.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Diagnostic, DevEvent } from '
|
|
1
|
+
import type { Diagnostic, DevEvent } from '../vendor/spec/index.js';
|
|
2
2
|
/**
|
|
3
3
|
* `xeer dev` is a long-running process that streams `xeer.dev.v0` JSONL events;
|
|
4
4
|
* an MCP tool call is a single request/response. This module reconciles the two
|
package/dist/network-policy.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DEFAULT_XEER_CONTROL_ORIGIN, exactHttpOrigin, isHostedXeerApplicationTarget, isLocalInspectorTarget, isLoopbackHostname, } from '
|
|
1
|
+
import { DEFAULT_XEER_CONTROL_ORIGIN, exactHttpOrigin, isHostedXeerApplicationTarget, isLocalInspectorTarget, isLoopbackHostname, } from '../vendor/spec/network-policy.js';
|
|
2
2
|
const APP_ID = /^app_[A-Za-z0-9_-]{8,96}$/u;
|
|
3
3
|
const APPLICATION_NAME = /^[a-z][a-z0-9-]{1,62}$/u;
|
|
4
4
|
function configuredControlOrigins(value) {
|
package/dist/server.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
|
|
2
|
-
import { type XeerMcpProfile } from '
|
|
2
|
+
import { type XeerMcpProfile } from '../vendor/spec/actions.js';
|
|
3
3
|
import { DevSessionRegistry } from './dev-session.js';
|
|
4
4
|
export interface XeerMcpServer {
|
|
5
5
|
server: McpServer;
|
package/dist/server.js
CHANGED
|
@@ -3,9 +3,9 @@ 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 { DIAGNOSTICS, DIAGNOSTIC_CODES, DIAGNOSTIC_FAMILIES, diagnosticDefinition, renderDiagnosticsReference, } from '
|
|
7
|
-
import { actionDefinition, mcpAnnotations, } from '
|
|
8
|
-
import { isReviewReceiptId } from '
|
|
6
|
+
import { DIAGNOSTICS, DIAGNOSTIC_CODES, DIAGNOSTIC_FAMILIES, diagnosticDefinition, renderDiagnosticsReference, } from '../vendor/spec/diagnostics.js';
|
|
7
|
+
import { actionDefinition, mcpAnnotations, } from '../vendor/spec/actions.js';
|
|
8
|
+
import { isReviewReceiptId } from '../vendor/spec/review.js';
|
|
9
9
|
import { DevSessionRegistry } from './dev-session.js';
|
|
10
10
|
import { controlOriginRefusal, inspectorTargetRefusal } from './network-policy.js';
|
|
11
11
|
import { runXeerTests } from './test-run.js';
|
|
@@ -81,7 +81,7 @@ function toolPolicy(id) {
|
|
|
81
81
|
}));
|
|
82
82
|
return { title, description, inputSchema, annotations: mcpAnnotations(definition) };
|
|
83
83
|
}
|
|
84
|
-
/** Mirrors the Diagnostic interface
|
|
84
|
+
/** Mirrors the spec's `Diagnostic` interface, loosely so new fields pass through. */
|
|
85
85
|
const diagnosticSchema = z.object({
|
|
86
86
|
code: z.string(),
|
|
87
87
|
severity: z.string(),
|
package/dist/test-run.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { DevEvent, Diagnostic } from '
|
|
1
|
+
import type { DevEvent, Diagnostic } from '../vendor/spec/index.js';
|
|
2
2
|
/**
|
|
3
3
|
* `xeer test --json` is the one command that streams instead of printing an
|
|
4
4
|
* envelope: it reuses the `xeer.dev.v0` JSONL protocol so a consumer sees the
|
package/dist/xeer-cli.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@impetik/xeer-mcp",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.6",
|
|
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",
|
|
@@ -20,10 +20,14 @@
|
|
|
20
20
|
],
|
|
21
21
|
"files": [
|
|
22
22
|
"dist",
|
|
23
|
+
"vendor",
|
|
23
24
|
"README.md",
|
|
24
25
|
"LICENSE",
|
|
25
26
|
"!dist/**/*.map",
|
|
26
|
-
"!dist/**/*.test.*"
|
|
27
|
+
"!dist/**/*.test.*",
|
|
28
|
+
"!vendor/**/*.map",
|
|
29
|
+
"!vendor/**/*.test.*",
|
|
30
|
+
"!vendor/**/*.test-stub.*"
|
|
27
31
|
],
|
|
28
32
|
"publishConfig": {
|
|
29
33
|
"access": "public"
|
|
@@ -43,14 +47,13 @@
|
|
|
43
47
|
"dependencies": {
|
|
44
48
|
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
45
49
|
"zod": "^4.0.10",
|
|
46
|
-
"@impetik/xeer": "0.2.
|
|
47
|
-
"@impetik/xeer-spec": "0.2.5"
|
|
50
|
+
"@impetik/xeer": "0.2.6"
|
|
48
51
|
},
|
|
49
52
|
"devDependencies": {
|
|
50
53
|
"@types/node": "^24.1.0"
|
|
51
54
|
},
|
|
52
55
|
"scripts": {
|
|
53
|
-
"build": "tsc -p tsconfig.json",
|
|
56
|
+
"build": "tsc -p tsconfig.json && node ../../scripts/vendor-internal.mjs @impetik/xeer-mcp",
|
|
54
57
|
"check": "tsc -p tsconfig.json --noEmit",
|
|
55
58
|
"test": "vitest run --testTimeout 120000",
|
|
56
59
|
"test:smoke": "vitest run --config vitest.smoke.config.ts",
|