MCP
FabHub MCP(@fabhub/mcp)は、API に裏打ちされたエージェントワークフローのための、固定された公開可能なツールセットを公開します。各ツールはちょうど 1 つのパブリック API スコープに対応し、汎用の HTTP プロキシは存在しません。
インストール
npx -y @fabhub/mcp
ローカル設定
{
"mcpServers": {
"fabhub": {
"command": "npx",
"args": ["-y", "@fabhub/mcp"],
"env": {
"FABHUB_API_KEY": "pk_test_example"
}
}
}
}
サーバーは、キーがスコープを持つツールのみをアドバタイズするため、エージェントが認証情報の権限を超えて呼び出すことは決してできません。
ツールの安全性
- 読み取り専用ツールは、認証情報が対応する読み取りスコープを持つ場合に利用できます。
- 書き込みツールには、対応する書き込みスコープと明示的な確認の入力が必要です。
- 破壊的ツールには、削除スコープと明示的な削除確認が必要です。
- ホスト型 HTTP モードはリクエストごとに認証情報を検証し、テナントキーを保存しません。
ツール
| ツール | スコープ | 安全性 |
|---|---|---|
list_items | items:read | read_only |
get_item | items:read | read_only |
list_item_ingredients | items:read | read_only |
list_item_suppliers | items:read | read_only |
create_item | items:write | write, requires confirmation |
update_item | items:write | write, requires confirmation |
delete_item | items:write | destructive, requires confirmation |
get_organization | organization:read | read_only |
list_orders | orders:read | read_only |
get_order | orders:read | read_only |
list_order_lines | orders:read | read_only |
create_order | orders:write | write, requires confirmation |
update_order | orders:write | write, requires confirmation |
list_contacts | contacts:read | read_only |
get_contact | contacts:read | read_only |
create_contact | contacts:write | write, requires confirmation |
update_contact | contacts:write | write, requires confirmation |
delete_contact | contacts:write | destructive, requires confirmation |
get_usage_summary | usage:read | read_only |
list_webhooks | webhooks:read | read_only |
get_webhook | webhooks:read | read_only |
create_webhook | webhooks:write | write, requires confirmation |
update_webhook | webhooks:write | write, requires confirmation |
delete_webhook | webhooks:delete | destructive, requires confirmation |
list_webhook_deliveries | webhooks:deliveries:read | read_only |
list_audit_events | audit:read | read_only |
list_stock_levels | inventory:read | read_only |
list_stock_documents | inventory:read | read_only |
get_stock_document | inventory:read | read_only |
list_stock_document_lines | inventory:read | read_only |
create_stock_document | inventory:write | write, requires confirmation |
update_stock_document | inventory:write | write, requires confirmation |
create_stock_document_line | inventory:write | write, requires confirmation |
update_stock_document_line | inventory:write | write, requires confirmation |
delete_stock_document | inventory:write | destructive, requires confirmation |
delete_stock_document_line | inventory:write | destructive, requires confirmation |
submit_stock_document | inventory:write | write, requires confirmation |
cancel_stock_document | inventory:write | write, requires confirmation |
approve_stock_document | inventory:write | destructive, requires confirmation |
create_item_ingredient | items:write | write, requires confirmation |
update_item_ingredient | items:write | write, requires confirmation |
delete_item_ingredient | items:write | destructive, requires confirmation |
create_item_supplier | items:write | write, requires confirmation |
update_item_supplier | items:write | write, requires confirmation |
delete_item_supplier | items:write | destructive, requires confirmation |