@kynver-app/mcp-agent-os 0.3.62 → 0.3.63

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.
@@ -5,6 +5,9 @@
5
5
  * returns server-computed insights (bottlenecks, per-owner load, orphans) over
6
6
  * the operational graph. Read-only; the Kynver route enforces session +
7
7
  * workspace scope. Kept in its own module so server.ts stays slim.
8
+ *
9
+ * agent_os_memory_graph_expand (PR10) proxies scoped memory-entity neighborhood
10
+ * expansion through the authenticated app route — handles/previews only.
8
11
  */
9
12
  type ToolResult = {
10
13
  content: {
@@ -5,6 +5,9 @@
5
5
  * returns server-computed insights (bottlenecks, per-owner load, orphans) over
6
6
  * the operational graph. Read-only; the Kynver route enforces session +
7
7
  * workspace scope. Kept in its own module so server.ts stays slim.
8
+ *
9
+ * agent_os_memory_graph_expand (PR10) proxies scoped memory-entity neighborhood
10
+ * expansion through the authenticated app route — handles/previews only.
8
11
  */
9
12
  import { z } from "zod";
10
13
  import { get, post } from "../lib/kynver-client.js";
@@ -110,4 +113,33 @@ export function registerGraphTools({ register, resolveToolSlug, jsonResult }) {
110
113
  source: "agent",
111
114
  }));
112
115
  });
116
+ register("agent_os_memory_graph_expand", [
117
+ "Expand a scoped memory-entity graph neighborhood from an opaque start handle.",
118
+ "Returns compact previews and expansion handles only — never raw entity IDs or full memory bodies.",
119
+ "Requires graph view + expansion security gates (scoped opt-in). Read-only.",
120
+ ].join(" "), {
121
+ slug: z.string().optional().describe("AgentOS slug. Defaults to env/primary."),
122
+ startEntityHandle: z
123
+ .string()
124
+ .describe("Opaque graph entity handle (gent:…) issued by the server."),
125
+ grantToken: z
126
+ .string()
127
+ .describe("Signed expansion grant (kve:g:…) bound to this graph handle and envelope."),
128
+ purpose: z.string().describe("Why expansion is requested (audit-bound)."),
129
+ envelopeId: z.string().describe("Active context envelope id binding this expansion."),
130
+ asOf: z.string().optional().describe("Optional UTC ISO as-of instant for temporal filtering."),
131
+ maxDepth: z.number().int().min(1).max(2).optional(),
132
+ maxNodes: z.number().int().min(1).max(36).optional(),
133
+ }, async (args) => {
134
+ const slug = await resolveToolSlug(args.slug);
135
+ return jsonResult(await post(`/agent-os/${slug}/memory-graph/expand`, {
136
+ startEntityHandle: args.startEntityHandle,
137
+ grantToken: args.grantToken,
138
+ purpose: args.purpose,
139
+ envelopeId: args.envelopeId,
140
+ asOf: args.asOf,
141
+ maxDepth: args.maxDepth,
142
+ maxNodes: args.maxNodes,
143
+ }));
144
+ });
113
145
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@kynver-app/mcp-agent-os",
3
- "version": "0.3.62",
4
- "description": "Kynver Agentic OS MCP server \u2014 slug-keyed agent identity, goals, projects, sessions, and long-term memory",
3
+ "version": "0.3.63",
4
+ "description": "Kynver Agentic OS MCP server — slug-keyed agent identity, goals, projects, sessions, and long-term memory",
5
5
  "type": "module",
6
6
  "bin": {
7
7
  "kynver-mcp-agent-os": "dist/index.js"