Milele Prime
БесплатноНе проверенRead-only MCP server that lets a verified client connect their own AI to their trading account to read account data without order execution.
Описание
Read-only MCP server that lets a verified client connect their own AI to their trading account to read account data without order execution.
README
Read-only MCP server for Milele Prime. Lets a verified client connect their own AI (Claude / ChatGPT) to their own trading account and read account data — no order execution in phase 1.
Stack
TypeScript · Node 22 · Express · @modelcontextprotocol/sdk · Zod · Postgres
(Supabase) · opaque revocable tokens · Vitest · Railway.
The core idea: two interfaces are the swap point
Everything in src/ talks to two interfaces, never to a real API:
IdentityProvider(src/providers/interfaces/identity.ts) — Brokeret fills thisTradingDataProvider(src/providers/interfaces/trading.ts) — MT5 Manager API fills this
Today both run as mocks. When credentials land, set IDENTITY_PROVIDER=real
and TRADING_PROVIDER=real in .env and fill the two stub adapters in
src/providers/real/. Nothing else changes.
Run it
npm install
cp .env.example .env # defaults to mock providers, no infra needed
npm run dev # boots on :8080
npm test # runs the isolation suite (6 tests)
Security model (proven by the test suite)
Every tool call goes through AuthGate.resolve() which:
- validates the token (exists, not revoked),
- confirms via the CRM that the token's login is owned by that client,
- confirms the account is KYC-approved and live,
then runs the tool with the login the gate resolved — never a login from the
caller. A client cannot pass a login and read another account.
test/isolation.test.tsproves: own-account read works, cross-account is blocked, forged/revoked/garbage tokens are rejected, suspended accounts are blocked.
Build sequence (status)
- Server skeleton + config + factory (swap point)
- Two provider interfaces
- Mock implementations of both
- Token service (in-memory; Postgres schema in
db/migrations/001_init.sql) - Authorization gate + audit log + tool runner
- One tool end to end:
get_account_summary - Cross-account isolation test passing
- Remaining six read tools (positions, orders, history, quote, price_history, instrument_details)
- Swap token store + audit to Supabase Postgres
- Mount the real MCP SDK streamable-HTTP transport + OAuth
- CRM "Connect AI Assistant" portal flow (replaces
/dev/connect) —POST /connect/initiate|revoke,GET /connect/activity - Fill the two real adapters when credentials land
Adding a tool
- Add the method to
TradingDataProvider+ both mock and real impls. - Add a tool function in
src/tools/index.tsusingrunTool(...)(gate + audit are automatic). - Add a route (or MCP tool registration) in
src/server.ts. - Add an isolation assertion for it in
test/isolation.test.ts.
Tomorrow's go-live delta
Fill src/providers/real/identity.ts (Brokeret endpoints) and
src/providers/real/trading.ts (MT5 Manager API), set the two env flags to
real, point the base URLs at the sandboxes, and run npm test against live
data. The gate, tools, tokens, and audit are unchanged.
Установка Milele Prime
У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.
▸ github.com/milelecars/milele-prime-mcpFAQ
Milele Prime MCP бесплатный?
Да, Milele Prime MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для Milele Prime?
Нет, Milele Prime работает без API-ключей и переменных окружения.
Milele Prime — hosted или self-hosted?
Доступен hosted-вариант: Unyly запускает сервер в облаке, локальная установка не обязательна.
Как установить Milele Prime в Claude Desktop, Claude Code или Cursor?
Открой Milele Prime на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
Fetch
Web content fetching and conversion for efficient LLM usage.
AWS KB Retrieval
Retrieval from AWS Knowledge Base using Bedrock Agent Runtime.
автор: modelcontextprotocolSpring AI MCP Server
Provides auto-configuration for setting up an MCP server in Spring Boot applications.
llm-analysis-assistant
A very streamlined mcp client that supports calling and monitoring stdio/sse/streamableHttp, and can also view request responses through the /logs page. It also
автор: xuzexin-hzCompare Milele Prime with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории ai
