Claude Code Agent
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.
Real data. Real impact.
Emerging
Developers
Per week
Open source
Skills give you superpowers. Install in 30 seconds.
MCP (Model Context Protocol) integration for OpenClaw/Clawdbot. Use when you need to:
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);
| Function | Purpose |
|---|---|
| Start all MCP servers from config |
| Add new server dynamically |
| Remove a server |
| Pause a server |
| Resume a paused server |
| Call a tool on specific server |
| List all available tools |
| Get status of all MCP clients |
| Set custom config file location |
| Create Zustand store with persistence |
| Merge session arrays |
| Merge with timestamp resolution |
| 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");
No automatic installation available. Please visit the source repository for installation instructions.
View Installation Instructions1,500+ AI skills, agents & workflows. Install in 30 seconds. Part of the Torly.ai family.
© 2026 Torly.ai. All rights reserved.