Statewave
@statewavedev/mcp-server
Statewave MCP server — exposes Statewave memory to MCP-compatible clients (coding assistants, agent frameworks, IDE extensions).
Part of the Statewave Connectors ecosystem. Vendor-neutral by design — no IDE, model provider, or hosted dependency assumptions.
What's here
STATEWAVE_MCP_TOOLS— the canonical tool surface (5 tools, JSON Schema input)StatewaveClient— thin HTTP client for the Statewave v1 API (auth, tenant, typed errors)dispatchTool— input-validating dispatcher that maps a tool call to aStatewaveClientmethodstartMcpServer— minimal stdio JSON-RPC 2.0 transport, plus a--list-toolsmode
Related MCP server: StateWeave
Tools
Tool | Purpose |
| Ingest a single normalized episode (deduped on |
| Search compiled memories by free-text query within a subject. |
| Retrieve compact, ranked context for a subject — the default tool to use inside a prompt. |
| Chronological episodes for a subject; filterable by |
| Trigger compilation of a subject so newly ingested episodes become recallable. |
Usage
# As a CLI subcommand (via @statewavedev/connectors-cli)
statewave-connectors mcp start --list-tools # print the JSON Schema surface and exit
statewave-connectors mcp start # stdio JSON-RPC 2.0 server (requires STATEWAVE_URL)
# Or programmatically inside an existing MCP runtime
import { StatewaveClient, dispatchTool } from "@statewavedev/mcp-server";
const client = new StatewaveClient({ url: process.env.STATEWAVE_URL!, apiKey: process.env.STATEWAVE_API_KEY });
const { result } = await dispatchTool(client, "statewave_get_context", {
subject: "repo:owner/name",
query: "repo conventions and recent changes",
});Status
v0.1.0 preview — minimal stdio transport included. See RELEASE_NOTES.md.
Maintenance
Latest Blog Posts
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/smaramwbc/statewave-connectors'
If you have feedback or need assistance with the MCP directory API, please join our Discord server