@abraca/mcp 1.9.1 → 2.3.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/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as Y from "yjs";
2
- import { AbracadabraClient, AbracadabraProvider, ServerInfo, SpaceMeta } from "@abraca/dabra";
2
+ import { AbracadabraClient, AbracadabraProvider, DocumentMeta, ServerInfo } from "@abraca/dabra";
3
3
  import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
4
4
 
5
5
  //#region packages/mcp/src/server.d.ts
@@ -49,7 +49,11 @@ declare class AbracadabraMCPServer {
49
49
  get mentionAliases(): string[];
50
50
  get serverInfo(): ServerInfo | null;
51
51
  get rootDocId(): string | null;
52
- get spaces(): SpaceMeta[];
52
+ /**
53
+ * Spaces visible to the caller — direct children of the server root with
54
+ * `kind === "space"`. Populated by {@link connect}.
55
+ */
56
+ get spaces(): DocumentMeta[];
53
57
  get rootDocument(): Y.Doc | null;
54
58
  get rootYProvider(): AbracadabraProvider | null;
55
59
  get userId(): string | null;
@@ -94,7 +98,7 @@ declare class AbracadabraMCPServer {
94
98
  * Scans all awareness states for the given task ID and removes it.
95
99
  */
96
100
  clearAiTask(taskId: string): void;
97
- /** Handle incoming stateless chat messages and dispatch as channel notifications. */
101
+ /** Handle incoming `messages:new_message` broadcasts and dispatch as channel notifications. */
98
102
  private _handleStatelessChat;
99
103
  /**
100
104
  * Set the agent's status in root awareness with auto-clear after idle.
@@ -127,7 +131,8 @@ declare class AbracadabraMCPServer {
127
131
  target?: string;
128
132
  } | null): void;
129
133
  /**
130
- * Send a typing indicator to a chat channel.
134
+ * Send a typing indicator to a chat channel. Pass the channel doc id
135
+ * (or for legacy callers, a `group:<docId>` string — we strip the prefix).
131
136
  */
132
137
  sendTypingIndicator(channel: string): void;
133
138
  /** Graceful shutdown. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abraca/mcp",
3
- "version": "1.9.1",
3
+ "version": "2.3.0",
4
4
  "description": "MCP server for Abracadabra — AI agent collaboration on CRDT documents",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -28,13 +28,17 @@
28
28
  "dist"
29
29
  ],
30
30
  "dependencies": {
31
+ "@abraca/dabra": "^2.0.10",
31
32
  "@modelcontextprotocol/sdk": "^1.29.0",
32
- "@noble/hashes": "^1.8.0",
33
- "zod": "^4.3.6"
34
- },
35
- "peerDependencies": {
36
- "@abraca/dabra": ">=1.0.0",
33
+ "@noble/hashes": "^2.2.0",
34
+ "ajv": "^8.17.1",
35
+ "ajv-formats": "^3.0.1",
37
36
  "y-protocols": "^1.0.6",
38
- "yjs": "^13.6.8"
37
+ "yjs": "^13.6.8",
38
+ "zod": "^4.3.6",
39
+ "@abraca/convert": "2.3.0"
40
+ },
41
+ "scripts": {
42
+ "test": "node --no-warnings --conditions=source --experimental-transform-types --test 'tests/*.test.ts'"
39
43
  }
40
- }
44
+ }