PD

portel-dev/photon

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

100 stars 5 forks 质量 77 趋势 8MIT

portel-dev/photon 是从 https://github.com/portel-dev/photon. 导入的 MCP 服务器候选

概览

portel-dev/photon 是从 https://github.com/portel-dev/photon. 导入的 MCP 服务器候选

概述(AI 翻译)

一个TypeScript能力变成了整个代理栈。

Photon 是将一个小型、经过验证的 TypeScript 方法转化为最快的方法 人类可以操作、代理可以信任的东西。写一次能力; Photon 衍生出其周围的接口、契约和运行时行为:

  • MCP 服务器,支持 Claude、ChatGPT、光标和代理
  • 嵌入式应用界面,用于支持MCP应用资源的聊天客户端
  • CLI工具,用于脚本、演示和自动化
  • 人类用的Beam网页界面
  • 网页路由、调度、webhook、重试、状态和审计历史 能力发展为生产工作流程

Photon 是免费且开源的软件,采用 MIT 许可证发布。 完整文档存放在 photon.portel.dev。

相关Portel项目:NCP提供代理 一个自然的MCP接口,用于在整个工具中发现和运行工具 生态系统。Photon构建可靠的面向代理的能力;NCP帮助代理 找到它们,并和其他所有MCP一起使用。

两分钟后试试:

这会打开Beam,即生成的人类用户界面。当 你需要在 Claude Desktop 或其他 MCP 客户端中实现同样的功能。

*接口为可选。

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

One TypeScript capability becomes the whole agent stack.

Photon is the fastest way to turn a small, verified TypeScript method into something humans can operate and agents can trust. Write the capability once; Photon derives the interfaces, contracts, and runtime behavior around it:

  • MCP server for Claude, ChatGPT, Cursor, and agents
  • Embedded app UI for chat clients that support MCP app resources
  • CLI tool for scripts, demos, and automation
  • Beam web interface for humans
  • Web routes, schedules, webhooks, retries, state, and audit history when the capability grows into a production workflow

Photon is free and open source software released under the MIT license. Full documentation lives at photon.portel.dev.

Related Portel project: NCP gives agents one natural MCP interface to discover and run tools across a whole tool ecosystem. Photon builds reliable agent-facing capabilities; NCP helps agents find and use them alongside every other MCP.

Try it in two minutes:

bun add -g @portel/photon
photon new my-tool
photon

That opens Beam, the generated human UI. Add photon mcp install my-tool when you want the same capability inside Claude Desktop or another MCP client.

Interfaces are optional. Intent is mandatory.

gh repo star portel-dev/photon

From one method to every surface

The weather example is intentionally small: one TypeScript method, a few docblock tags, and one @ui HTML asset. Photon turns that into a CLI command, Beam UI, MCP tool, and embedded app surface for MCP app-capable chat clients. Claude Desktop can run it from a local stdio MCP command; ChatGPT developer mode can connect to the same Photon over a public HTTPS /mcp endpoint.

在 GitHub 查看完整 README

安装

This server does not publish a one-line install command.

Open the repository installation guide 新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "analytics": { "command": "photon", "args": ["mcp", "analytics"] } } }