tiny-http-mcp-server 0.1.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.
Files changed (75) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +778 -0
  3. package/dist/auth.d.ts +69 -0
  4. package/dist/auth.js +261 -0
  5. package/dist/cli.d.ts +20 -0
  6. package/dist/cli.js +465 -0
  7. package/dist/composition.json +25 -0
  8. package/dist/express-middleware.d.ts +18 -0
  9. package/dist/express-middleware.js +91 -0
  10. package/dist/http-server.d.ts +48 -0
  11. package/dist/http-server.js +263 -0
  12. package/dist/http-transport.d.ts +164 -0
  13. package/dist/http-transport.js +897 -0
  14. package/dist/index.d.ts +13 -0
  15. package/dist/index.js +6 -0
  16. package/dist/load-oauth-verifier.d.ts +6 -0
  17. package/dist/load-oauth-verifier.js +43 -0
  18. package/dist/parse-body.d.ts +22 -0
  19. package/dist/parse-body.js +150 -0
  20. package/dist/session.d.ts +18 -0
  21. package/dist/session.js +37 -0
  22. package/dist/sse.d.ts +11 -0
  23. package/dist/sse.js +22 -0
  24. package/dist/test-support.d.ts +10 -0
  25. package/dist/test-support.js +398 -0
  26. package/dist/testing.d.ts +59 -0
  27. package/dist/testing.js +191 -0
  28. package/node_modules/auth-store/LICENSE +21 -0
  29. package/node_modules/auth-store/README.md +62 -0
  30. package/node_modules/auth-store/dist/create-secret-store.d.ts +2 -0
  31. package/node_modules/auth-store/dist/create-secret-store.js +44 -0
  32. package/node_modules/auth-store/dist/encrypted-file-store.d.ts +47 -0
  33. package/node_modules/auth-store/dist/encrypted-file-store.js +303 -0
  34. package/node_modules/auth-store/dist/error-codes.d.ts +1 -0
  35. package/node_modules/auth-store/dist/error-codes.js +5 -0
  36. package/node_modules/auth-store/dist/index.d.ts +7 -0
  37. package/node_modules/auth-store/dist/index.js +4 -0
  38. package/node_modules/auth-store/dist/keychain-store.d.ts +25 -0
  39. package/node_modules/auth-store/dist/keychain-store.js +154 -0
  40. package/node_modules/auth-store/dist/provider-store.d.ts +14 -0
  41. package/node_modules/auth-store/dist/provider-store.js +78 -0
  42. package/node_modules/auth-store/dist/types.d.ts +22 -0
  43. package/node_modules/auth-store/dist/types.js +1 -0
  44. package/node_modules/auth-store/package.json +27 -0
  45. package/node_modules/mcp-oauth/LICENSE +21 -0
  46. package/node_modules/mcp-oauth/README.md +70 -0
  47. package/node_modules/mcp-oauth/dist/client/auth-store-session-store.d.ts +14 -0
  48. package/node_modules/mcp-oauth/dist/client/auth-store-session-store.js +169 -0
  49. package/node_modules/mcp-oauth/dist/client/authorization-state.d.ts +8 -0
  50. package/node_modules/mcp-oauth/dist/client/authorization-state.js +47 -0
  51. package/node_modules/mcp-oauth/dist/client/default-oauth-client-provider.d.ts +3 -0
  52. package/node_modules/mcp-oauth/dist/client/default-oauth-client-provider.js +627 -0
  53. package/node_modules/mcp-oauth/dist/client/loopback-authorization.d.ts +20 -0
  54. package/node_modules/mcp-oauth/dist/client/loopback-authorization.js +207 -0
  55. package/node_modules/mcp-oauth/dist/client/pkce.d.ts +2 -0
  56. package/node_modules/mcp-oauth/dist/client/pkce.js +7 -0
  57. package/node_modules/mcp-oauth/dist/client/token-endpoint.d.ts +40 -0
  58. package/node_modules/mcp-oauth/dist/client/token-endpoint.js +164 -0
  59. package/node_modules/mcp-oauth/dist/client/types.d.ts +113 -0
  60. package/node_modules/mcp-oauth/dist/client/types.js +1 -0
  61. package/node_modules/mcp-oauth/dist/index.d.ts +10 -0
  62. package/node_modules/mcp-oauth/dist/index.js +7 -0
  63. package/node_modules/mcp-oauth/dist/resource-indicator.d.ts +1 -0
  64. package/node_modules/mcp-oauth/dist/resource-indicator.js +11 -0
  65. package/node_modules/mcp-oauth/dist/server/jwks-token-verifier.d.ts +32 -0
  66. package/node_modules/mcp-oauth/dist/server/jwks-token-verifier.js +388 -0
  67. package/node_modules/mcp-oauth/dist/types.compile-check.d.ts +1 -0
  68. package/node_modules/mcp-oauth/dist/types.compile-check.js +22 -0
  69. package/node_modules/mcp-oauth/package.json +33 -0
  70. package/node_modules/tiny-mcp-client/LICENSE +21 -0
  71. package/node_modules/tiny-mcp-client/README.md +104 -0
  72. package/node_modules/tiny-mcp-client/dist/index.d.ts +660 -0
  73. package/node_modules/tiny-mcp-client/dist/index.js +3870 -0
  74. package/node_modules/tiny-mcp-client/package.json +30 -0
  75. package/package.json +63 -0
