{"_id":"@aixccelerate/myaix-mcp","name":"@aixccelerate/myaix-mcp","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@aixccelerate/myaix-mcp","version":"0.1.0","description":"Local stdio MCP shim for myaix.link — handles auth and large file uploads for Cursor, VS Code, Codex, and any stdio-only MCP host.","license":"MIT","homepage":"https://myaix.link","bin":{"myaix-mcp":"dist/index.js"},"type":"module","main":"./dist/index.js","engines":{"node":">=20"},"scripts":{"build":"tsc -p tsconfig.json","dev":"tsc -p tsconfig.json --watch","prepublishOnly":"pnpm run build"},"dependencies":{"@modelcontextprotocol/sdk":"^1.29.0"},"devDependencies":{"@types/node":"^20","typescript":"^5"},"gitHead":"179e68e960a356b56fa42a425a303b2520d9ed74","_id":"@aixccelerate/myaix-mcp@0.1.0","_nodeVersion":"25.8.1","_npmVersion":"11.11.0","dist":{"integrity":"sha512-Zkfr0WsV8w2ebmuIZb3s9Otxp4vmdcb4UgECN9K99m5Lnik3XQHFqimchWn3i9IxGH/K1U0XAJOZOJhmc9Q5jA==","shasum":"3d9dddaeef37e70543bd6a0db844ac4623246c13","tarball":"https://registry.npmjs.org/@aixccelerate/myaix-mcp/-/myaix-mcp-0.1.0.tgz","fileCount":3,"unpackedSize":10550,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDTvutcP7GIxuEi8S6Ix6cYjiSxSGuvWYXYtqw6oBP2sgIhAKQjlD1lOvzxkc/GtO05wuGZnGq1xgIjRn4IDYZQbB9x"}]},"_npmUser":{"name":"rvbhavsar","email":"rahul@aixccelerate.com"},"directories":{},"maintainers":[{"name":"rvbhavsar","email":"rahul@aixccelerate.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/myaix-mcp_0.1.0_1779231574145_0.3103298540530137"},"_hasShrinkwrap":false}},"time":{"created":"2026-05-19T22:59:33.689Z","0.1.0":"2026-05-19T22:59:34.309Z","modified":"2026-05-19T22:59:34.473Z"},"maintainers":[{"name":"rvbhavsar","email":"rahul@aixccelerate.com"}],"description":"Local stdio MCP shim for myaix.link — handles auth and large file uploads for Cursor, VS Code, Codex, and any stdio-only MCP host.","homepage":"https://myaix.link","license":"MIT","readme":"# @aixccelerate/myaix-mcp\n\nLocal stdio MCP shim for [myaix.link](https://myaix.link). Use it with any\nMCP host that supports stdio servers (Cursor, VS Code Copilot in agent mode,\nCodex CLI, Claude Desktop, agent-sam, etc.).\n\nIt does two things the remote-only HTTP MCP server can't:\n\n1. **Authenticates with a personal API key** — no browser-OAuth dance, no\n   token refresh chore, works headlessly in CI and agent loops.\n2. **Uploads local files in one tool call.** When the model calls\n   `upload_page({ file_path: \"...\" })`, the shim reads the file, runs the\n   server's `prepare_upload` + signed PUT to Supabase Storage, then re-issues\n   `upload_page` with `upload_token`. The model sees a single tool call.\n\nAll other tools (`list_pages`, `get_page`, `get_analytics`,\n`add_allowed_emails`, …) are forwarded verbatim.\n\n## Install\n\n```jsonc\n// ~/.cursor/mcp.json, .vscode/mcp.json, claude_desktop_config.json\n{\n  \"mcpServers\": {\n    \"myaix-link\": {\n      \"command\": \"npx\",\n      \"args\": [\"-y\", \"@aixccelerate/myaix-mcp@latest\"],\n      \"env\": { \"MYAIX_API_KEY\": \"mxk_live_…\" }\n    }\n  }\n}\n```\n\nVS Code uses the equivalent `servers` block in `.vscode/mcp.json` with\n`\"type\": \"stdio\"`.\n\n## Configuration\n\n| Env var | Default | Notes |\n| --- | --- | --- |\n| `MYAIX_API_KEY` | required | Generate at https://myaix.link/dashboard/mcp |\n| `MYAIX_URL` | `https://myaix.link` | Override for self-hosted / preview deploys |\n\n## Tool semantics\n\nWhen the model passes `file_path` (or `path` / `local_path`) without any of\n`upload_token`, `source_url`, `content_text`, `content_base64`, the shim:\n\n1. Stats the file (must exist, must be non-empty, must be HTML/Markdown/PDF\n   by extension or by the explicit `file_type` arg).\n2. Calls `POST {MYAIX_URL}/api/mcp/upload/prepare` with the filename,\n   file_type, and size_bytes.\n3. PUTs bytes directly to the signed Supabase Storage URL returned by\n   prepare.\n4. Forwards the original `upload_page` call to the remote with\n   `upload_token` set and `file_path` stripped.\n\nBytes never traverse the myaix.link Vercel function — they go straight to\nSupabase Storage. This is what makes the path scale.\n\n## Building locally\n\n```bash\npnpm --filter @aixccelerate/myaix-mcp build\nnode packages/myaix-mcp/dist/index.js < /dev/null   # smoke test\n```\n\n## License\n\nMIT.\n","readmeFilename":"README.md","_rev":"1-2f38fb52f1a4a0cf51ffd952fa0f9061"}