fastmcp-client-cli
Fungsinya
Skill ini memakai perintah fastmcp untuk menjelajahi dan menjalankan alat di server MCP. Skill ini untuk orang yang ingin memeriksa apa yang bisa dilakukan sebuah server atau memakai alatnya di dalam skrip.
Kapan dipakai
- βSaat Anda ingin melihat alat apa saja yang ditawarkan server MCP sebelum memakainya.
- βSaat Anda perlu memanggil alat MCP dari baris perintah atau di dalam alur kerja.
- βSaat Anda ingin output JSON yang dapat dibaca mesin dari server MCP untuk sebuah skrip.
Link skill
https://github.com/PrefectHQ/fastmcp/blob/main/docs/.mintlify/skills/fastmcp-client-cli/SKILL.mdSalin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.
Cara pakai
Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.
Pesan siap tempel
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
βAlat apa saja yang ditawarkan server MCP lokal saya, dan bisakah Anda memanggil alat pencarian dengan kueri hello?β
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Agent menjalankan fastmcp list untuk menampilkan alat server beserta signature-nya, lalu fastmcp call dengan argumen yang otomatis dikonversi ke tipe yang tepat.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.
FastMCP CLI: List and Call
Use fastmcp list and fastmcp call to interact with any MCP server from the command line.
Listing Tools
# Remote server
fastmcp list http://localhost:8000/mcp
# Local Python file (runs via fastmcp run automatically)
fastmcp list server.py
# MCPConfig with multiple servers
fastmcp list mcp.json
# Stdio command (npx, uvx, etc.)
fastmcp list --command 'npx -y @modelcontextprotocol/server-github'
# Include full input/output schemas
fastmcp list server.py --input-schema --output-schema
# Machine-readable JSON
fastmcp list server.py --json
# Include resources and prompts
fastmcp list server.py --resources --prompts
Default output shows tool signatures and descriptions. Use --input-schema or --output-schema to include full JSON schemas, --json for structured output.
Calling Tools
# Key=value arguments (auto-coerced to correct types)
fastmcp call server.py greet name=World
fastmcp call server.py add a=3 b=4
# Single JSON object for complex/nested args
fastmcp call server.py create_item '{"name": "Widget", "tags": ["a", "b"]}'
# --input-json with key=value overrides
fastmcp call server.py search --input-json '{"query": "hello", "limit": 5}' limit=10
# JSON output for scripting
fastmcp call server.py add a=3 b=4 --json
Type coercion is automatic: limit=5 becomes an integer, verbose=true becomes a boolean, based on the tool's input schema.
Server Targets
All commands accept the same server targets:
| Target | Example |
|---|---|
| HTTP/HTTPS URL | http://localhost:8000/mcp |
| Python file | server.py |
| MCPConfig JSON | mcp.json (must have mcpServers key) |
| Stdio command | --command 'npx -y @mcp/server' |
| Discovered name | weather or source:name |
Servers configured in editor configs (Claude Desktop, Claude Code, Cursor, Gemini CLI, Goose) or project-level mcp.json can be referenced by name. Use source:name (e.g. claude-code:my-server, cursor:weather) to target a specific source. Run fastmcp discover to see available names.
For SSE servers, pass --transport sse:
fastmcp list http://localhost:8000/mcp --transport sse
Auth
HTTP targets automatically use OAuth (no-ops if the server doesn't require auth). Disable with --auth none:
fastmcp call http://server/mcp tool --auth none
Discovering Configured Servers
# See all MCP servers in editor/project configs
fastmcp discover
# Filter by source
fastmcp discover --source claude-code
# JSON output
fastmcp discover --json
Scans Claude Desktop, Claude Code, Cursor, Gemini CLI, Goose, and ./mcp.json. Sources: claude-desktop, claude-code, cursor, gemini, goose, project.
Workflow Pattern
Discover tools first, then call them:
# 1. See what servers are configured
fastmcp discover
# 2. See what tools a server has
fastmcp list weather
# 3. Call a tool
fastmcp call weather get_forecast city=London
If you call a nonexistent tool, FastMCP suggests close matches.
Pertanyaan umum
Jenis server apa yang didukung?
Skill bekerja dengan server jarak jauh di sebuah URL, berkas Python lokal, berkas konfigurasi dengan beberapa server, dan perintah yang menjalankan server.
Apakah saya harus memformat argumen sebagai JSON?
Tidak. Argumen sederhana key=value berfungsi, dan nilainya dikonversi ke tipe yang benar secara otomatis.
Bisakah saya melihat skema lengkapnya?
Ya. Menambahkan opsi skema input dan output menyertakan skema JSON lengkap dalam daftar.
Detail
Deskripsi asli dari pembuat
Query and invoke tools on MCP servers using fastmcp list and fastmcp call. Use when you need to discover what tools a server offers, call tools, or integrate MCP servers into workflows.
repo: PrefectHQ/fastmcp
Popularitas
- Bintang GitHub
- 28k
- Peringkat
- #9866
- Lisensi
- Apache-2.0
- Diperbarui
- 2/11/2026
Komentar
- β¦
Skill lain dari repositori ini
Skill serupa
mcporter
394kMembantu agent Anda mendaftar, memanggil, dan memeriksa server MCP beserta alatnya lewat HTTP atau stdio, serta mengatur pengaturan login mereka.
fastmcp
260kMembantu Anda membangun, menguji, dan menerapkan server MCP Python yang memberi asisten AI akses ke API, basis data, atau file Anda sebagai alat.
mcp-oauth-remote-gateway
260kMemandu Anda masuk dengan OAuth untuk server MCP jarak jauh saat Hermes berjalan di server, di mana proses masuk browser biasa tidak dapat menjangkaunya.