Requirements
- Target platform
- OpenClaw
- Install method
- Manual import
- Extraction
- Extract archive
- Prerequisites
- OpenClaw
- Primary doc
- SKILL.md
Integrates MCP tool servers for orchestration, state persistence with IndexedDB/localStorage, and session sync across devices in OpenClaw/Clawdbot.
Integrates MCP tool servers for orchestration, state persistence with IndexedDB/localStorage, and session sync across devices in OpenClaw/Clawdbot.
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Then review README.md for any prerequisites, environment setup, or post-install checks. Tell me what you changed and call out any manual steps you could not complete.
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Then review README.md for any prerequisites, environment setup, or post-install checks. Summarize what changed and any follow-up checks I should run.
MCP (Model Context Protocol) integration for OpenClaw/Clawdbot. Use when you need to: Connect and orchestrate MCP tool servers (filesystem, GitHub, etc.) Persist state across sessions with IndexedDB/localStorage Sync sessions across multiple devices Triggers: "MCP", "tool server", "sub-agent orchestration", "session sync", "state persistence", "Claude Code integration"
npm install openclaw-claude-code-skill
import { initializeMcpSystem, addMcpServer, executeMcpAction, getAllTools } from "openclaw-claude-code-skill"; // 1. Initialize all configured servers await initializeMcpSystem(); // 2. Add a new MCP server await addMcpServer("fs", { command: "npx", args: ["-y", "@modelcontextprotocol/server-filesystem", "/tmp"] }); // 3. Get available tools const tools = await getAllTools(); // 4. Call a tool const result = await executeMcpAction("fs", { method: "tools/call", params: { name: "read_file", arguments: { path: "/tmp/test.txt" } } });
import { createPersistStore, indexedDBStorage } from "openclaw-claude-code-skill"; const useStore = createPersistStore( { count: 0, items: [] }, (set, get) => ({ increment: () => set({ count: get().count + 1 }), addItem: (item: string) => set({ items: [...get().items, item] }) }), { name: "my-store" }, indexedDBStorage // or omit for localStorage ); // Check hydration status if (useStore.getState()._hasHydrated) { console.log("State restored!"); }
import { mergeSessions, mergeWithUpdate, mergeKeyValueStore } from "openclaw-claude-code-skill"; // Merge chat sessions from multiple sources const mergedSessions = mergeSessions(localSessions, remoteSessions); // Merge configs with timestamp-based resolution const mergedConfig = mergeWithUpdate(localConfig, remoteConfig);
FunctionPurposeinitializeMcpSystem()Start all MCP servers from configaddMcpServer(id, config)Add new server dynamicallyremoveMcpServer(id)Remove a serverpauseMcpServer(id)Pause a serverresumeMcpServer(id)Resume a paused serverexecuteMcpAction(id, req)Call a tool on specific servergetAllTools()List all available toolsgetClientsStatus()Get status of all MCP clientssetConfigPath(path)Set custom config file locationcreatePersistStore()Create Zustand store with persistencemergeSessions()Merge session arraysmergeWithUpdate()Merge with timestamp resolutionmergeKeyValueStore()Merge key-value stores
Create mcp_config.json: { "mcpServers": { "filesystem": { "command": "npx", "args": ["-y", "@modelcontextprotocol/server-filesystem", "/tmp"], "status": "active" }, "github": { "command": "npx", "args": ["-y", "@modelcontextprotocol/server-github"], "env": { "GITHUB_TOKEN": "your-token" }, "status": "active" } } } Set custom config path: import { setConfigPath } from "openclaw-claude-code-skill"; setConfigPath("/path/to/mcp_config.json");
Node.js 18+ TypeScript (optional but recommended)
GitHub npm MCP Specification
Code helpers, APIs, CLIs, browser automation, testing, and developer operations.
Largest current source with strong distribution and engagement signals.