@phake/mcp 0.0.1

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.
Files changed (85) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +187 -0
  3. package/dist/adapters/http-node/http/app.d.ts +5 -0
  4. package/dist/adapters/http-node/http/auth-app.d.ts +5 -0
  5. package/dist/adapters/http-node/http/middlewares/auth.d.ts +39 -0
  6. package/dist/adapters/http-node/http/middlewares/cors.d.ts +8 -0
  7. package/dist/adapters/http-node/http/routes/health.d.ts +5 -0
  8. package/dist/adapters/http-node/http/routes/mcp.d.ts +11 -0
  9. package/dist/adapters/http-node/middleware.security.d.ts +6 -0
  10. package/dist/adapters/http-node/routes.discovery.d.ts +6 -0
  11. package/dist/adapters/http-node/routes.oauth.d.ts +7 -0
  12. package/dist/adapters/http-worker/index.d.ts +48 -0
  13. package/dist/adapters/http-worker/mcp.handler.d.ts +24 -0
  14. package/dist/adapters/http-worker/routes.discovery.d.ts +7 -0
  15. package/dist/adapters/http-worker/routes.oauth.d.ts +8 -0
  16. package/dist/adapters/http-worker/security.d.ts +7 -0
  17. package/dist/index-1zyem3xr.js +14893 -0
  18. package/dist/index-4f4xvtt9.js +19552 -0
  19. package/dist/index-sbqy8kgq.js +3478 -0
  20. package/dist/index.d.ts +27 -0
  21. package/dist/index.js +1083 -0
  22. package/dist/mcp-server.d.ts +18 -0
  23. package/dist/runtime/node/capabilities.d.ts +2 -0
  24. package/dist/runtime/node/context.d.ts +29 -0
  25. package/dist/runtime/node/index.d.ts +5 -0
  26. package/dist/runtime/node/index.js +27 -0
  27. package/dist/runtime/node/mcp.d.ts +28 -0
  28. package/dist/runtime/node/storage/file.d.ts +44 -0
  29. package/dist/runtime/node/storage/sqlite.d.ts +213 -0
  30. package/dist/runtime/worker/index.d.ts +1 -0
  31. package/dist/runtime/worker/index.js +12 -0
  32. package/dist/shared/auth/index.d.ts +1 -0
  33. package/dist/shared/auth/strategy.d.ts +71 -0
  34. package/dist/shared/config/env.d.ts +52 -0
  35. package/dist/shared/config/index.d.ts +2 -0
  36. package/dist/shared/config/metadata.d.ts +5 -0
  37. package/dist/shared/crypto/aes-gcm.d.ts +37 -0
  38. package/dist/shared/crypto/index.d.ts +1 -0
  39. package/dist/shared/http/cors.d.ts +20 -0
  40. package/dist/shared/http/index.d.ts +2 -0
  41. package/dist/shared/http/response.d.ts +52 -0
  42. package/dist/shared/mcp/dispatcher.d.ts +81 -0
  43. package/dist/shared/mcp/index.d.ts +3 -0
  44. package/dist/shared/mcp/security.d.ts +23 -0
  45. package/dist/shared/mcp/server-internals.d.ts +79 -0
  46. package/dist/shared/oauth/cimd.d.ts +43 -0
  47. package/dist/shared/oauth/discovery-handlers.d.ts +14 -0
  48. package/dist/shared/oauth/discovery.d.ts +26 -0
  49. package/dist/shared/oauth/endpoints.d.ts +11 -0
  50. package/dist/shared/oauth/flow.d.ts +31 -0
  51. package/dist/shared/oauth/index.d.ts +9 -0
  52. package/dist/shared/oauth/input-parsers.d.ts +43 -0
  53. package/dist/shared/oauth/refresh.d.ts +61 -0
  54. package/dist/shared/oauth/ssrf.d.ts +31 -0
  55. package/dist/shared/oauth/types.d.ts +78 -0
  56. package/dist/shared/schemas/prompts.d.ts +1 -0
  57. package/dist/shared/services/http-client.d.ts +16 -0
  58. package/dist/shared/services/index.d.ts +1 -0
  59. package/dist/shared/storage/index.d.ts +4 -0
  60. package/dist/shared/storage/interface.d.ts +99 -0
  61. package/dist/shared/storage/kv.d.ts +68 -0
  62. package/dist/shared/storage/memory.d.ts +91 -0
  63. package/dist/shared/storage/singleton.d.ts +4 -0
  64. package/dist/shared/tools/echo.d.ts +16 -0
  65. package/dist/shared/tools/health.d.ts +13 -0
  66. package/dist/shared/tools/index.d.ts +4 -0
  67. package/dist/shared/tools/registry.d.ts +64 -0
  68. package/dist/shared/tools/types.d.ts +161 -0
  69. package/dist/shared/types/auth.d.ts +35 -0
  70. package/dist/shared/types/context.d.ts +79 -0
  71. package/dist/shared/types/index.d.ts +8 -0
  72. package/dist/shared/types/provider.d.ts +28 -0
  73. package/dist/shared/utils/base64.d.ts +12 -0
  74. package/dist/shared/utils/cancellation.d.ts +13 -0
  75. package/dist/shared/utils/elicitation.d.ts +247 -0
  76. package/dist/shared/utils/formatting.d.ts +106 -0
  77. package/dist/shared/utils/index.d.ts +11 -0
  78. package/dist/shared/utils/limits.d.ts +6 -0
  79. package/dist/shared/utils/logger.d.ts +20 -0
  80. package/dist/shared/utils/pagination.d.ts +11 -0
  81. package/dist/shared/utils/progress.d.ts +56 -0
  82. package/dist/shared/utils/roots.d.ts +62 -0
  83. package/dist/shared/utils/sampling.d.ts +155 -0
  84. package/dist/shared/utils/security.d.ts +6 -0
  85. package/package.json +55 -0
