Skip to main content
Glama

Stick Director

Stick Director is an MCP-powered stick-figure flipbook toy. A user describes an animation, connects an MCP agent, and watches the story, motion, frames, and quality review appear in the browser.

This repository contains the complete toy:

  • a Cloudflare Worker and MCP endpoint;

  • one MCP tool, flipbook_step;

  • temporary pairing sessions stored in Durable Objects;

  • schemas and validation for stories, motion, poses, and review;

  • SVG and JPEG renderers; and

  • a framework-free browser interface in site/.

The Worker does not call a model. It returns structured requests through MCP, accepts the agent's answers, validates them, and advances the flipbook.

Read the companion article, You can just delegate things., for the idea behind the toy and its live prototype.

Try it locally

npm install
npm run dev       # http://127.0.0.1:8787

Open the page and click Wake it up. Add the generated MCP URL to an agent, then send the prompt shown on the page. The browser follows the session as the agent works and plays the accepted frames when the flipbook is ready.

The generated MCP URL controls one temporary session. Treat it like a password. The page also receives a read-only viewing URL and keeps the revoke URL in the browser that created the session. Sessions expire after 24 hours.

Related MCP server: @kamiazya/whiteboard-mcp

MCP flow

The agent uses the same tool for the entire run:

flipbook_step({ op: "start", goal, frameCount })
        ↓
judgement_required: story_plan | motion_plan | frame_batch | quality_review
        ↓
flipbook_step({ op: "answer", continuation..., answer })
        ↓
validate and advance, or return the next required answer
        ↓
complete: viewerUrl

When more than one repair or next step is legal, the Worker can return the technical routing request meta.next_judgement. Its answer selects one legal contract and the useful context for it; it does not change flipbook state.

An answer call must echo the continuation values from the open request:

flipbook_step({
  op: "answer",
  continuationToken: "<continuation.token>",
  requestId: "<continuation.requestId>",
  requestFingerprint: "<continuation.requestFingerprint>",
  answer: { /* payload matching request.program.outputSchema */ }
})

Continue until the result is complete or blocked. Use inspect to read an existing project when debugging:

flipbook_step({ op: "inspect", continuationToken: "<project id>" })

Local viewer split

The Worker normally serves both the browser UI and API on port 8787. To test the same UI from a separate static origin:

npm run viewer    # http://127.0.0.1:8788

Keep npm run dev running. site/config.js points the static viewer back to the Worker API on port 8787.

Deploy

Create the KV namespace used by the legacy direct MCP endpoint:

npx wrangler kv namespace create FLIPBOOKS

Put its id in wrangler.jsonc. Confirm that the three rate-limit namespace_id values are unused in the Cloudflare account, then deploy:

npm run deploy

Wrangler uploads site/ as Worker Static Assets. The Durable Object binding and its v1 SQLite migration are already declared.

The interactive page creates scoped MCP sessions at /mcp/s/<capability>. The unscoped /mcp route remains for direct and legacy clients.

See INTERNALS.md for the implementation map.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.

No tool schema history has been recorded yet.

Maintenance

ActivityMaintained
ResponsivenessNo issues

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

Related MCP Servers

  • A
    license
    Not graded
    quality
    C
    maintenance
    Enables AI agents to control the Blockout previs desktop app for AI filmmaking, allowing staging of 3D worlds, character animation, camera framing, timeline control, and viewport screenshotting through MCP tools.
    6
    Apache 2.0
  • A
    license
    Not graded
    quality
    B
    maintenance
    Enables AI agents to draw animated, hand-drawn diagrams on a live whiteboard through MCP tools, allowing users to visually explain concepts and edit scenes interactively.
    45
    AGPL 3.0

Latest Blog Posts

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/jpstrikesback/stick-director'

If you have feedback or need assistance with the MCP directory API, please join our Discord server