Token导航 LogoToken导航TokenDH.com
Prism Relay logo
运维云端stdio官方级别未说明来源级核验

Prism Relay

MCP Server

Prism-Relay是一个MCP服务器,允许AI编码助手并行查询和比较多个LLM提供商,适用于需要多模型对比分析的开发场景。

工具数

3

提示词数

0

GitHub Stars

0

资源数

0
JavaScriptClaude云端部署Claude

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

作者 / 组织

NeuralDrifter

提供方

NeuralDrifter

最后核验

2026/5/17 20:21

快速接入

先看主来源和安装命令,再打开仓库或文档;下面只保留这个条目的关键接入事实。

命令预览

pip install Pillow

详细介绍

Prism中继MCP服务器

将单个查询折射为逻辑光谱。

棱镜接力是一个 模型上下文协议 (MCP)服务器,允许AI编码助手并行查询和比较多个LLM提供者。从Anthropic Claude、Google Gemini、DeepSeek或当地LM Studio模型那里获得第二意见——所有这些都可以在你的编辑器中获得。

特性

  • 多提供商查询 --向2-3位法学硕士提出相同的问题,并并排比较答案
  • 单一提供者查询 --从任何受支持的提供商处获取第二意见或专业分析
  • 实时状态检查 --查看已配置和可访问的提供程序
  • 设置GUI/TUI -API键、模型和首选项的可视化配置工具
  • 自动同步 --设置会自动传播到Claude Code的MCP配置

支持的提供商

提供者类型需要授权
安thropic克劳德云APIAPI密钥
谷歌双子座CLI工具谷歌帐户(通过 gemini CLI)
深度求索云APIAPI密钥
LM工作室本地(兼容OpenAI)

MCP工具

工具说明
prism_query查询单个LLM提供程序
prism_compare并行查询2-3个提供者,获得并排结果
prism_providers列出所有提供商及其实时状态

______________________________________________________________________

安装

先决条件

  • Node.js 18+ (node --version)
  • python 3.8+ (python3 --version)--用于设置工具
  • 枕头 (可选)--用于GUI启动画面(pip install Pillow)

快速安装(Linux/macOS)

# Clone or copy the project
git clone  ~/mcp-servers/prism-relay
cd ~/mcp-servers/prism-relay

# Run the install script
chmod +x install.sh
./install.sh

快速安装(Windows)

# Clone or copy the project
git clone  %USERPROFILE%\mcp-servers\prism-relay
cd %USERPROFILE%\mcp-servers\prism-relay

# Run the install script (PowerShell as Administrator)
.\install.ps1

手动安装

# 1. Install Node.js dependencies
cd ~/mcp-servers/prism-relay
npm install

# 2. Make the settings tool executable
chmod +x prismmcp.py

# 3. Add to PATH (Linux/macOS)
ln -sf "$(pwd)/prismmcp.py" ~/.local/bin/prismmcp

# 4. (Optional) Install Pillow for GUI splash screen
pip install Pillow

______________________________________________________________________

配置

设置工具

Prism Relay包括一个可视化设置管理器:

prismmcp          # Auto-detect: GUI if display available, otherwise TUI
prismmcp --gui    # Force graphical interface
prismmcp --tui    # Force terminal interface

提供商设置

人物克劳德:

  1. 在获取API密钥https://console.anthropic.com/settings/keys
  2. 在设置工具中的“提供商”>“人类API密钥”下输入
  3. 选择您喜欢的型号(作品4.6、十四行诗4.5或俳句4.5)

谷歌双子座:

  1. 安装Gemini CLI:https://github.com/google-gemini/gemini-cli
  2. 身份验证: gemini auth login
  3. 在设置工具中选择您喜欢的型号

DeepSeek:

  1. 在获取API密钥https://platform.deepseek.com/api_keys
  2. 在设置工具中的提供商>DeepSeek API密钥下输入
  3. 选择您喜欢的型号(V3.2聊天或推理机)

