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