@escro/mcp 0.1.4 → 0.1.6
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 +12 -4
- package/dist/env.cjs +109 -2
- package/dist/env.cjs.map +1 -1
- package/dist/index.cjs +870 -157
- package/dist/index.cjs.map +1 -1
- package/dist/server.cjs +870 -157
- package/dist/server.cjs.map +1 -1
- package/dist/tools.cjs +488 -124
- package/dist/tools.cjs.map +1 -1
- package/package.json +3 -3
- package/types/server.d.ts +1 -1
- package/types/tools.d.ts +8 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@escro/mcp",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.6",
|
|
4
4
|
"description": "Model Context Protocol server exposing the escro.ai API as MCP tools",
|
|
5
5
|
"mcpName": "ai.escro/escro",
|
|
6
6
|
"license": "MIT",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"zod": "^3.23.0"
|
|
60
60
|
},
|
|
61
61
|
"peerDependencies": {
|
|
62
|
-
"@escro/sdk": "^0.5.
|
|
62
|
+
"@escro/sdk": "^0.5.4"
|
|
63
63
|
},
|
|
64
64
|
"peerDependenciesMeta": {
|
|
65
65
|
"@escro/sdk": {
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
}
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|
|
70
|
-
"@escro/sdk": "0.5.
|
|
70
|
+
"@escro/sdk": "0.5.4",
|
|
71
71
|
"@escro/shared": "0.1.0",
|
|
72
72
|
"tsup": "^9.0.0",
|
|
73
73
|
"vitest": "^4.0.0"
|
package/types/server.d.ts
CHANGED
|
@@ -2,6 +2,6 @@ import type { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
|
2
2
|
import type { McpEnv } from "./env.js";
|
|
3
3
|
|
|
4
4
|
/** Keep in step with package.json / server.json. */
|
|
5
|
-
export declare const SERVER_VERSION: "0.1.
|
|
5
|
+
export declare const SERVER_VERSION: "0.1.6";
|
|
6
6
|
|
|
7
7
|
export function buildServer(env: McpEnv): McpServer;
|
package/types/tools.d.ts
CHANGED
|
@@ -21,7 +21,8 @@ export interface ToolResult {
|
|
|
21
21
|
|
|
22
22
|
export interface ReadHandlers {
|
|
23
23
|
list_escrows: (args: {
|
|
24
|
-
state?: EscrowState | undefined;
|
|
24
|
+
state?: EscrowState | EscrowState[] | undefined;
|
|
25
|
+
worker?: string | undefined;
|
|
25
26
|
assignedTo?: string | undefined;
|
|
26
27
|
limit?: number | undefined;
|
|
27
28
|
offset?: number | undefined;
|
|
@@ -45,7 +46,12 @@ export interface WriteHandlers {
|
|
|
45
46
|
assignedWorker: string;
|
|
46
47
|
specLink?: string | undefined;
|
|
47
48
|
}) => Promise<ToolResult>;
|
|
48
|
-
claim_task: (args: {
|
|
49
|
+
claim_task: (args: {
|
|
50
|
+
address: string;
|
|
51
|
+
accepted?:
|
|
52
|
+
| { maker: string; amount: string; taskSpecHash: string; deadline: number }
|
|
53
|
+
| undefined;
|
|
54
|
+
}) => Promise<ToolResult>;
|
|
49
55
|
submit_deliverable: (args: {
|
|
50
56
|
address: string;
|
|
51
57
|
contentHash: string;
|