skills/mcp-federation-ops/claude/SKILL.md
Build, inspect, call, and operate FastMCP servers and the mcporter CLI across federation organs.
npx skillsauth add ariffazil/openclaw-workspace MCP Federation OperationsInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Operate the federation's Model Context Protocol (MCP) surface: build FastMCP servers in Python, inspect and call tools via the fastmcp and mcporter CLIs, and route requests across arifOS, GEOX, WEALTH, WELL, and A-FORGE. This skill covers both construction (scaffold → implement → test → run) and runtime operations (discovery → health → direct tool calls).
Before using this skill on any mutating, irreversible, or high-blast-radius task:
fastmcp-deploy or site-architecture skills and arifOS judgment.arifos-untrusted-sandbox skill.arifos-act and escalate to health triage.| Input | Required | Description |
|-------|----------|-------------|
| server_module | yes for build | Python file exposing a FastMCP instance, e.g. my_server.py:mcp |
| server_name | yes for ops | Federation server alias or HTTP endpoint, e.g. geox, arifOS |
| tool_name | yes for calls | Canonical {service}_{action}_{resource} tool name |
| arguments | yes for calls | Key=value pairs, JSON blob, or function-style args |
| transport | no | streamable_http (federation default), stdio, or http |
# FastMCP CLI + library
uv add "fastmcp[tasks]==3.4.2" # in a federation repo
pip install --break-system-packages "fastmcp[tasks]==3.4.2" # system-wide
fastmcp --version # expect 3.4.2
# mcporter is pre-installed on af-forge
mcporter --version # /usr/bin/mcporter v0.9.0
# Scaffold from template
fastmcp scaffold --template api_wrapper --name "My API" --output ./my_server.py
Implement tools following federation conventions:
from fastmcp import FastMCP
from pydantic import BaseModel
mcp = FastMCP("my-server")
class CustomerOutput(BaseModel):
id: str
name: str
segment: str
confidence: float
@mcp.tool()
def get_customer(customer_id: str) -> CustomerOutput:
"""Fetch customer by ID with confidence score."""
...
fastmcp inspect my_server.py:mcp
fastmcp list my_server.py:mcp --json
fastmcp call my_server.py:mcp get_customer customer_id=cust_123 --json
fastmcp run my_server.py:mcp --transport streamable_http --host 127.0.0.1 --port 8000
mcporter list # all known servers
mcporter list arifOS --schema # tools + schemas
mcporter list --http-url http://localhost:8081/mcp --name geox # ad-hoc
mcporter list --stdio "npx -y @modelcontextprotocol/server-filesystem" --name fs
# Key=value syntax
mcporter call arifOS.arif_ops_measure mode=health
mcporter call geox.geox_well_analyze_log well_id=MAHA-1 depth_top=1500 --output json
# JSON args
mcporter call geox.geox_well_analyze_log --args '{"well_id": "MAHA-1", "depth_top": 1500}'
# Function syntax
mcporter call "geox.geox_prospect_evaluate(well_id='MAHA-1')"
curl -sf http://localhost:8088/health | python3 -m json.tool # arifOS
curl -sf http://localhost:8081/health # GEOX
curl -sf http://localhost:18082/health # WEALTH
curl -sf http://localhost:18083/health # WELL
curl -sf http://localhost:7071/health # A-FORGE
mcporter daemon start
mcporter daemon status
mcporter daemon stop
mcporter config list
mcporter auth <server>
mcporter generate-cli --server geox
mcporter emit-ts <server> --mode client
| Tool / Capability | Purpose |
|-------------------|---------|
| fastmcp CLI | Scaffold, inspect, list, call, and run FastMCP servers |
| mcporter CLI | Discover and call MCP servers; daemon, auth, config, codegen |
| curl / python3 -m json.tool | Health probes and raw JSON-RPC checks |
| uv / pip | Install FastMCP in repo or system context |
0.0.0.0 in production; bind to 127.0.0.1 and let Caddy terminate TLS.fastmcp inspect before wiring a new server into a client.## Skill Result: mcp-federation-ops
### Summary
One-paragraph summary of what was built, inspected, or called.
### Evidence
- Server/tool inspected: <name>
- Health status: <OK / DEGRADED / DOWN>
- Sample call result: <short JSON or summary>
- Schema compliance: <pass / fail / notes>
### Recommendations
- Next step (e.g., deploy, fix, escalate)
- Any drift or version mismatch found
### Escalations
- None / <list>
| Condition | Escalate To | Method | |-----------|-------------|--------| | Mutating action on live organ | arifOS 888_JUDGE | A2A / MCP verdict_request | | Secret exposure in config or code | security.agent + arifOS judge | A2A message | | Federation organ degraded/down | A-FORGE + service-health-triage skill | health probe + incident channel | | Production deployment needed | arifOS 888_JUDGE + human (F13) | 888 HOLD | | Tool call returns unexpected authority/scope | arifOS 888_JUDGE | hold with evidence |
Skill synthesized from: .claude/skills/mcp-ops.md, .codex/skills/fastmcp.md, .codex/skills/mcporter.md
AAA Skill Library — version 1.0.0
development
Federation-wide gold (XAUUSD) trading capability. Python stack, OANDA broker, backtesting, macro signals, RSI strategy. Every organ has a role.
development
Capital claim state management — tracks claim lifecycle across WEALTH organ.
development
Archived constitutional warga placeholder retained only for audit provenance. Do not use for active work; use the live arifOS governance and constitutional skills instead.
testing
Warga (citizen) agent skills for AAA federation members. See subdirectories for specialized warga skills.