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

mcp-client

bởi nantes

Clawdbot Tools
632Lượt tải do clawskills.sh công bố
0Lượ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

Model Context Protocol (MCP) client - connect to tools, data sources and services.

Mô tả

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

A Model Context Protocol (MCP) client that connects to MCP-enabled servers to invoke tools, read resources, and access prompt templates. Available as both a PowerShell script and a Python library.

Handles the MCP HTTP protocol handshake and request formatting so you don't have to write raw REST calls against the spec yourself.

Khi nào nên dùng

  • Calling a search tool on a remote MCP server with custom query arguments
  • Reading a config file from a server-side file:// resource URI
  • Listing all tools exposed by an MCP server before wiring them into an agent
  • Using structured prompt templates served by an MCP-enabled service
  • Scripting MCP tool calls from a Python automation pipeline

Quy trình ví dụ

ĐẦU VÀO

User asks: call the 'search' tool on my MCP server at https://mcp-server.com with query 'quantum'

AGENT
  1. 1

    Connect to the MCP server using the server URL and API key

  2. 2

    List available tools to confirm 'search' is exposed

  3. 3

    Invoke the 'search' tool with argument {"query": "quantum"}

  4. 4

    Receive and return the tool response

ĐẦU RA

Search results returned by the MCP server's 'search' tool

Cài đặt

clawhub install nantes/mcp-client

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