LM工作室:

  1. 安装LM Studio:https://lmstudio.ai
  2. 加载模型并启动本地服务器(默认值: http://localhost:1234/v1)
  3. 模型是自动检测的,不需要额外的配置

CLI实用程序

prismmcp --status    # Check provider status
prismmcp --env       # Print env vars for shell export
prismmcp --sync      # Sync settings to Claude Code config

______________________________________________________________________

添加到AI编码助手

克劳德代码

选项A:自动(推荐)

# Configure providers in the settings tool, then sync
prismmcp --gui       # Set API keys and models
prismmcp --sync      # Write config to ~/.claude.json

选项B:手动

增添 ~/.claude.json 在...之下 mcpServers:

{
  "mcpServers": {
    "prism-relay": {
      "type": "stdio",
      "command": "node",
      "args": ["/path/to/prism-relay/index.js"],
      "env": {
        "ANTHROPIC_API_KEY": "sk-ant-...",
        "ANTHROPIC_MODEL": "claude-sonnet-4-5-20250929",
        "DEEPSEEK_API_KEY": "sk-...",
        "DEEPSEEK_MODEL": "deepseek-chat",
        "DEEPSEEK_BASE_URL": "https://api.deepseek.com/v1",
        "GEMINI_MODEL": "gemini-3-pro-preview",
        "LMSTUDIO_BASE_URL": "http://localhost:1234/v1",
        "LLM_TIMEOUT_MS": "120000"
      }
    }
  }
}

编辑配置后重新启动Claude Code。

Gemini CLI

增添 ~/.gemini/settings.json:

{
  "mcpServers": {
    "prism-relay": {
      "command": "node",
      "args": ["/path/to/prism-relay/index.js"],
      "env": {
        "ANTHROPIC_API_KEY": "sk-ant-...",
        "DEEPSEEK_API_KEY": "sk-...",
        "DEEPSEEK_MODEL": "deepseek-chat",
        "LMSTUDIO_BASE_URL": "http://localhost:1234/v1",
        "LLM_TIMEOUT_MS": "120000"
      }
    }
  }
}

注: 在Gemini CLI中运行时,Gemini提供程序通过CLI查询自身——您可能希望省略从Gemini中查询Gemini以避免递归。使用 prism_query 随着 anthropic, deepseek,或 lmstudio 相反。

OpenAI Codex命令行界面

增添 ~/.codex/config.json:

{
  "mcpServers": {
    "prism-relay": {
      "command": "node",
      "args": ["/path/to/prism-relay/index.js"],
      "env": {
        "ANTHROPIC_API_KEY": "sk-ant-...",
        "DEEPSEEK_API_KEY": "sk-...",
        "GEMINI_MODEL": "gemini-3-pro-preview",
        "LMSTUDIO_BASE_URL": "http://localhost:1234/v1",
        "LLM_TIMEOUT_MS": "120000"
      }
    }
  }
}

Windows路径: 替换 /path/to/prism-relay/index.js 使用完整的Windows路径,例如。 C:\\Users\\YourName\\mcp-servers\\prism-relay\\index.js.

______________________________________________________________________

环境变量

所有设置都可以用环境变量覆盖:

变量描述默认值
ANTHROPIC_API_KEY无烟煤API键_(无)_
ANTHROPIC_MODEL默认人类模型claude-sonnet-4-5-20250929
DEEPSEEK_API_KEYDeepSeek API密钥_(无)_
DEEPSEEK_MODEL默认DeepSeek模型deepseek-chat
DEEPSEEK_BASE_URLDeepSeek API端点https://api.deepseek.com/v1
GEMINI_MODEL默认Gemini模型gemini-3-pro-preview
LMSTUDIO_BASE_URLLM Studio服务器URLhttp://localhost:1234/v1
LMSTUDIO_MODELLM Studio模型覆盖_(自动检测)_
LLM_TIMEOUT_MS请求超时(毫秒)120000

设置优先级: 环境变量>设置文件>内置默认值

设置文件位置: ~/.config/prism-relay/settings.json

______________________________________________________________________

添加到系统路径

Linux/macOS

安装脚本会自动处理此问题。要手动执行此操作,请执行以下操作:

# Option 1: Symlink (recommended)
ln -sf /path/to/prism-relay/prismmcp.py ~/.local/bin/prismmcp

# Option 2: Add project directory to PATH
echo 'export PATH="$PATH:/path/to/prism-relay"' >> ~/.bashrc
source ~/.bashrc

确保 ~/.local/bin 在您的路径中:

# Add to ~/.bashrc or ~/.zshrc if not already present
export PATH="$HOME/.local/bin:$PATH"

视窗

# Option 1: Add to user PATH (PowerShell)
$prismPath = "$env:USERPROFILE\mcp-servers\prism-relay"
[Environment]::SetEnvironmentVariable("PATH",
    "$([Environment]::GetEnvironmentVariable('PATH', 'User'));$prismPath",
    "User")

# Option 2: Create a batch wrapper in a PATH directory
# The install script creates prismmcp.cmd automatically

______________________________________________________________________

故障排除

“找不到模块@modelcontextprotocol/sdk”

cd /path/to/prism-relay && npm install

“未找到gemini CLI”

# Install: https://github.com/google-gemini/gemini-cli
npm install -g @anthropic-ai/gemini-cli
gemini auth login

提供商在状态中显示“不可用”

prismmcp --status    # Check what's wrong
prismmcp --gui       # Fix settings
prismmcp --sync      # Push to Claude Code

设置在Claude代码中不生效

prismmcp --sync      # Re-sync settings
# Then restart Claude Code to reload MCP servers

GUI启动画面未显示

pip install Pillow   # Required for image display

______________________________________________________________________

项目结构

prism-relay/
  index.js        — MCP server (Node.js)
  prismmcp.py     — Settings GUI/TUI (Python)
  package.json    — Node.js dependencies
  install.sh      — Linux/macOS installer
  install.ps1     — Windows installer

许可证

麻省理工学院

目录标签

目录标签

JavaScriptClaude云端部署多模型查询本地部署AI编码助手并行处理LLM比较

支持客户端

Claude

接入字段

传输方式(transport,传输协议)

stdio

鉴权方式(authType,认证方式)

session

工具数量(toolCount,工具数)

3

资源数量(resourceCount,资源数)

0

提示词数量(promptCount,提示词数)

0

权限和风险

stdiosession部署方式未说明

接入前请确认传输方式、认证方式和部署位置,并根据实际工具能力限制访问范围。

安装前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

来源信息

继续浏览同类 MCP