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 ストレージを通じて、提供された画像ファイルをアップロード、置き換え、整理、削除できます。
Supabase のサービスキーが MCP ユーザーに配布されることはありません。
Related MCP server: Intern MCP
インストール
npm install
npm run buildStory 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画像ツールが必要な場合は、3 つの 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画像ツールが必要な場合は、3 つの 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を呼び出し、返されたプレビュー URL を 390px と 1280px で確認します。
別のクライアントが先に保存した場合は、最新のコンテキストを取得して意図的にマージします。新しいコンテンツを確認せずに、置き換えられたリビジョンで再試行しないでください。
画像ワークフロー
Story コンテンツから有効な
imagePromptPackages[].inputBrief.slotIdを選択します。ローカルの絶対画像パスを指定して
upload_story_imageを呼び出します。返された
imageUrlを Story コンテンツで使用し、save_story_contentで保存します。update_story_imageを呼び出してメタデータを変更するか、ファイルを置き換えます。置き換えは最初にアップロードし、アップロードが成功した後にのみ古いファイルを削除します。画像 ID を確認した後にのみ
delete_story_imageを呼び出します。削除すると R2 オブジェクトが削除され、この MCP では復元できません。
レスポンシブな単一ソースの場合は viewport を省略します。モバイルとデスクトップで別々のファイルを使用する場合は、リスト、更新、削除にまったく同じ viewport オブジェクトを渡します。
Available Tools
7 toolsget_story_contextA
Read one Story identity, authoritative document receipt, current data, revision, and preview URL.
Inputs: story_id (required).
get_story_rulesA
Read one immutable Story workflow, semantic, Quote, catalog, or producer rule file.
Inputs: rule (required).
list_storiesA
List iKAOS Story IDs and their read-only delivery status.
Inputs: status.
save_story_contentA
Create or modify Story content/layout JSON with optimistic revision protection. Fixed docs and source metadata cannot be changed.
Inputs: content (required), story_id (required), expected_revision (required).
update_story_imageB
Replace an Asset Hub image file using the scoped image ID returned by upload_story_image.
Inputs: slot_id (required), image_id (required), story_id (required), image_path (required), +1 more.
upload_story_imageC
Upload a local PNG, JPG, JPEG, or WebP file to Asset Hub after verifying the Story image slot.
Inputs: slot_id (required), story_id (required), image_path (required), viewport.
validate_storyC
Validate the current Supabase Story content structure and identity.
Inputs: story_id (required), mode.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
TDQS
Scored across 7 tools
Each tool targets a distinct resource or action: listing vs. single-story context, reading rules vs. content, saving vs. validating, and uploading vs. updating images. Even the two image tools are clearly separated by their roles in the upload/replace workflow.
All tool names follow a consistent verb_noun snake_case pattern, such as list_stories, get_story_context, save_story_content, and validate_story. No mixed casings or stylistic deviations appear.
Seven tools is a well-scoped set for a story management server. Each tool covers a meaningful part of the workflow without redundancy or excessive granularity.
The set covers listing, reading, creating/updating content, validating, and managing images, which handles the core story lifecycle. The main gap is the absence of an explicit delete operation for stories or images, though this may be intentional given the immutable/revision-oriented design.
Maintenance
Related MCP Connectors
Remote MCP server for AIStoryHub: stories, chapters, story bible, Voiceprints, AI generation.
Ovanek MCP: Model Context Protocol server for Ovanek platform tools; writes are dry-run by default.
MCP server for StyleKit styles, tokens, recipes, lint and repair over stdio or HTTP.
OAuth-protected, read-only-by-default MCP server for provenance-labeled QuillCaddie project memory.
Related MCP Servers
FlicenseNot gradedqualityCmaintenanceRead-oriented MCP server for Taranis AI, exposing the list_stories tool over stdio or Streamable HTTP for desktop AI assistants and developer tools.1-- AlicenseNot gradedqualityFmaintenanceLocal stdio MCP server for working on Intern-hosted sites through guarded Git checkouts. It enables authentication, site preparation, testing, validation, and publishing via coding harnesses like Codex and Claude Code.10 npmMIT
- AlicenseAqualityBmaintenanceEnables MCP clients to start new Codex conversations and continue existing threads, exposing codex and codex-reply tools over stdio via the Codex app-server protocol.2MIT
- AlicenseAqualityBmaintenanceEnables agents and scripts to drive a social publishing account through remote or local MCP tools: drafting, scheduling, approving and publishing posts, running durable background jobs with file attachments, and reading or editing Brand Memory, assets, and standing agents. Hosts can connect over OAuth with no API key, or run the stdio variant with a key for local disk tools.651MIT