Bỏ qua tới nội dung
TakoAPI
Quay lại kỹ năng

claude-code-skill

bởi enderfga

Clawdbot Tools
2.4kLượt tải do clawskills.sh công bố
2Lượt xem
0 lượt thíchĐăng nhập để thích kỹ năng này
—Chưa có đánh giá
Đánh giá của bạn

Tóm tắt

MCP (Model Context Protocol) integration.

Mô tả

Kỹ năng này làm gì

npm package for integrating MCP (Model Context Protocol) tool servers into OpenClaw/Clawdbot agents. Provides APIs for managing MCP server lifecycles, persisting state via IndexedDB or localStorage, and merging sessions across devices.

Bundles MCP server orchestration, state persistence, and session merging into one package instead of wiring each concern separately.

Khi nào nên dùng

  • Connecting a filesystem MCP server to read and write local files during agent tasks
  • Adding a GitHub MCP server to let an agent query repos and issues
  • Persisting agent state between page reloads using IndexedDB
  • Syncing chat session history across multiple browser tabs or devices
  • Dynamically pausing and resuming MCP servers without restarting the agent

Quy trình ví dụ

ĐẦU VÀO

User asks: set up a filesystem MCP server and read a file

AGENT
  1. 1

    Call initializeMcpSystem() to start servers from mcp_config.json

  2. 2

    Call addMcpServer('fs', { command: 'npx', args: ['-y', '@modelcontextprotocol/server-filesystem', '/tmp'] }) to register the server

  3. 3

    Call getAllTools() to confirm the read_file tool is available

  4. 4

    Call executeMcpAction('fs', { method: 'tools/call', params: { name: 'read_file', arguments: { path: '/tmp/test.txt' } } }) to read the file

ĐẦU RA

File contents returned from the filesystem MCP server

Yêu cầu

  • GITHUB_TOKEN environment variable (only if using the GitHub MCP server)

Cài đặt

clawhub install enderfga/claude-code-skill

Chạy lệnh CLI, hoặc dán prompt vào Claude Code, Cursor, Codex hay coding agent bạn đang dùng.

Liên kết