{"_id":"@troyaagent/mcp","_rev":"3-04887263af3cd0bd16413ed9c047de2f","name":"@troyaagent/mcp","dist-tags":{"latest":"0.1.1"},"versions":{"0.0.0-stage":{"name":"@troyaagent/mcp","version":"0.0.0-stage","_id":"@troyaagent/mcp@0.0.0-stage","stub":true,"maintainers":[{"name":"troyaagent","email":"faqihigeniorfkr@gmail.com"}],"dist":{"shasum":"16eeb9c972fa4dfff5b23e2801409ff3cf965827","tarball":"https://registry.npmjs.org/@troyaagent/mcp/-/mcp-0.0.0-stage.tgz","fileCount":2,"integrity":"sha512-wuYUrT5qYVplFXC61YUNAeYVu3sAc65xfKbt3F+9umDi11qzrD9uabAzC9G4bAFEEsU/8TuIcnZLV+/zaFZzyQ==","signatures":[{"sig":"MEUCICdNyVJ8BdThz8xSHsoTs+3hQvxeSZO7uWabSuy2tqyhAiEAiAbAgvfe74NoVNu4J5DS5LoKu5eLD0Xr0Sus6jq1eWM=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":337},"_npmUser":{"name":"troyaagent","email":"faqihigeniorfkr@gmail.com"},"description":"Temporary package placeholder for staged publishing","directories":{}},"0.1.0":{"name":"@troyaagent/mcp","version":"0.1.0","keywords":["mcp","model-context-protocol","robinhood-chain","hyperliquid","pons","trading","agent"],"license":"MIT","_id":"@troyaagent/mcp@0.1.0","maintainers":[{"name":"troyaagent","email":"faqihigeniorfkr@gmail.com"}],"bin":{"troya-mcp":"index.mjs"},"dist":{"shasum":"b639199cb2c042f8e09932f8f0db106964146874","tarball":"https://registry.npmjs.org/@troyaagent/mcp/-/mcp-0.1.0.tgz","fileCount":3,"integrity":"sha512-ZAc0VbpFr9/8QSqPjOiXaXIlFCkRidNL2UxtsAJY9MzQZAfxKaKB96slvyAeJv/bOZfE5FiiSP08brtdxS5Dnw==","signatures":[{"sig":"MEUCIFhSSJ3z1VtM/GxMdLWgGwnQpJaL22H2vfW6PdYMmBsYAiEAraNDJW3JJ3w/DVBec4A7s/Tle0kUPDR9HwoJ/FWBYoM=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEYCIQDdjgiYhYvANxXO30xfeTAhWxD9WD6KBqafH5WmfeVI7gIhAIt6Y8xsnikrFi+A/Z6qo+nnfqyLMv1oNzcUXZ5esKTt","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":8977},"type":"module","engines":{"node":">=18"},"gitHead":"bc3365ca3210309d2883952693ff6dcdba300fd9","_npmUser":{"name":"troyaagent","email":"faqihigeniorfkr@gmail.com"},"_npmVersion":"11.12.1","description":"MCP server for Troya Agent: Robinhood Chain and Hyperliquid market tools with hard limits. Read tools work without a key; execution is dry-run by default.","directories":{},"_nodeVersion":"24.15.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/mcp_0.1.0_1794686764900_0.6487732073686145","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"_id":"@troyaagent/mcp@0.1.1","bin":{"troya-mcp":"index.mjs"},"dist":{"shasum":"208dc7456d26bc3d3cb6e4cfbdaa705215b6f2d0","tarball":"https://registry.npmjs.org/@troyaagent/mcp/-/mcp-0.1.1.tgz","fileCount":3,"integrity":"sha512-h0jqB7dnwrsNNeLkw4wJidUuYMm/eu5+flr1Yc1DkINAy+6B4LFQEpBmgjh4FFVbM5ifV9yXqRGSISHKuqgr3A==","signatures":[{"sig":"MEYCIQDNzgYiogfRuKT4yXgihdofxdqhlOU+kZynBufkfEAMMQIhALhNzyi9PYbD9Yu1u74Uv3TTAXIChXiqnzwEe2rJb5F3","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIDiNgkj3wlLin7p3DaXPaPYGPBW5OUtTBbF7u/wetWz3AiADuTG0reubJWO4DbCVPst/TS8xegqljf1KQs8oSpn8kw=="}],"unpackedSize":9178},"name":"@troyaagent/mcp","type":"module","engines":{"node":">=18"},"gitHead":"45b032e54baf92f75de4c460a64cb32dd943481c","license":"MIT","version":"0.1.1","_npmUser":{"name":"troyaagent","email":"faqihigeniorfkr@gmail.com"},"keywords":["mcp","model-context-protocol","robinhood-chain","hyperliquid","pons","trading","agent"],"_npmVersion":"11.12.1","description":"MCP server for Troya Agent: Robinhood Chain and Hyperliquid market tools with hard limits. Read tools work without a key; execution is dry-run by default.","directories":{},"maintainers":[{"name":"troyaagent","email":"faqihigeniorfkr@gmail.com"}],"_nodeVersion":"24.15.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/mcp_0.1.1_1794687512814_0.8645861392797501"}}},"time":{"created":"2026-11-14T20:04:48.962Z","modified":"2026-11-14T20:18:33.032Z","0.0.0-stage":"2026-11-14T20:04:48.962Z","0.1.0":"2026-11-14T20:06:04.997Z","0.1.1":"2026-11-14T20:18:32.897Z"},"license":"MIT","keywords":["mcp","model-context-protocol","robinhood-chain","hyperliquid","pons","trading","agent"],"description":"MCP server for Troya Agent: Robinhood Chain and Hyperliquid market tools with hard limits. Read tools work without a key; execution is dry-run by default.","maintainers":[{"name":"troyaagent","email":"faqihigeniorfkr@gmail.com"}],"readme":"# @troyaagent/mcp\n\nMCP server for **Troya Agent**: market tools for Robinhood Chain (chain 4663) and Hyperliquid, with the same limits, Troya Gate checks and journal as the web app. The server holds no keys. It forwards every call to the Troya REST API.\n\n## Install\n\n```bash\nnpx -y @troyaagent/mcp\n```\n\n### Claude Desktop (`claude_desktop_config.json`), Cursor (`.cursor/mcp.json`)\n\n```json\n{\n  \"mcpServers\": {\n    \"troya\": {\n      \"command\": \"npx\",\n      \"args\": [\"-y\", \"@troyaagent/mcp\"],\n      \"env\": { \"TROYA_BASE_URL\": \"https://troya.codes\", \"TROYA_API_KEY\": \"troya_…\" }\n    }\n  }\n}\n```\n\n### Claude Code\n\n```bash\nclaude mcp add troya --env TROYA_BASE_URL=https://troya.codes --env TROYA_API_KEY=troya_… -- npx -y @troyaagent/mcp\n```\n\n## Environment\n\n| Variable | Meaning |\n|---|---|\n| `TROYA_BASE_URL` | Troya server URL. `TROYA_URL` is accepted as a fallback. Default `https://troya.codes`; a URL ending in `/agent/api` or `/api` also works. |\n| `TROYA_API_KEY` | API token from the app: **Agent → Wallet → API tokens**. Read tools work without it. |\n| `TROYA_LIVE` | Set to `1` to let `execute_intent` run live. Without it, every execution from this MCP is a dry run. |\n\n## Tools and tiers\n\n- **read** (cannot move funds): `analyze_ticker`, `get_movers`, `get_funding_extremes`, `get_robinhood_tokens` (alias `robinhood_tokens`), `robinhood_token`, `get_new_pairs`, `analyze_token_health`, `quote_swap`, `get_balances`, `get_policy`, `simulate_trade`, `get_social_info` (only when the server has `X_BEARER_TOKEN`; posts are wrapped as untrusted text).\n- **prepare** (needs a token): `prepare_order` `{kind: \"perp\" | \"swap\", …}`, `prepare_perp_order`, `prepare_swap`. These run Troya Gate and your limits, then return a one-time `confirmationId` that lasts 120 seconds and is bound to a hash of the parameters.\n- **execute** (needs a token with the execute scope): `execute_intent {confirmationId}`. It re-checks your limits and runs through your Agent Wallet. It stays a dry run unless **both** of these are true: you switched dry-run off for that token in the app, and `TROYA_LIVE=1` is set here.\n\n## REST (same tools)\n\n```\nGET  /api/tools                       list with tier + JSON schema (public)\nGET  /api/tools/:name?arg=value       read tools, public\nPOST /api/tools/:name   {args}        read: public · prepare: x-api-key · execute: x-api-key + Idempotency-Key\nGET  /agent/api/market/robinhood        Robinhood Chain token list\nGET  /agent/api/market/robinhood/token?address=0x…\nGET  /agent/api/market/hl             Hyperliquid perps\n```\n\n`/agent/api/*` mirrors `/api/*`. API tokens are stored hashed on the server and can be revoked at any time. Troya charges no fee during the beta.\n","readmeFilename":"README.md"}