@phake/mcp 0.0.3 → 0.0.4
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-ctd3bknx.js +3150 -0
- package/dist/index.js +5 -5
- package/dist/runtime/worker/index.js +1 -1
- package/package.json +2 -2
- package/dist/index-1zv84kf7.js +0 -22961
package/dist/index.js
CHANGED
|
@@ -43,7 +43,6 @@ import {
|
|
|
43
43
|
encrypt,
|
|
44
44
|
ensureFreshToken,
|
|
45
45
|
executeSharedTool,
|
|
46
|
-
exports_external,
|
|
47
46
|
fetchClientMetadata,
|
|
48
47
|
generateKey,
|
|
49
48
|
generateOpaqueToken,
|
|
@@ -83,7 +82,7 @@ import {
|
|
|
83
82
|
withCancellation,
|
|
84
83
|
withCors,
|
|
85
84
|
workerDiscoveryStrategy
|
|
86
|
-
} from "./index-
|
|
85
|
+
} from "./index-ctd3bknx.js";
|
|
87
86
|
// src/shared/config/env.ts
|
|
88
87
|
function parseBoolean(value) {
|
|
89
88
|
return String(value || "false").toLowerCase() === "true";
|
|
@@ -445,12 +444,13 @@ function createHttpClient(options = {}) {
|
|
|
445
444
|
};
|
|
446
445
|
}
|
|
447
446
|
// src/shared/utils/elicitation.ts
|
|
447
|
+
import { z } from "zod";
|
|
448
448
|
function getLowLevelServer2(server) {
|
|
449
449
|
return server.server;
|
|
450
450
|
}
|
|
451
|
-
var ElicitResultSchema =
|
|
452
|
-
action:
|
|
453
|
-
content:
|
|
451
|
+
var ElicitResultSchema = z.object({
|
|
452
|
+
action: z.enum(["accept", "decline", "cancel"]),
|
|
453
|
+
content: z.record(z.string(), z.union([z.string(), z.number(), z.boolean(), z.array(z.string())])).optional()
|
|
454
454
|
});
|
|
455
455
|
function validateElicitationSchema(schema) {
|
|
456
456
|
if (schema.type !== "object") {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@phake/mcp",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.4",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/fuongz/phake-mcp"
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
28
|
"scripts": {
|
|
29
|
-
"build": "bun build src/index.ts src/runtime/worker/index.ts --outdir dist --target browser --splitting && bun build src/runtime/node/index.ts --outdir dist/runtime/node --target bun && tsc -p tsconfig.build.json",
|
|
29
|
+
"build": "bun build src/index.ts src/runtime/worker/index.ts --outdir dist --target browser --splitting --packages external && bun build src/runtime/node/index.ts --outdir dist/runtime/node --target bun && tsc -p tsconfig.build.json",
|
|
30
30
|
"typecheck": "tsc --noEmit",
|
|
31
31
|
"version:major": "bun scripts/version.ts major",
|
|
32
32
|
"version:minor": "bun scripts/version.ts minor",
|