跳到技能内容
词映 AI导航
发现工具选型指南Skills 技能AI 快讯AI图片AI视频AI文档AI办公AI助手AI搜索AI编程AI音频AI设计AI智能体模型与开发AI学习模型评测AI提示词内容检测AI金融AI 3D扫描与识别其他工具跨境电商 AI
词映 AI导航
工具库Skills 技能
我的收藏
词映 AI导航
发现工具选型指南Skills 技能AI 快讯AI图片AI视频AI文档AI办公AI助手AI搜索AI编程AI音频AI设计AI智能体模型与开发AI学习模型评测AI提示词内容检测AI金融AI 3D扫描与识别其他工具跨境电商 AI
Skills directory/pomerium/chatgpt-app-typescript-template/create-mcp-tool

Add a Text-Only MCP Tool to a ChatGPT App Template

Use Codex with Pomerium’s TypeScript template to add a tool. The skill explains where to define the Zod schema, register a tool for each session, and test both results and input errors.

中文

Install in Codex

Use Codex in the pinned Pomerium template. Its package.json requires Node.js 24 or later. The example uses local data.

  1. Run git clone https://github.com/pomerium/chatgpt-app-typescript-template.git. From the checkout, run git checkout --detach 444f3cfbcc0f2cc405a01d9dc4ab2215f6e1650c.
  2. The checkout already includes .agents/skills/create-mcp-tool/SKILL.md in the project skills directory. Set up the template dependencies as described in the pinned README.
  3. Open Codex at the project root. Select the skill via /skills or $create-mcp-tool. After adding the example tool, run npm run test:server in the project.

Example task

Add a read-only glossary tool to the pinned template. Use two in-memory entries, SSE and Markdown. Search for SSE with a limit of 1, then try a limit of 0.

What to check

The valid request returns only SSE. The invalid limit hits validation. Server tests cover both requests.

Original SKILL.md on GitHub · Updated 2026-11-11

Frequently asked question

Do I need a widget for every MCP tool?

The template supports text-only tools. If you add a widget, follow the template’s widget conventions and keep a usable text response for clients without the UI.

词映 AI 导航Skills 技能
工具分类全部工具已本地化技能选型指南AI 快讯