mcp-ikaos-story
mcp-ikaos-story
用于通过 Codex 或 Claude Code 创建和修改 iKAOS Story 原型内容的 Stdio MCP 服务器。
该 MCP 与经过身份验证的 iKAOS Story API 通信。用户无需克隆 ikaos-content-studio-v2026 或配置本地仓库路径。Story 内容/布局 JSON 存储在 Supabase 中,而固定的工作流文档和源元数据在 API 后端保持只读。
边界
get_story_context返回当前内容修订版和权威的docsLink。save_story_content仅写入content_data;源数据、文档、Story 身份和生产元数据无法更改。每次内容写入都需要精确的当前修订版。过期的编辑会返回冲突,而不是覆盖较新的内容。
图像生成不在范围内。设计人员可以通过 df-sheet 存储上传、替换、整理和删除提供的图像文件。
不会向 MCP 用户分发 Supabase 服务密钥。
安装
npm install
npm run build配置 Story API:
export IKAOS_STORY_API_URL=https://your-ikaos-preview.vercel.app
export IKAOS_STORY_API_TOKEN=your-project-scoped-api-token
export IKAOS_STORY_PREVIEW_URL=https://your-ikaos-preview.vercel.app图像工具还需要:
export DF_SHEET_URL=https://your-df-sheet.vercel.app
export DF_SHEET_PROJECT_ID=your-project-uuid
export DF_SHEET_ACCESS_TOKEN=your-df-login-review-access-tokenIKAOS_STORY_PREVIEW_URL 是可选的,默认为 http://localhost:3000。DF_SHEET_ACCESS_TOKEN 目前是一个短期的 df-login 审查访问令牌。切勿提交任何令牌。
Codex
codex mcp add ikaos-story \
--env IKAOS_STORY_API_URL=https://your-ikaos-preview.vercel.app \
--env IKAOS_STORY_API_TOKEN=your-project-scoped-api-token \
--env IKAOS_STORY_PREVIEW_URL=https://your-ikaos-preview.vercel.app \
-- node /absolute/path/to/mcp-ikaos-story/dist/src/index.js当需要图像工具时,将三个 DF_SHEET_* 环境变量值添加到同一命令中。使用 codex mcp list 或 /mcp 进行验证。
Claude Code
claude mcp add --transport stdio \
--env IKAOS_STORY_API_URL=https://your-ikaos-preview.vercel.app \
--env IKAOS_STORY_API_TOKEN=your-project-scoped-api-token \
--env IKAOS_STORY_PREVIEW_URL=https://your-ikaos-preview.vercel.app \
ikaos-story -- node /absolute/path/to/mcp-ikaos-story/dist/src/index.js当需要图像工具时,添加三个 DF_SHEET_* 环境变量值。使用 claude mcp list 或 /mcp 进行验证。
工具
工具 | 作用 |
| 列出基于 Supabase 的 Story 状态、内容修订版、预览路由和文档链接。 |
| 读取身份、权威文档链接、当前内容 JSON 和修订版。 |
| 通过 API 读取固定的工作流、语义、Quote、目录或生产者规则。 |
| 使用乐观修订保护创建或修改内容/布局 JSON。 |
| 验证当前 Story 身份和必需的内容数组。 |
| 列出 Story 槽位和可选视口的已存储图像。 |
| 上传本地 PNG/JPG/WebP 文件,最大 20MB。 |
| 更改标签/顺序,或安全地替换文件。 |
| 在范围验证后永久删除 Story 图像。 |
内容工作流
调用
get_story_context。打开
docsLink,并使用get_story_rules阅读所需的固定规则。仅修改返回的
currentData.data内容/布局对象。使用未更改的 Story ID 和
currentData.revision调用save_story_content。仅当 Story 尚无内容时才使用null。调用
validate_story,然后在 390px 和 1280px 下检查返回的预览 URL。
如果另一个客户端先保存了,请获取最新的上下文并有意合并。未经审查较新的内容,不要使用替换后的修订版重试。
图像工作流
从 Story 内容中选择一个有效的
imagePromptPackages[].inputBrief.slotId。使用本地图像的绝对路径调用
upload_story_image。在 Story 内容中使用返回的
imageUrl,并使用save_story_content保存。调用
update_story_image更改元数据或替换文件。替换会先上传,并且仅在上传成功后才删除旧文件。仅在确认图像 ID 后调用
delete_story_image。删除会移除 R2 对象,并且无法通过此 MCP 恢复。
对于单个响应式源,请省略 viewport。当使用单独的移动端或桌面端文件时,请将完全相同的 viewport 对象传递给 list、update 和 delete。
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
MCP Server for Slima - AI Writing IDE for Novel Authors with AI Beta Reader.
MCP server for the Inistate platform: module discovery, entry management, and activity submission.
MCP server for AgentDocs (agentdocs.eu): read, search, write, comment on & share Markdown docs.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Designfever/mcp-ikaos-story'
If you have feedback or need assistance with the MCP directory API, please join our Discord server