@@ -0,0 +1,30 @@
1
+ {
2
+ "name": "tiny-mcp-client",
3
+ "version": "0.1.0",
4
+ "private": true,
5
+ "license": "MIT",
6
+ "type": "module",
7
+ "main": "./dist/index.js",
8
+ "types": "./dist/index.d.ts",
9
+ "files": [
10
+ "dist"
11
+ ],
12
+ "scripts": {
13
+ "build": "node scripts/build.mjs"
14
+ },
15
+ "repository": {
16
+ "type": "git",
17
+ "url": "git+https://github.com/poe-platform/poe-code.git",
18
+ "directory": "packages/tiny-mcp-client"
19
+ },
20
+ "devDependencies": {
21
+ "@modelcontextprotocol/sdk": "^1.26.0",
22
+ "mcp-oauth": "*",
23
+ "tiny-stdio-mcp-server": "*"
24
+ },
25
+ "poeCode": {
26
+ "inlinedDependencies": [
27
+ "mcp-oauth"
28
+ ]
29
+ }
30
+ }
package/package.json ADDED
@@ -0,0 +1,63 @@
1
+ {
2
+ "name": "tiny-http-mcp-server",
3
+ "version": "0.1.0",
4
+ "description": "Minimal MCP server over HTTP built on tiny-stdio-mcp-server",
5
+ "type": "module",
6
+ "main": "dist/index.js",
7
+ "types": "dist/index.d.ts",
8
+ "bin": {
9
+ "tiny-http-mcp-server": "dist/cli.js"
10
+ },
11
+ "exports": {
12
+ ".": {
13
+ "types": "./dist/index.d.ts",
14
+ "import": "./dist/index.js"
15
+ },
16
+ "./testing": {
17
+ "types": "./dist/testing.d.ts",
18
+ "import": "./dist/testing.js"
19
+ },
20
+ "./test-support": {
21
+ "types": "./dist/test-support.d.ts",
22
+ "import": "./dist/test-support.js"
23
+ }
24
+ },
25
+ "scripts": {
26
+ "build": "node ../../scripts/guard-package-dist.mjs && tsc",
27
+ "prepack": "node ../../scripts/set-bin-executable.mjs && node ../../scripts/manage-bundled-workspace-deps.mjs prepare . mcp-oauth auth-store tiny-mcp-client",
28
+ "postpack": "node ../../scripts/manage-bundled-workspace-deps.mjs cleanup . mcp-oauth auth-store tiny-mcp-client",
29
+ "prepublishOnly": "tsc"
30
+ },
31
+ "files": [
32
+ "LICENSE",
33
+ "dist"
34
+ ],
35
+ "engines": {
36
+ "node": ">=20"
37
+ },
38
+ "repository": {
39
+ "type": "git",
40
+ "url": "git+https://github.com/poe-platform/poe-code.git",
41
+ "directory": "packages/tiny-http-mcp-server"
42
+ },
43
+ "license": "MIT",
44
+ "dependencies": {
45
+ "express": "^5.1.0",
46
+ "jose": "^6.1.2",
47
+ "tiny-stdio-mcp-server": "^0.1.0"
48
+ },
49
+ "bundleDependencies": [
50
+ "mcp-oauth",
51
+ "auth-store",
52
+ "tiny-mcp-client"
53
+ ],
54
+ "optionalDependencies": {
55
+ "mcp-oauth": "*",
56
+ "auth-store": "*",
57
+ "tiny-mcp-client": "*"
58
+ },
59
+ "devDependencies": {
60
+ "@modelcontextprotocol/sdk": "^1.26.0",
61
+ "@types/express": "^5.0.6"
62
+ }
63
+ }