Skip to main content
Glama

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 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-token

IKAOS_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 で確認します。

ツール

ツール

効果

list_stories

Supabase バックアップの Story ステータス、コンテンツリビジョン、プレビュールート、ドキュメントリンクを一覧表示します。

get_story_context

アイデンティティ、信頼できるドキュメントリンク、現在のコンテンツ JSON、リビジョンを読み取ります。

get_story_rules

API を通じて固定のワークフロー、セマンティック、Quote、カタログ、プロデューサールールを読み取ります。

save_story_content

楽観的リビジョン保護付きでコンテンツ/レイアウト JSON を作成または変更します。

validate_story

現在の Story アイデンティティと必須コンテンツ配列を検証します。

list_story_images

Story スロットとオプションのビューポートに保存されている画像を一覧表示します。

upload_story_image

ローカルの PNG/JPG/WebP ファイルを最大 20MB までアップロードします。

update_story_image

ラベル/順序を変更するか、ファイルを安全に置き換えます。

delete_story_image

スコープ検証後、Story 画像を完全に削除します。

コンテンツワークフロー

  1. get_story_context を呼び出します。

  2. docsLink を開き、get_story_rules で必要な固定ルールを読み取ります。

  3. 返された currentData.data のコンテンツ/レイアウトオブジェクトのみを変更します。

  4. 変更していない Story ID と currentData.revision を指定して save_story_content を呼び出します。Story にまだコンテンツがない場合にのみ null を使用します。

  5. validate_story を呼び出し、返されたプレビュー URL を 390px と 1280px で確認します。

別のクライアントが先に保存した場合は、最新のコンテキストを取得して意図的にマージします。新しいコンテンツを確認せずに、置き換えられたリビジョンで再試行しないでください。

画像ワークフロー

  1. Story コンテンツから有効な imagePromptPackages[].inputBrief.slotId を選択します。

  2. ローカルの絶対画像パスを指定して upload_story_image を呼び出します。

  3. 返された imageUrl を Story コンテンツで使用し、save_story_content で保存します。

  4. update_story_image を呼び出してメタデータを変更するか、ファイルを置き換えます。置き換えは最初にアップロードし、アップロードが成功した後にのみ古いファイルを削除します。

  5. 画像 ID を確認した後にのみ delete_story_image を呼び出します。削除すると R2 オブジェクトが削除され、この MCP では復元できません。

レスポンシブな単一ソースの場合は viewport を省略します。モバイルとデスクトップで別々のファイルを使用する場合は、リスト、更新、削除にまったく同じ viewport オブジェクトを渡します。

Available Tools

7 tools
get_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

    A3.7/5.0

    Scored across 7 tools

    Disambiguation5/5

    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.

    Naming Consistency5/5

    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.

    Tool Count5/5

    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.

    Completeness4/5

    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

    ActivityStale
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      C
      maintenance
      Read-oriented MCP server for Taranis AI, exposing the list_stories tool over stdio or Streamable HTTP for desktop AI assistants and developer tools.
      1
      -
    • A
      license
      Not graded
      quality
      F
      maintenance
      Local 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 npm
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Enables 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.
      2
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Enables 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.
      65
      1
      MIT