mindgraph-mcp 0.24.0 → 0.26.0

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/dist/server.d.mts CHANGED
@@ -1,6 +1,5 @@
1
- import { Server } from '@modelcontextprotocol/sdk/server/index.js';
1
+ import { Tool, Server } from '@modelcontextprotocol/server';
2
2
  import { MindGraph } from 'mindgraph';
3
- import { Tool } from '@modelcontextprotocol/sdk/types.js';
4
3
 
5
4
  interface GeneratedToolDescriptor {
6
5
  name: string;
@@ -65,6 +64,18 @@ interface HostedIdentity {
65
64
  orgName?: string;
66
65
  }
67
66
 
67
+ interface RepositoryScope {
68
+ uids: string[];
69
+ /** Scope uid → the repository id it stands for, for grouping a brief. */
70
+ names: Record<string, string>;
71
+ /** Repo ids whose identity resolution ERRORED (as opposed to resolving to
72
+ * "absent", which just means no tasks can target them yet). A failure
73
+ * silently narrowing — or entirely removing — the scope was the amplifier
74
+ * in the 2026-07-29 auto-claim incident: the cloud identity 403 emptied the
75
+ * scope and resume ran against the global pool with no signal anywhere. */
76
+ failures: string[];
77
+ }
78
+
68
79
  interface MemoryRuntimeConfig {
69
80
  serverVersion?: string;
70
81
  baseUrl?: string;
@@ -72,6 +83,9 @@ interface MemoryRuntimeConfig {
72
83
  harness?: string;
73
84
  orgId?: string;
74
85
  agentId?: string;
86
+ /** Resolves the repositories the local workspace declares. Present only
87
+ * where the server runs beside a checkout (stdio), never when hosted. */
88
+ resolveWorkspaceScope?: (agentId: string) => Promise<RepositoryScope>;
75
89
  }
76
90
 
77
91
  /** Everything the request handlers close over. */
@@ -130,7 +144,9 @@ declare function createMindGraphServer(opts: MindGraphServerOptions): Server;
130
144
  /**
131
145
  * Serve one Streamable HTTP request statelessly (D6). The caller has already
132
146
  * verified the bearer and resolved `opts`; this helper owns only the JSON-RPC
133
- * surface: non-POST → 405, unparsable → 400, batches → 400, else the SDK.
147
+ * surface: non-POST → 405, unparsable → 400, batches → 400, else the SDK —
148
+ * the 2026-07-28 path for requests that carry the per-request envelope, the
149
+ * 2025 stateless path for every other client.
134
150
  */
135
151
  declare function handleHostedRequest(request: Request, opts: MindGraphServerOptions): Promise<Response>;
136
152
 
package/dist/server.d.ts CHANGED
@@ -1,6 +1,5 @@
1
- import { Server } from '@modelcontextprotocol/sdk/server/index.js';
1
+ import { Tool, Server } from '@modelcontextprotocol/server';
2
2
  import { MindGraph } from 'mindgraph';
3
- import { Tool } from '@modelcontextprotocol/sdk/types.js';
4
3
 
5
4
  interface GeneratedToolDescriptor {
6
5
  name: string;
@@ -65,6 +64,18 @@ interface HostedIdentity {
65
64
  orgName?: string;
66
65
  }
67
66
 
67
+ interface RepositoryScope {
68
+ uids: string[];
69
+ /** Scope uid → the repository id it stands for, for grouping a brief. */
70
+ names: Record<string, string>;
71
+ /** Repo ids whose identity resolution ERRORED (as opposed to resolving to
72
+ * "absent", which just means no tasks can target them yet). A failure
73
+ * silently narrowing — or entirely removing — the scope was the amplifier
74
+ * in the 2026-07-29 auto-claim incident: the cloud identity 403 emptied the
75
+ * scope and resume ran against the global pool with no signal anywhere. */
76
+ failures: string[];
77
+ }
78
+
68
79
  interface MemoryRuntimeConfig {
69
80
  serverVersion?: string;
70
81
  baseUrl?: string;
@@ -72,6 +83,9 @@ interface MemoryRuntimeConfig {
72
83
  harness?: string;
73
84
  orgId?: string;
74
85
  agentId?: string;
86
+ /** Resolves the repositories the local workspace declares. Present only
87
+ * where the server runs beside a checkout (stdio), never when hosted. */
88
+ resolveWorkspaceScope?: (agentId: string) => Promise<RepositoryScope>;
75
89
  }
76
90
 
77
91
  /** Everything the request handlers close over. */
@@ -130,7 +144,9 @@ declare function createMindGraphServer(opts: MindGraphServerOptions): Server;
130
144
  /**
131
145
  * Serve one Streamable HTTP request statelessly (D6). The caller has already
132
146
  * verified the bearer and resolved `opts`; this helper owns only the JSON-RPC
133
- * surface: non-POST → 405, unparsable → 400, batches → 400, else the SDK.
147
+ * surface: non-POST → 405, unparsable → 400, batches → 400, else the SDK —
148
+ * the 2026-07-28 path for requests that carry the per-request envelope, the
149
+ * 2025 stateless path for every other client.
134
150
  */
135
151
  declare function handleHostedRequest(request: Request, opts: MindGraphServerOptions): Promise<Response>;
136
152