@openpresentation / mcp
OPF(开放演示格式)的MCP服务器。说英语的代理人或编辑 模型上下文协议
学习格式并通过它检查甲板,而不需要剥开和解析文本:文档,模式,默认目录,
示例牌组和六种代理技能作为资源,a start_here 为目标提供路径的工具,以及 validate_deck,
get_schema, search_catalog, get_catalog_record, convert, search_docs 和 list_examples 作为工具。它不保持状态,读取
没有文件,没有获取任何东西,也不需要API密钥。节点22及以上版本。
claude mcp add opf -- npx -y @openpresentation/mcp # Claude Code
npx -y @openpresentation/mcp # any MCP client: command npx, args -y @openpresentation/mcp
工具、资源(opf://docs/format-card, opf://schema/presentation#Chart, opf://catalog/layouts/two-column,…),提示,client
设置(克劳德代码,光标,克劳德桌面)和一个典型的会话: MCP服务器.
作为图书馆
服务器定义与传输分离,并在边缘运行时(没有内置Node,没有读取文件,预编译)上运行 验证器),用于托管服务器:
import { createOpfServer } from "@openpresentation/mcp"; // with the bundled docs, examples, skills and release notes
import { createOpfMcpServer } from "@openpresentation/mcp/server"; // the same without that data: you pass `sources`
const server = createOpfServer({ version: "0.27.0" });
await server.connect(transport); // stdio, or Streamable HTTP in a Worker
@openpresentation/mcp/stdio 是Node的stdio包装器(runStdio()) that… opf-mcp 二进制和 opf mcp 命令行运行。布局
是用实际字体丈量时的可选对等吗 @openpresentation/opf-render 安装在它旁边;否则就是估计
报告也是这么说的。该软件包随 @openpresentation/opf 还有其他的包装
OpenPresentation /消息 有一个版本。