@remit/mcp-server 0.0.0-stage → 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 (63) hide show
  1. package/dist/app-entry.d.ts +10 -0
  2. package/dist/app-entry.js +9 -0
  3. package/dist/app.d.ts +11 -0
  4. package/dist/app.js +261 -0
  5. package/dist/auth/authorization-server.d.ts +6835 -0
  6. package/dist/auth/authorization-server.js +592 -0
  7. package/dist/auth/database.d.ts +7 -0
  8. package/dist/auth/database.js +33 -0
  9. package/dist/auth/node-auth.d.ts +3 -0
  10. package/dist/auth/node-auth.js +17 -0
  11. package/dist/auth/remit-password.d.ts +8 -0
  12. package/dist/auth/remit-password.js +18 -0
  13. package/dist/auth/scopes.d.ts +6 -0
  14. package/dist/auth/scopes.js +13 -0
  15. package/dist/auth/token-verifier.d.ts +11 -0
  16. package/dist/auth/token-verifier.js +1 -0
  17. package/dist/cli/device-login.d.ts +16 -0
  18. package/dist/cli/device-login.js +111 -0
  19. package/dist/cli/mcp-login.d.ts +1 -0
  20. package/dist/cli/mcp-login.js +21 -0
  21. package/dist/config.d.ts +9 -0
  22. package/dist/config.js +41 -0
  23. package/dist/deps.d.ts +33 -0
  24. package/dist/deps.js +14 -0
  25. package/dist/filter-tools.d.ts +3 -0
  26. package/dist/filter-tools.js +155 -0
  27. package/dist/folder-tools.d.ts +3 -0
  28. package/dist/folder-tools.js +125 -0
  29. package/dist/main.d.ts +1 -0
  30. package/dist/main.js +53 -0
  31. package/dist/pages/assets.d.ts +8 -0
  32. package/dist/pages/assets.js +14 -0
  33. package/dist/pages/geist-cyrillic-ext-wght-normal.woff2 +0 -0
  34. package/dist/pages/geist-cyrillic-wght-normal.woff2 +0 -0
  35. package/dist/pages/geist-latin-ext-wght-normal.woff2 +0 -0
  36. package/dist/pages/geist-latin-wght-normal.woff2 +0 -0
  37. package/dist/pages/geist-vietnamese-wght-normal.woff2 +0 -0
  38. package/dist/pages/hanken-grotesk-cyrillic-ext-wght-normal.woff2 +0 -0
  39. package/dist/pages/hanken-grotesk-latin-ext-wght-normal.woff2 +0 -0
  40. package/dist/pages/hanken-grotesk-latin-wght-normal.woff2 +0 -0
  41. package/dist/pages/hanken-grotesk-vietnamese-wght-normal.woff2 +0 -0
  42. package/dist/pages/inter-cyrillic-ext-wght-normal.woff2 +0 -0
  43. package/dist/pages/inter-cyrillic-wght-normal.woff2 +0 -0
  44. package/dist/pages/inter-greek-ext-wght-normal.woff2 +0 -0
  45. package/dist/pages/inter-greek-wght-normal.woff2 +0 -0
  46. package/dist/pages/inter-latin-ext-wght-normal.woff2 +0 -0
  47. package/dist/pages/inter-latin-wght-normal.woff2 +0 -0
  48. package/dist/pages/inter-vietnamese-wght-normal.woff2 +0 -0
  49. package/dist/pages/load-assets.d.ts +2 -0
  50. package/dist/pages/load-assets.js +23 -0
  51. package/dist/pages/pages.css +1 -0
  52. package/dist/pages/render.d.ts +6 -0
  53. package/dist/pages/render.js +34 -0
  54. package/dist/pages/views.d.ts +11 -0
  55. package/dist/pages/views.js +20 -0
  56. package/dist/read-tools.d.ts +4 -0
  57. package/dist/read-tools.js +205 -0
  58. package/dist/server.d.ts +7 -0
  59. package/dist/server.js +27 -0
  60. package/dist/tool-result.d.ts +5 -0
  61. package/dist/tool-result.js +16 -0
  62. package/package.json +66 -5
  63. package/README.md +0 -3
package/package.json CHANGED
@@ -1,6 +1,67 @@
1
1
  {
2
- "name": "@remit/mcp-server",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
2
+ "name": "@remit/mcp-server",
3
+ "version": "0.1.0",
4
+ "description": "The remit MCP server: mail tools over streamable HTTP and the OAuth authorization server that guards them.",
5
+ "type": "module",
6
+ "exports": {
7
+ "./app": {
8
+ "types": "./dist/app-entry.d.ts",
9
+ "default": "./dist/app-entry.js"
10
+ },
11
+ "./pages.css": "./dist/pages/pages.css"
12
+ },
13
+ "scripts": {
14
+ "prepack": "node ../../npm-scripts/pack-dist.mjs prepack && vite build --config vite.pages.config.ts --emptyOutDir=false",
15
+ "postpack": "node ../../npm-scripts/pack-dist.mjs postpack",
16
+ "build": "vite build --config vite.pages.config.ts",
17
+ "test:typecheck": "tsgo --noEmit",
18
+ "test:run": "node $NODE_TEST_FLAGS --env-file=../../localhost-test-unit.env --import tsx --test 'src/**/*.test.ts'",
19
+ "test": "npm run test:typecheck && npm run test:run",
20
+ "start": "MCP_PAGE_ASSETS_DIR=dist/pages node --import tsx src/main.ts",
21
+ "mcp-login": "node --import tsx src/cli/mcp-login.ts"
22
+ },
23
+ "dependencies": {
24
+ "@remit/logger": "*",
25
+ "@better-auth/oauth-provider": "^1.7.12",
26
+ "@hono/node-server": "^2.1.3",
27
+ "@modelcontextprotocol/sdk": "1.32.1",
28
+ "@remit/auth-service": "*",
29
+ "@remit/data-ports": "*",
30
+ "@remit/domain-enums": "*",
31
+ "@remit/drizzle-service": "*",
32
+ "@remit/logger-lambda": "*",
33
+ "@remit/mailbox-service": "*",
34
+ "@remit/storage-service": "*",
35
+ "@remit/ui": "0.0.234",
36
+ "@types/better-sqlite3": "^7.6.13",
37
+ "better-auth": "^1.7.12",
38
+ "better-sqlite3": "^12.11.1",
39
+ "drizzle-orm": "^0.45.2",
40
+ "jose": "^6.2.3",
41
+ "react": "^19",
42
+ "react-dom": "^19",
43
+ "zod": "^4.6.7",
44
+ "@remit/backend": "*",
45
+ "@types/react": "^19",
46
+ "@types/react-dom": "^19"
47
+ },
48
+ "devDependencies": {
49
+ "@remit/imap-worker": "*",
50
+ "@tailwindcss/vite": "^4",
51
+ "tailwindcss": "^4",
52
+ "tsx": "*",
53
+ "vite": "^7.3.7"
54
+ },
55
+ "license": "MIT",
56
+ "publishConfig": {
57
+ "access": "public"
58
+ },
59
+ "repository": {
60
+ "type": "git",
61
+ "url": "git+https://github.com/remit-mail/reader.git",
62
+ "directory": "packages/mcp-server"
63
+ },
64
+ "files": [
65
+ "dist"
66
+ ]
67
+ }
package/README.md DELETED
@@ -1,3 +0,0 @@
1
- # Temporary Holding Version
2
-
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.