package/package.json ADDED
@@ -0,0 +1,55 @@
1
+ {
2
+ "name": "@phake/mcp",
3
+ "version": "0.0.1",
4
+ "repository": {
5
+ "type": "git",
6
+ "url": "https://github.com/fuongz/phake-mcp"
7
+ },
8
+ "type": "module",
9
+ "main": "./dist/index.js",
10
+ "types": "./dist/index.d.ts",
11
+ "files": [
12
+ "dist"
13
+ ],
14
+ "exports": {
15
+ ".": {
16
+ "types": "./dist/index.d.ts",
17
+ "default": "./dist/index.js"
18
+ },
19
+ "./runtime/node": {
20
+ "types": "./dist/runtime/node/index.d.ts",
21
+ "default": "./dist/runtime/node/index.js"
22
+ },
23
+ "./runtime/worker": {
24
+ "types": "./dist/runtime/worker/index.d.ts",
25
+ "default": "./dist/runtime/worker/index.js"
26
+ }
27
+ },
28
+ "scripts": {
29
+ "build": "bun build src/index.ts src/runtime/node/index.ts src/runtime/worker/index.ts --outdir dist --target bun --splitting && tsc -p tsconfig.build.json",
30
+ "typecheck": "tsc --noEmit",
31
+ "version:major": "bun scripts/version.ts major",
32
+ "version:minor": "bun scripts/version.ts minor",
33
+ "version:patch": "bun scripts/version.ts patch"
34
+ },
35
+ "dependencies": {
36
+ "@modelcontextprotocol/sdk": "^1.29.0",
37
+ "itty-router": "^5.0.23",
38
+ "jose": "^6.2.2",
39
+ "oauth4webapi": "^3.8.5",
40
+ "zod": "^4.3.6",
41
+ "zod-to-json-schema": "^3.25.2"
42
+ },
43
+ "optionalDependencies": {
44
+ "@hono/node-server": "^1.19.12",
45
+ "better-sqlite3": "^12.8.0",
46
+ "drizzle-orm": "^0.45.2",
47
+ "hono": "^4.12.9"
48
+ },
49
+ "devDependencies": {
50
+ "@cloudflare/workers-types": "^4.20260401.1",
51
+ "@types/better-sqlite3": "^7.6.13",
52
+ "bun-types": "^1.3.11",
53
+ "typescript": "^6.0.2"
54
+ }
55
+ }