独立运营 · 不出售排名位置  · 我们怎么评估工具 →
Anclum 提交收录
P

portel-dev/photon

One TypeScript file becomes a CLI, an MCP server and a web UI

装之前:没有可直接复制的命令 · 许可证未标注 · 链接可访问

第一步:这条暂时没有可执行的下一步,可先看原仓库 https://github.com/portel-dev/photon

在 GitHub 查看 ↗链接已于 2026-11-12 核查 · HTTP 200 · 打开的是厂商自己的官网

我们没有从该仓库取到可核对的安装命令,也没有公开的远端端点。这两样都没有时,我们不出配置——编一条出来比不给更糟。 各客户端的接法 →

来源明细
收录自 abordage/awesome-mcp 榜单(我们从中收集的条目之一) · 条目类型:MCP 服务
收录与活跃
收录于 2026-11-05 · 最近见到 2026-11-14 · 共见到 10 次 · 被 10 个来源列出
评分构成
综合分 1,003 · 10 个来源 · mcp
常见问题(答案都来自我们的记录)
它适合谁 / 用来做什么?
我们把它归在这些标签下: MCP 服务。标签来自条目自身,不是我们强加的分类。
谁维护它、还在更新吗?
我们收录于 2026-11-05;最近见到 2026-11-14。这里没有"官方认证"或"质量评级"——我们只记录来源与时间。

### One TypeScript capability becomes the whole agent stack.

以下摘录自该仓库的 README(片段) · 在 GitHub 读完整 README →

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:
bash
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.
bash
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.
Real clients, same Photon:
ChatGPT developer mode rendering the Photon weather UI from a public HTTPS /mcp endpoint.
Claude Desktop rendering the same Photon through local MCP.
Follow the step-by-step tutorial
or open the runnable example in
examples/weather-showcase.
The tutorial also includes Beam, CLI, and a concept animation for the full
transformation.
## The Photon Promise
Photon is the modern dev stack for the agentic age: each photon is a small,
auditable brick that can be used by humans, agents, schedulers, webhooks, and
apps without rewriting the same capability for every interface.
That is the core idea: tiny trusted capabilities compose into larger
systems. A photon can start as a helper method, become a CLI command, render
as an app, run on a schedule, accept webhooks, and still expose a clean
agent-readable contract.
### Example
typescript
// hello.photon.ts
export default class Hello {
greet(name: string) {
return Hello, ${name}!;
That's a complete photon. From this single file you get:
$ photon cli hello greet --name Ada # CLI
$ photon # Web UI at localhost:3008
$ photon mcp hello # MCP server for Claude, Cursor, etc.
No decorators. No registration. No server boilerplate.
Just define the intent. Photon handles the rest.
### Quick Start
From zero to an MCP server connected to Claude Desktop in three commands:
bash
bun add -g @portel/photon
photon new my-tool # Scaffolds ./my-tool.photon.ts in your CWD
photon mcp install my-tool # Registers it in Claude Desktop's config
# Restart Claude Desktop. Your tool is live.
Prefer the web dashboard? Skip step 3 and run photon instead — it opens Beam, the auto-generated UI.
收录徽章(可选)
想把收录标记放进 README 就复制这行,可选,不影响收录。
[![Listed on Anclum](https://anclum.com/badge/listed.svg)](https://anclum.com/zh/s/portel-dev-photon/)
来源
awesome · https://github.com/portel-dev/photon
按领域浏览
MCP 服务
收录来源
10 个独立来源
收录于
今天

同类推荐

全部 6,229 →

所属领域与标签

每个标签都能点进去看同类的全部条目。数字是当前库里的真实条数。

浏览全部领域 →

← 返回索引