Visualiser is a mobile-first MCP App for turning a prompt into a routed visual learning experience inside chat. The server exposes one host-visible tool, visualise_learning_view, which selects the best family for the question and renders a single embedded teaching surface.
The current families are:
concept->concept_mapflow->flow_runnersystem->layered_architecturedata->entity_maptime->timelinecompare->compare_matrixsimulate->state_machinepractice->build_it_back
npm run devwatches the UI bundle and runs the server withtsxnpm run buildtype-checks the project and bundles the UI intodist/npm run serve:stdiostarts the MCP server over stdionpm run serve:httpstarts the MCP server over streamable HTTP onhttp://localhost:3001/mcp
This workspace includes a portable .codex/config.toml. The current machine also has the same visualiser server added to ~/.codex/config.toml.
- Run
npm run buildonce so the MCP App HTML is bundled. - Reopen Codex or reload the workspace if the server list is already cached.
- Run
codex mcp listand confirm thatvisualiseris enabled. - In chat, call
visualise_learning_view, for example:
{
"prompt": "Explain OAuth token refresh for a visual learner",
"preferredFamily": "flow"
}npm run smoke:mcpchecks that the MCP server starts, validates all 8 routed view families, verifies prompt-based routing, and confirms Mermaid-like source material routes intoflow_runner.npm run verifyruns the build and the MCP smoke test together.
This workspace includes .vscode/mcp.json, so VS Code can start the server directly from the workspace.
- Run
npm run buildonce so the MCP App HTML is bundled. - Reload the VS Code window after the workspace files are picked up.
- In VS Code, run
MCP: List Serversand confirm thatvisualiseris enabled and running. - If VS Code prompts for trust, approve the workspace server.
- In chat, enable the
visualisertool and ask for a visual explanation, for example:Use visualise_learning_view to explain event-driven architecture visually. - The app should render inline in chat when the tool returns its UI resource.
- Build the UI before using the server in a host, otherwise the resource endpoint returns a placeholder page.
- HTTP mode also exposes
GET /health. - App QA without a host can use
mcp-app.html?demo=1ormcp-app.html?demo=1&family=compare. - On this machine, the global Codex config uses
model_reasoning_effort = "high"socodex mcpCLI commands work reliably with the installed binary.
Project documentation lives under docs/.
docs/project-overview.mdexplains the product scope and repository layout.docs/user-stories.mdrecords the primary validated user jobs across the 8 view families.docs/use-cases.mdcaptures concrete real-world usage patterns and example prompts.docs/architecture.mdexplains server, UI, and shared contract flow.docs/interfaces-and-contracts.mdlists the MCP resource, tool, and schema contracts.docs/features/routed-learning-view.mdtracks the main product workflow.