prismrelay-mcp
by arnoldkevin
PrismRelay 让纯文本 agent(含 DeepSeek 工作流)经本地 stdio MCP server 检视真实图像像素,agent 保持主力
PrismRelay gives text-only Agents, including DeepSeek-based workflows, a way to inspect real image pixels through a local stdio MCP server. The Agent remains the primary…
安装
dsh plugin --profile web add github:arnoldkevin/prismrelay-mcpGitHub 源码安装:首次需按提示配置 allowBuilds 构建授权后重试
安装与环境配置指引、插件开发教程见 DSH 中文社区文档 ↗
安装即在你的机器上以你的权限运行第三方代码——它可读写文件、使用凭据、访问网络,DSH 的工具审批不会为插件代码加沙箱。「检测到 manifest」仅代表发现 dsh.bundle / dsh.plugin 清单,不构成兼容性或安全审查;安装前请审阅源码,不熟悉的插件先在不含密钥的环境试用。
README
目录
Vision First — v0.3.0
PrismRelay gives text-only Agents, including DeepSeek-based workflows, a way to inspect real image pixels through a local stdio MCP server. The Agent remains the primary reasoner; PrismRelay sends the requested images to an external vision provider and returns a visual answer.
Agnes AI is the current backend. PrismRelay is an independent community project and is not affiliated with, endorsed by, or sponsored by Agnes AI.
Release status
| Capability | Status | Suitable for |
|---|---|---|
| Image understanding | Supported, primary workflow | Scene and object questions, screenshots, documents, charts, diagrams, visible text, image comparison |
| Image generation | Experimental | General drafts where provider variation is acceptable |
| Image editing and composition | Experimental | Exploratory edits with manual review |
| Strong Style Skill compliance | Not a claimed capability | Do not promise faithful art direction or native multimodal quality |
PrismRelay does not change the text model into a native multimodal model. It gives the Agent a callable external “eye.” Visual accuracy, latency, and availability still depend on Agnes AI and on the Agent host correctly invoking MCP tools.
Tools
prismrelay_understand_image— inspect, compare, answer questions, read visible text, and interpret screenshots, documents, charts, diagrams, products, or scenes.prismrelay_generate_image— experimental generation with optional references, final dimensions, candidates, and review.prismrelay_edit_image— experimental editing and composition with input roles, preservation hints, and review.
Legacy agnes_* tools remain for compatibility but are not recommended for new workflows.
Requirements
- Node.js 18 or newer
- Your own Agnes Platform account and API key
- An Agent host that supports local stdio MCP tools
- Outbound HTTPS access to
https://apihub.agnes-ai.com/v1or your configured Agnes route
PrismRelay is BYOK: every user supplies their own key and accesses Agnes directly. Do not share accounts, keys, credits, or offer PrismRelay as a resale/proxy service.
Install from GitHub
git clone https://github.com/Arnoldkevin/prismrelay-mcp.git
cd prismrelay-mcp
npm install
export AGNES_API_KEY="your_api_key_here"
Persist AGNES_API_KEY using your operating system or shell's secret/environment mechanism. Never paste it into a chat, tracked file, screenshot, or support log.
Codex
node dist/prismrelay-mcp.mjs setup codex --dry-run
node dist/prismrelay-mcp.mjs setup codex --force
node dist/prismrelay-mcp.mjs doctor
This installs the Skill at ~/.agents/skills/prismrelay-images and registers the MCP server as prismrelay.
Claude Code
node dist/prismrelay-mcp.mjs setup claude-code --dry-run
node dist/prismrelay-mcp.mjs setup claude-code --force
node dist/prismrelay-mcp.mjs doctor
claude mcp get prismrelay
This registers a user-scoped stdio server and installs the Skill at ~/.claude/skills/prismrelay-images. Start a new Claude Code session from a shell that exports AGNES_API_KEY, then use /mcp to confirm that the server is connected.
Other Agent hosts
Configure this process in the host's stdio MCP settings:
command: node
args: /absolute/path/to/prismrelay-mcp/dist/prismrelay-mcp.mjs serve
environment passthrough: AGNES_API_KEY, AGNES_BASE_URL, AGNES_OUTPUT_DIR
Also install skills/prismrelay-images in the host's supported Skill directory if it supports Agent Skills. See Host setup and automatic invocation.
DeepSeek Harness plugin
PrismRelay also ships as an installable DeepSeek Harness bundle. It uses Harness's official MCP Client to expose the same local PrismRelay tools; the visual runtime is not duplicated.
export AGNES_API_KEY="your_api_key_here"
npx @deepseek-ai/dsh plugin --profile web add github:Arnoldkevin/prismrelay-mcp
npx @deepseek-ai/dsh --profile web --dump-config
npx @deepseek-ai/dsh web
DeepSeek Harness is currently a Developer Preview, so compatibility may need to track upstream breaking changes. See DeepSeek Harness integration for configuration, removal, and current MCP image-output limitations.
Does it call itself automatically?
Sometimes, but installation is not a guarantee.
MCP makes the tools available. The host model decides whether to invoke them from the request, MCP tool descriptions, the companion Skill, permissions, and its tool-calling implementation. PrismRelay's Skill strongly instructs a text-only Agent to call prismrelay_understand_image whenever a visual task includes a readable image source.
For the most reliable first test, give an explicit local path:
请查看 /absolute/path/to/screenshot.png,告诉我页面当前状态和可见的报错。
A local MCP process cannot intercept an opaque image attachment held only inside the host's private conversation payload. If a pasted image is not exposed as a path, save it to disk and provide the path. DeepSeek used through a Claude Code-compatible proxy must also support Claude Code's tool-calling protocol; that behavior is controlled by the proxy/model, not PrismRelay.
Recommended vision tasks
- Ask what is visible in a photo and request evidence for the answer.
- Diagnose a UI screenshot or error dialog.
- Extract headings, totals, dates, or status labels from a clean document image.
- Explain the trend and legend in a chart.
- Compare two product images or two UI screenshots.
- Check whether a poster contains a specified element or visible wording.
Run the repeatable matrix in Vision evaluation before making reliability claims for a particular Agent host and model combination.
Privacy and data flow
Images are read by the local MCP process and sent to the configured Agnes API for inference. They are not processed entirely on-device. Generated or downloaded results are saved under AGNES_OUTPUT_DIR (default ./outputs). See Privacy before using personal, confidential, regulated, or third-party images.
Configuration
| Variable | Required | Default | Purpose |
|---|---|---|---|
AGNES_API_KEY |
Yes | None | Agnes API authentication |
AGNES_BASE_URL |
No | https://apihub.agnes-ai.com/v1 |
Agnes API route |
AGNES_OUTPUT_DIR |
No | ./outputs |
Downloaded and finalized image directory |
AGNES_TIMEOUT_MS |
No | 120000 |
Per-request timeout in milliseconds |
AGNES_MAX_RETRIES |
No | 3 |
Maximum retryable API attempts |
AGNES_MAX_IMAGE_BYTES |
No | 26214400 |
Input/output image safety limit |
AGNES_EMBED_MAX_BYTES |
No | 4194304 |
Largest image embedded in an MCP response |
Scope and limitations
- Local stdio MCP only; no remote hosting, shared service, OAuth, billing, or video generation.
- Understanding is delegated to a separate vision model. It may misread small text, blur, occlusion, dense tables, subtle differences, or ambiguous scenes.
- Generation/editing review can identify some failures, but cannot force a provider to follow strong style or layout instructions.
- The current release has automated contract and packaging tests. Users should separately run the live evaluation matrix with their own Agnes key and chosen Agent host.
Development
npm test
npm run smoke
npm run pack:check
npm audit --omit=dev
License and provider terms
PrismRelay's original code is released under the MIT License. MIT covers this repository's code only; it does not grant rights to Agnes models, APIs, output, documentation, branding, or trademarks.
The Agnes service terms restrict unauthorized resale, sublicensing, or provision of the service to third parties. PrismRelay therefore uses a direct BYOK design and must not be operated as a shared-key proxy or resale service. The public terms do not explicitly name community MCP clients, so this repository does not claim official authorization or endorsement. Read Third-party notices and obtain written clarification from Agnes for commercial redistribution models beyond direct BYOK use.
Official references
原始 README: https://github.com/Arnoldkevin/prismrelay-mcp/blob/main/README.md ↗
同类插件
查看全部 →
modlens
为纯文本模型架起视觉桥梁:粘贴图片,输出结构化 JSON 证据(OCR、版面、语义)。

dsh-vision-toolkit
让纯文本模型更好地做视觉任务:带意图的图片问答、长截图 OCR、UI 还原等。

dsh-vision-router
为纯文本 Agent 提供视觉能力:内置免 Key 视觉链 + 像素级视觉工具(看图问答、定位、裁剪、像素对比、取色、OCR、矢量化、抠图、截图);粘贴图片即可用。

dsh-vision-complete
给 DeepSeek 补上「眼睛和耳朵」的多模态视觉插件:看图 / OCR / 物体检测 / 视频理解 / 语音转写 / 截图直读,一键安装(DSH 插件)。

dsh-media-skills
面向纯文本模型的免费视觉桥与生图:粘贴读图、GLM-4V-Flash 与 Gemini 引擎故障转移、modlens 同款结构化证据输出,并自动播种免费视觉模型路由。

dsh-vision-opencode
给纯文本主模型加可配置识图模型:vision_read_image 工具、输入框识图模型选择器,以及纯文本路由的图片自动转文字。