@graview/tools 0.1.0 → 0.1.2
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 +46 -0
- package/dist/agent/adapters.d.ts +5 -1
- package/dist/agent/adapters.d.ts.map +1 -1
- package/dist/agent/adapters.js +4 -1
- package/dist/agent/adapters.js.map +1 -1
- package/dist/agent/tools.d.ts +68 -2
- package/dist/agent/tools.d.ts.map +1 -1
- package/dist/agent/tools.js +251 -65
- package/dist/agent/tools.js.map +1 -1
- package/dist/agent/untrusted.d.ts +50 -0
- package/dist/agent/untrusted.d.ts.map +1 -0
- package/dist/agent/untrusted.js +127 -0
- package/dist/agent/untrusted.js.map +1 -0
- package/dist/cli.d.ts +4 -2
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +116 -7
- package/dist/cli.js.map +1 -1
- package/dist/derive.d.ts.map +1 -1
- package/dist/derive.js +46 -2
- package/dist/derive.js.map +1 -1
- package/dist/index.d.ts +6 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/dist/mcp-http.d.ts +40 -0
- package/dist/mcp-http.d.ts.map +1 -0
- package/dist/mcp-http.js +57 -0
- package/dist/mcp-http.js.map +1 -0
- package/dist/mcp-protocol.d.ts +44 -0
- package/dist/mcp-protocol.d.ts.map +1 -0
- package/dist/mcp-protocol.js +50 -0
- package/dist/mcp-protocol.js.map +1 -0
- package/dist/mcp-stdio.d.ts +5 -9
- package/dist/mcp-stdio.d.ts.map +1 -1
- package/dist/mcp-stdio.js +9 -50
- package/dist/mcp-stdio.js.map +1 -1
- package/dist/providers/structure.d.ts.map +1 -1
- package/dist/providers/structure.js +18 -5
- package/dist/providers/structure.js.map +1 -1
- package/package.json +4 -3
package/README.md
CHANGED
|
@@ -45,3 +45,49 @@ the store backends `graview serve` takes — `--data`, `--sqlite`,
|
|
|
45
45
|
`--remote-url` — and the seat flags `--as` and `--roles`. Every act that
|
|
46
46
|
creates a kind accepts an optional `id` for the node it makes; every kind has
|
|
47
47
|
a derived `remove-<kind>`, permitted through the acts that create it.
|
|
48
|
+
|
|
49
|
+
## A hosted app: `createMcpHttpHandler`
|
|
50
|
+
|
|
51
|
+
ChatGPT and Claude reach a server over HTTP. `createMcpHttpHandler` is the
|
|
52
|
+
same five methods behind a fetch handler, `(Request) → Response`, over
|
|
53
|
+
Streamable HTTP and stateless: no session, a runtime derived per request for
|
|
54
|
+
the principal the host's `authenticate` hook returns. No principal is a 401
|
|
55
|
+
for every message, `initialize` included.
|
|
56
|
+
|
|
57
|
+
```ts
|
|
58
|
+
import { createMcpHttpHandler } from "@graview/tools";
|
|
59
|
+
|
|
60
|
+
export default {
|
|
61
|
+
fetch: createMcpHttpHandler({
|
|
62
|
+
store,
|
|
63
|
+
name: "wedding-vendors",
|
|
64
|
+
version: "1.0.0",
|
|
65
|
+
authenticate: (request) => seatFor(request.headers.get("authorization")),
|
|
66
|
+
}),
|
|
67
|
+
};
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
Every tool carries a title and MCP's four hints in its `annotations`,
|
|
71
|
+
derived from the declaration: the reads are read-only; an act that removes or
|
|
72
|
+
severs is destructive; an act that sets only what it is given is idempotent;
|
|
73
|
+
and no tool reaches an open world. Tool names are MCP-safe — letters, digits,
|
|
74
|
+
`_` and `-`, at most 64 — and an act whose name is not is listed under a
|
|
75
|
+
safe one, with `_2` on a collision; `act` on a definition says which act it
|
|
76
|
+
runs. `toolDefinitions(app, principal)` lists the same surface without a
|
|
77
|
+
store, with the `hash` a stateless host compares to learn that it moved.
|
|
78
|
+
|
|
79
|
+
Reads go through `seenBy`, and prose written by somebody other than the
|
|
80
|
+
caller — or the person an agent acts for — comes back as
|
|
81
|
+
`{ untrusted: true, authoredBy, text }` in `get_node`, `get_graph` and
|
|
82
|
+
`search_graph`, so a model reads another collaborator's words as data.
|
|
83
|
+
|
|
84
|
+
## Records by name
|
|
85
|
+
|
|
86
|
+
A person says "book the florist", not `vendor:bloom-co`. Every argument that
|
|
87
|
+
names a record takes its id or its name: a label, case and accents aside, or
|
|
88
|
+
the one label it starts, among the records the seat may see of the kinds the
|
|
89
|
+
argument accepts. The result's `resolved` says which id a name was taken to
|
|
90
|
+
mean; two matches are refused with every candidate (`candidates`), and none
|
|
91
|
+
says so. `get_node` takes a name the same way. `store.resolveRef(arg, given,
|
|
92
|
+
principal)` is the same resolution for a host, through a label index that
|
|
93
|
+
follows the graph's diffs.
|
package/dist/agent/adapters.d.ts
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import type { AnySchema, GraphDiff, NodeOfSchema } from "@graview/core";
|
|
2
|
-
import type { ToolRuntime } from "./tools.js";
|
|
2
|
+
import type { ToolAnnotations, ToolRuntime } from "./tools.js";
|
|
3
3
|
/** The shape an MCP server expects from `tools/list`. */
|
|
4
4
|
export interface McpTool {
|
|
5
5
|
readonly name: string;
|
|
6
6
|
readonly title?: string;
|
|
7
7
|
readonly description: string;
|
|
8
8
|
readonly inputSchema: Record<string, unknown>;
|
|
9
|
+
/** What the tool does, as MCP directories ask: read-only, destructive, idempotent, open-world (FR-10). */
|
|
10
|
+
readonly annotations?: ToolAnnotations;
|
|
9
11
|
}
|
|
10
12
|
export interface McpContent {
|
|
11
13
|
readonly type: "text";
|
|
@@ -23,6 +25,8 @@ export interface McpToolResult {
|
|
|
23
25
|
* decisions the two agent surfaces have begun to diverge.
|
|
24
26
|
*/
|
|
25
27
|
export declare function createMcpAdapter<S extends AnySchema>(runtime: ToolRuntime<S>): {
|
|
28
|
+
/** The surface's fingerprint, for a host that cannot push `tools/list_changed`. */
|
|
29
|
+
surfaceHash: string;
|
|
26
30
|
listTools(): McpTool[];
|
|
27
31
|
callTool(name: string, args?: Record<string, unknown>): Promise<McpToolResult>;
|
|
28
32
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"adapters.d.ts","sourceRoot":"","sources":["../../src/agent/adapters.ts"],"names":[],"mappings":"A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C,KAAK,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC;IAC9C,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IACpE,6CAA6C;IAC7C,KAAK,CAAC,QAAQ,EAAE,CAAC,IAAI,EAAE,SAAS,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,KAAK,IAAI,GAAG,MAAM,IAAI,CAAC;CACzE;AAED;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAAC,CAAC,SAAS,SAAS,EACpD,OAAO,EAAE,WAAW,CAAC,CAAC,CAAC,GACtB,UAAU,CAAC,CAAC,CAAC,CAYf"}
|
package/dist/agent/adapters.js
CHANGED
|
@@ -7,12 +7,15 @@
|
|
|
7
7
|
*/
|
|
8
8
|
export function createMcpAdapter(runtime) {
|
|
9
9
|
return {
|
|
10
|
+
/** The surface's fingerprint, for a host that cannot push `tools/list_changed`. */
|
|
11
|
+
surfaceHash: runtime.hash,
|
|
10
12
|
listTools() {
|
|
11
13
|
return runtime.definitions.map((tool) => ({
|
|
12
14
|
name: tool.name,
|
|
13
|
-
|
|
15
|
+
title: tool.title,
|
|
14
16
|
description: tool.description,
|
|
15
17
|
inputSchema: tool.inputSchema,
|
|
18
|
+
annotations: tool.annotations,
|
|
16
19
|
}));
|
|
17
20
|
},
|
|
18
21
|
async callTool(name, args = {}) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"adapters.js","sourceRoot":"","sources":["../../src/agent/adapters.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"adapters.js","sourceRoot":"","sources":["../../src/agent/adapters.ts"],"names":[],"mappings":"AAuBA;;;;;;GAMG;AACH,MAAM,UAAU,gBAAgB,CAAsB,OAAuB;IAC3E,OAAO;QACL,mFAAmF;QACnF,WAAW,EAAE,OAAO,CAAC,IAAI;Q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M,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;YAC9C,OAAO,MAAM,CAAC,IAAI,CAAC;QACrB,CAAC;QACD,KAAK,CAAC,QAAQ;YACZ,OAAO,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;QAClC,CAAC;KACF,CAAC;AACJ,CAAC"}
|
package/dist/agent/tools.d.ts
CHANGED
|
@@ -1,12 +1,45 @@
|
|
|
1
|
-
import { type AnySchema, type GraphDiff, type JsonSchema, type NodeOfSchema, type Place, type Principal, type Store } from "@graview/core";
|
|
1
|
+
import { type AnySchema, type GraphDiff, type GraviewApp, type JsonSchema, type NodeOfSchema, type Place, type Principal, type RefCandidate, type Store } from "@graview/core";
|
|
2
2
|
import { applyAffordance, type DeriveOptions } from "../derive.js";
|
|
3
|
+
/**
|
|
4
|
+
* WHAT A TOOL DOES, in the words every MCP directory asks for (FR-10).
|
|
5
|
+
*
|
|
6
|
+
* Derived from the declaration, never written per tool: a read is
|
|
7
|
+
* read-only; an act that removes or severs loses something; an act whose
|
|
8
|
+
* second run changes nothing the first did not is idempotent. Nothing a
|
|
9
|
+
* Graview tool does reaches outside the graph it was derived from.
|
|
10
|
+
*/
|
|
11
|
+
export interface ToolAnnotations {
|
|
12
|
+
readonly title: string;
|
|
13
|
+
readonly readOnlyHint: boolean;
|
|
14
|
+
readonly destructiveHint: boolean;
|
|
15
|
+
readonly idempotentHint: boolean;
|
|
16
|
+
readonly openWorldHint: false;
|
|
17
|
+
}
|
|
3
18
|
export interface ToolDefinition {
|
|
19
|
+
/**
|
|
20
|
+
* The name a model calls. MCP-safe — letters, digits, `_` and `-`, at
|
|
21
|
+
* most 64, starting with a letter or `_` — so every client's tool layer
|
|
22
|
+
* takes it. An act whose own name is already safe keeps it.
|
|
23
|
+
*/
|
|
4
24
|
readonly name: string;
|
|
5
|
-
readonly title
|
|
25
|
+
readonly title: string;
|
|
6
26
|
readonly description: string;
|
|
7
27
|
readonly inputSchema: JsonSchema;
|
|
8
28
|
/** False for the read tools, true for anything that changes the graph. */
|
|
9
29
|
readonly mutating: boolean;
|
|
30
|
+
readonly annotations: ToolAnnotations;
|
|
31
|
+
/** The declared name of the act this tool runs; absent on the read tools. */
|
|
32
|
+
readonly act?: string;
|
|
33
|
+
}
|
|
34
|
+
/** What a name given for a node argument was taken to mean (FR-33). */
|
|
35
|
+
export interface Resolved {
|
|
36
|
+
/** The argument it was given for. */
|
|
37
|
+
readonly argument: string;
|
|
38
|
+
/** What the caller said. */
|
|
39
|
+
readonly given: string;
|
|
40
|
+
/** The record it was taken to mean, and what it is called. */
|
|
41
|
+
readonly id: string;
|
|
42
|
+
readonly label: string;
|
|
10
43
|
}
|
|
11
44
|
export type ToolResult<S extends AnySchema> = {
|
|
12
45
|
readonly ok: true;
|
|
@@ -25,6 +58,10 @@ export type ToolResult<S extends AnySchema> = {
|
|
|
25
58
|
} | {
|
|
26
59
|
readonly ok: false;
|
|
27
60
|
readonly error: string;
|
|
61
|
+
/** The argument a name could not be resolved for, when that is why. */
|
|
62
|
+
readonly argument?: string;
|
|
63
|
+
/** The records a name could mean, when it could mean several. */
|
|
64
|
+
readonly candidates?: readonly RefCandidate[];
|
|
28
65
|
};
|
|
29
66
|
export interface ToolRuntimeOptions<S extends AnySchema> {
|
|
30
67
|
/**
|
|
@@ -78,6 +115,11 @@ export interface ToolCall {
|
|
|
78
115
|
}
|
|
79
116
|
export interface ToolRuntime<S extends AnySchema> {
|
|
80
117
|
readonly definitions: readonly ToolDefinition[];
|
|
118
|
+
/**
|
|
119
|
+
* The surface's fingerprint: `sha256:` of every definition, canonically.
|
|
120
|
+
* A stateless host cannot push `tools/list_changed`; it compares this.
|
|
121
|
+
*/
|
|
122
|
+
readonly hash: string;
|
|
81
123
|
/**
|
|
82
124
|
* Who this seat writes as.
|
|
83
125
|
*
|
|
@@ -92,6 +134,30 @@ export interface ToolRuntime<S extends AnySchema> {
|
|
|
92
134
|
/** Every call, mutating or not, as it starts and as it settles. */
|
|
93
135
|
onCall(listener: (call: ToolCall) => void): () => void;
|
|
94
136
|
}
|
|
137
|
+
/** Said on every act whose arguments name records: a name is resolved as well as an id (FR-33). */
|
|
138
|
+
export declare const BY_NAME = "An argument that names a record takes its id or its name.";
|
|
139
|
+
/** The surface's fingerprint. */
|
|
140
|
+
export declare function surfaceHash(definitions: readonly ToolDefinition[]): string;
|
|
141
|
+
export interface ToolDefinitionsOptions {
|
|
142
|
+
/** Only the read tools, as a read-only seat lists them. */
|
|
143
|
+
readonly readOnly?: boolean;
|
|
144
|
+
/** The modules this workspace has on, when the app declares modules; every one otherwise. */
|
|
145
|
+
readonly enabledModules?: readonly string[];
|
|
146
|
+
}
|
|
147
|
+
/**
|
|
148
|
+
* THE TOOL SURFACE WITHOUT A STORE.
|
|
149
|
+
*
|
|
150
|
+
* A host listing a hosted app's tools for one seat built a whole store —
|
|
151
|
+
* graph, log, invariants — to read the same definitions the declaration
|
|
152
|
+
* already holds. This is the runtime's own derivation from the app alone:
|
|
153
|
+
* the same names, titles, schemas and hints `createToolRuntime` gives that
|
|
154
|
+
* principal, and the hash a stateless host compares to learn the surface
|
|
155
|
+
* moved.
|
|
156
|
+
*/
|
|
157
|
+
export declare function toolDefinitions<S extends AnySchema>(app: Pick<GraviewApp<S>, "schema" | "mutations" | "policy" | "modules">, principal?: Principal, options?: ToolDefinitionsOptions): {
|
|
158
|
+
readonly definitions: readonly ToolDefinition[];
|
|
159
|
+
readonly hash: string;
|
|
160
|
+
};
|
|
95
161
|
/**
|
|
96
162
|
* Tool definitions generate ONCE from the schema and are transport-agnostic.
|
|
97
163
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../../src/agent/tools.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../../src/agent/tools.ts"],"names":[],"mappings":"AAAA,OAAO,EAWL,KAAK,SAAS,EACd,KAAK,SAAS,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