mcp-ikaos-story
mcp-ikaos-story
Stdio-MCP-Server zum Erstellen und Ändern von iKAOS Story-Prototypinhalten mit Codex oder Claude Code.
Der MCP kommuniziert mit der authentifizierten iKAOS Story API. Benutzer müssen ikaos-content-studio-v2026 nicht klonen oder einen lokalen Repository-Pfad konfigurieren. Story-Inhalts-/Layout-JSON liegt in Supabase, während feste Workflow-Dokumente und Quellmetadaten hinter der API schreibgeschützt bleiben.
Grenzen
get_story_contextgibt die aktuelle Inhaltsrevision und den maßgeblichendocsLinkzurück.save_story_contentschreibt nurcontent_data; Quelle, Dokumente, Story-Identität und Produktionsmetadaten können nicht geändert werden.Jeder Inhalts-Schreibvorgang erfordert die exakte aktuelle Revision. Eine veraltete Bearbeitung gibt einen Konflikt zurück, anstatt neuere Inhalte zu überschreiben.
Die Bildgenerierung liegt außerhalb des Rahmens. Designer können bereitgestellte Bilddateien über den df-sheet-Speicher hochladen, ersetzen, organisieren und löschen.
Kein Supabase-Dienstschlüssel wird an MCP-Benutzer verteilt.
Related MCP server: Intern MCP
Installation
npm install
npm run buildKonfigurieren Sie die 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.appBildwerkzeuge erfordern zusätzlich:
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 ist optional und standardmäßig auf http://localhost:3000 gesetzt. DF_SHEET_ACCESS_TOKEN ist derzeit ein kurzlebiges df-login-Review-Zugriffstoken. Committen Sie niemals ein Token.
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.jsFügen Sie die drei DF_SHEET_*-Umgebungsvariablen zu demselben Befehl hinzu, wenn Bildwerkzeuge benötigt werden. Überprüfen Sie mit codex mcp list oder /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.jsFügen Sie die drei DF_SHEET_*-Umgebungsvariablen hinzu, wenn Bildwerkzeuge benötigt werden. Überprüfen Sie mit claude mcp list oder /mcp.
Werkzeuge
Werkzeug | Effekt |
| Listet Supabase-gestützten Story-Status, Inhaltsrevision, Vorschau-Route und Dokumentationslink auf. |
| Liest Identität, maßgeblichen Dokumentationslink, aktuelles Inhalts-JSON und Revision. |
| Liest feste Workflow-, Semantik-, Zitat-, Katalog- oder Produzentenregeln über die API. |
| Erstellt oder ändert Inhalts-/Layout-JSON mit optimistischem Revisionsschutz. |
| Validiert die aktuelle Story-Identität und erforderliche Inhaltsarrays. |
| Listet gespeicherte Bilder für einen Story-Slot und optionalen Viewport. |
| Lädt eine lokale PNG/JPG/WebP-Datei bis zu 20MB hoch. |
| Ändert Bezeichnung/Reihenfolge oder ersetzt die Datei sicher. |
| Löscht ein Story-Bild nach Prüfung des Geltungsbereichs dauerhaft. |
Inhaltsworkflow
Rufen Sie
get_story_contextauf.Öffnen Sie
docsLinkund lesen Sie die erforderlichen festen Regeln mitget_story_rules.Ändern Sie ausschließlich das zurückgegebene Inhalts-/Layout-Objekt
currentData.data.Rufen Sie
save_story_contentmit der unveränderten Story-ID undcurrentData.revisionauf. Verwenden Sienullnur, wenn die Story noch keinen Inhalt hat.Rufen Sie
validate_storyauf und prüfen Sie anschließend die zurückgegebene Vorschau-URL bei 390px und 1280px.
Wenn ein anderer Client zuerst gespeichert hat, rufen Sie den neuesten Kontext ab und führen Sie den Merge bewusst durch. Wiederholen Sie den Vorgang nicht mit einer ersetzten Revision, ohne die neueren Inhalte zu prüfen.
Bildworkflow
Wählen Sie eine gültige
imagePromptPackages[].inputBrief.slotIdaus dem Story-Inhalt.Rufen Sie
upload_story_imagemit einem absoluten lokalen Bildpfad auf.Verwenden Sie die zurückgegebene
imageUrlim Story-Inhalt und speichern Sie diesen mitsave_story_content.Rufen Sie
update_story_imageauf, um Metadaten zu ändern oder die Datei zu ersetzen. Beim Ersetzen wird zuerst hochgeladen; die alte Datei wird erst nach erfolgreichem Upload gelöscht.Rufen Sie
delete_story_imageerst auf, nachdem Sie die Bild-ID bestätigt haben. Das Löschen entfernt das R2-Objekt und kann von diesem MCP nicht wiederhergestellt werden.
Lassen Sie viewport für eine einzige responsive Quelle weg. Übergeben Sie dasselbe Viewport-Objekt an list, update und delete, wenn Sie separate Mobil- oder Desktop-Dateien verwenden.
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