Skip to main content

Crate persona_wire_mcp

Crate persona_wire_mcp 

Source
Expand description

persona-wire MCP server library — the transport layer that wraps persona_wire_core for consumption by MCP clients (Claude Code, mcp:// peers, etc.).

This crate exposes serve_stdio for the unified persona-wire mcp subcommand to dispatch into. Transport is rmcp stdio (see ServiceExt plumbing); the tool surface is defined by the WireServer struct, whose methods are annotated with #[rmcp::tool] and enumerated into a ToolRouter at boot.

WireServer::new constructs a persistent SqliteStorage + PluginRegistry pair once at startup. The registry combines core defaults (FileAdapter + HandlebarsEngine + StaticProjection) with the fifteen external adapter crates (persona-wire-adapter-{mini-app, sqlite-x, obsidian, persona-pack, mcp, rss, github, matrix, mastodon, todoist, notion, slack, apple-notes, activitypub, bluesky}), so every scheme-tagged URI a caller passes to wire_prompt_context, wire_render, or wire_workflow_fire resolves through the same pipeline.

No CLI parsing / entry-point code lives here — the persona-wire binary in the sibling crate is the only intended caller, and its mcp subcommand’s job is to build a SqliteStorage pointing at the operator’s on-disk DB and hand it to serve_stdio.

Structs§

WireBundleInstallParams
WireBundleRefParams
WireBundleRegisterParams
WireCloseParams
WireContextGetParams
WireDeleteParams
WireDoctorParams
WireEdgeCreateParams
WireEdgesCreateBatchParams
WireFetchParams
WireInitParams
WireListPageParams
WireMaterializeParams
WireNodeCreateParams
WireNodeUpdateParams
WireNodesCreateBatchParams
WireProjectionRegisterParams
WirePromptContextParams
WireQueryParams
WireRenderParams
WireServer
MCP server wrapping persona-wire-core.
WireSlotDeleteParams
WireSlotRegisterParams
WireSpecRegisterParams
WireWorkflowFireParams
WireWorkflowListParams
WireWorkflowRegisterParams

Constants§

ONBOARDING_GUIDE
Full end-to-end onboarding guide bundled with the MCP server.

Functions§

serve_stdio
Run the MCP server over stdio against the given SQLite db path. Caller (typically the unified persona-wire mcp subcommand) owns tokio runtime setup and tracing init.