@tomradex/mcp 0.19.0 → 0.21.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 +8 -2
- package/package.json +6 -6
package/dist/index.d.ts
CHANGED
|
@@ -131,7 +131,13 @@ export declare class Mcp extends Service implements McpReader {
|
|
|
131
131
|
/** Captured from the injected context: HTTP callbacks run after Cordis's injection frame has closed. */
|
|
132
132
|
private tools;
|
|
133
133
|
private bindings;
|
|
134
|
+
/** Hear a tokenless hook; the first answer with anything in it goes back to the agent. */
|
|
134
135
|
private eventListeners;
|
|
136
|
+
/**
|
|
137
|
+
* Where each outside client's connection runs, from the headers its first request carried: an agent's MCP
|
|
138
|
+
* config can name the herdr pane it was started in, so its claim lands on that pane without hooks.
|
|
139
|
+
*/
|
|
140
|
+
private places;
|
|
135
141
|
private prompts;
|
|
136
142
|
private instructions;
|
|
137
143
|
constructor(ctx: Context, config: McpConfig);
|
|
@@ -150,8 +156,8 @@ export declare class Mcp extends Service implements McpReader {
|
|
|
150
156
|
eventUrlFor(token: string): string | null;
|
|
151
157
|
/** Where hooks with no token post — the ones a repository commits for every developer. */
|
|
152
158
|
get eventUrl(): string | null;
|
|
153
|
-
/** Hear tokenless hook events. Reversible: the listener goes with the plugin that registered it. */
|
|
154
|
-
onEvent(listener: (payload: unknown) =>
|
|
159
|
+
/** Hear tokenless hook events, and answer them (the first answer with anything in it is the agent's). Reversible: the listener goes with the plugin that registered it. */
|
|
160
|
+
onEvent(listener: (payload: unknown) => unknown): () => void;
|
|
155
161
|
/** Offer a prompt to every session opened from now on. Reversible with the plugin that registered it. */
|
|
156
162
|
prompt(prompt: McpPrompt): () => void;
|
|
157
163
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tomradex/mcp",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.21.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"author": "Haoyuan Tang",
|
|
6
6
|
"engines": {
|
|
@@ -27,11 +27,11 @@
|
|
|
27
27
|
"dist"
|
|
28
28
|
],
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@tomradex/contracts": "0.
|
|
31
|
-
"@tomradex/contributions": "0.
|
|
32
|
-
"@tomradex/domain": "0.2.
|
|
33
|
-
"@tomradex/ipc": "0.
|
|
34
|
-
"@tomradex/tools": "0.
|
|
30
|
+
"@tomradex/contracts": "0.21.0",
|
|
31
|
+
"@tomradex/contributions": "0.21.0",
|
|
32
|
+
"@tomradex/domain": "0.2.29",
|
|
33
|
+
"@tomradex/ipc": "0.21.0",
|
|
34
|
+
"@tomradex/tools": "0.21.0",
|
|
35
35
|
"cordis": "4.0.0-rc.8",
|
|
36
36
|
"zod": "^4.4.3"
|
|
37
37
|
},
|