mcp-computeflux

io.github.computeflux2026isgodv1.0.0更新於 Oct 4, 2026

OpenAI-compatible multi-model inference via ComputeFlux (Polkadot testnet, TEE-verifiable). stdio.

已驗證STDIO僅桌面Developer ToolsAI & ML

概覽

AI 產生的概覽

讓助理透過 ComputeFlux 閘道,以一般 MCP 工具的形式列出並呼叫 OpenAI 相容的對話模型。

功能
透過 stdio 提供兩個工具:一個列出所設定端點提供的模型 id,另一個使用模型 id 與 OpenAI 風格的 messages 執行非串流對話補全,可選參數為 max_tokens 與 temperature。對話工具會回傳模型、結束原因、延遲、token 用量以及助理文字。它不綁定特定後端,base URL 可指向任何 OpenAI 相容 API,預設使用 ComputeFlux。
適用情境
適合希望 Cursor、Claude Desktop 或其他 MCP 用戶端不必另外整合 SDK,就能查詢可用模型並對 OpenAI 相容端點執行對話補全的情境。它適合簡單的非串流模型呼叫,而非串流或工具呼叫工作流程。
執行需求
以本機 stdio 程序執行,需要 Node.js 18 或更新版本;伺服器本身不需要 npm install。需要 COMPUTEFLUX_API_KEY 環境變數,可選用 COMPUTEFLUX_BASE_URL 覆寫預設端點。需要能連線至該端點的網路。僅支援桌面端。
安裝前請注意
伺服器會將提示詞與訊息傳送至所設定的端點,因此對話內容會離開本機。它需要 COMPUTEFLUX_API_KEY 這項 Bearer 憑證,應透過環境變數提供,不要寫入設定檔。預設端點是測試網閘道,應據此看待其結果與可用性。依供應商不同,呼叫可能產生費用。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 mcp-computeflux,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

mcp-computeflux

Zero-dependency MCP (Model Context Protocol) server. Give any MCP host — Cursor, Claude Desktop, Windsurf, any MCP client — one OpenAI-compatible endpoint, and call models on ComputeFlux as plain tools: list what's available, then run a chat completion.

Your MCP agents hit flash-tier models over one OpenAI-compatible endpoint.

  • ~175 lines of Node 18+, no npm install to run the server (only the optional client/ e2e harness pulls SDK deps).
  • Backend-agnostic: point it at any OpenAI-compatible API — ComputeFlux is the default, not the only target.
  • ComputeFlux is an OpenAI-compatible, TEE-verifiable multi-model inference gateway deployed on the Polkadot testnet.

Tools

ToolWhat it does
computeflux_modelsLists the model ids served by the endpoint.
computeflux_chatRuns a non-streaming chat completion (model + OpenAI messages; optional max_tokens, temperature). Returns model, finish reason, latency, usage, and the assistant text.

Configuration (env)

VariableRequiredDefaultNotes
COMPUTEFLUX_API_KEYyes—Bearer key for the endpoint.
COMPUTEFLUX_BASE_URLnohttps://api.computeflux.ai/v1Any OpenAI-compatible base URL.
bash
export COMPUTEFLUX_API_KEY="your_c***_key"# export COMPUTEFLUX_BASE_URL="https://your-openai-compat-host/v1"   # optional

Install

Published on the official MCP Registry (.mcpb bundle, no npm step):

io.github.computeflux2026isgod/mcp-computeflux — listed on the official MCP Registry (search by this name).

Any MCP client / agent that supports registry install (mcp add, Cursor, Claude Desktop, Claude Code) can pull it by name. Direct git-clone quickstart:

bash
git clone https://github.com/computeflux2026isgod/mcp-computefluxexport COMPUTEFLUX_API_KEY="your_...key"node /path/to/mcp-computeflux/server.mjs   # stdio JSON-RPC

mcpServers snippet:

json
{  "mcpServers": {    "computeflux": {      "command": "node",      "args": ["/path/to/mcp-computeflux/server.mjs"],      "env": { "COMPUTEFLUX_API_KEY": "your_c***_key" }    }  }}

Local e2e (optional)

client/ contains a tiny harness using the official MCP SDK — the exact path Cursor / Claude Desktop use. It spawns the server over stdio, lists tools, and runs one chat completion with a unique-token round-trip fidelity check.

bash
cd client && npm install && npm run e2e   # expects COMPUTEFLUX_API_KEY in the .env it points to

Transport

Newline-delimited JSON-RPC 2.0 over stdio. Only protocol messages are written to stdout; logs go to stderr.

License

MIT

來源:README.md,提交 c4a0bcd

工具

0
工具後設資料尚未被收錄。

版本歷史

1
  1. v1.0.0最新Oct 4, 2026