Skip to content
FunCoding

mcp-and-cluster-ops

Maintain and operate the 121-tool `aisp` MCP server, CLI/Engine/MCP parity, profiler explanation hooks, and cluster evaluation/promotion workflows (`aisp cluster common-eval`, `promote-run`, field reports). Use when adding or modifying MCP tools, fixing CLI/engine mismatches, updating `profile_insights`, or working in `code/mcp/`, `code/cli/`, or `code/cluster/`.

Star
2,269
License
Apache-2.0
Last commit
Dec 1, 2026

.agents/skills/mcp-and-cluster-ops/SKILL.md

View on GitHub

MCP Server, CLI Parity, and Cluster Operations

Use this skill when updating the aisp CLI, PerformanceEngine, MCP server tools, or cluster evaluation and publication packages.

MCP server and CLI/Engine parity

The MCP server (code/mcp/mcp_server.py), Typer CLI (code/cli/aisp.py), and unified Python engine (code/core/engine.py) share a single contract:

  • Keep PerformanceEngine.DOMAINS fixed to its 10 canonical domains. Expose helper integrations (such as engine.hf) without breaking test_interface_consistency.py.
  • Register MCP tools with explicit JSON schema descriptions for every property, no "default": None in JSON schemas, and accurate MCP annotations (readOnlyHint, destructiveHint, idempotentHint, openWorldHint).
  • Never leak secrets or raw credentials in tool errors or async job payloads. Route parameters and error text through redact_sensitive_data().
  • Run the MCP server via python -m mcp.mcp_server --serve or aisp mcp serve. Configure timeout overrides with AISP_MCP_REQUEST_TIMEOUT.
  • When updating core/profile_insights.py or automated profile_evaluation wiring in core/harness/run_benchmarks.py, verify both the per-variant profiling path and the best-only profiling path attach profile_evaluation, and guard classify_nsys_bottleneck against empty kernel name strings in sparse Nsight SQLite exports.
  • Whenever tool definitions, descriptions, or categories change, update code/tests/test_mcp_tools.py (CATEGORY_TOOLS), regenerate docs, and run the full MCP/CLI contract suite:
cd code
python -m scripts.generate_mcp_docs
python -m pytest -q \
  tests/test_mcp_tools.py \
  tests/test_mcp_docs.py \
  tests/test_review_mcp_protocol.py \
  tests/test_mcp_async_job_custody.py \
  tests/test_mcp_cli_cleanup.py \
  tests/test_interface_consistency.py \
  tests/test_engine_fail_fast.py \
  tests/test_cli_smoke.py

Cluster evaluation and promotion

Run cluster evaluations and promotion through the CLI:

cd code
python -m cli.aisp cluster common-eval --preset modern-llm --run-id <run_id>
python -m cli.aisp cluster common-eval --preset multinode-readiness --run-id <run_id>
python -m cli.aisp cluster promote-run --run-id <run_id>
  • Collect new runs under cluster/runs/<run_id>/ and publish validated packages into cluster/published/current/.
  • Validate every field report against its backing manifests and structured outputs before promotion. Never claim cluster numbers that are not backed by retained JSON and CSV artifacts.

Public identifier hygiene

This repository is public. Never commit live pod names, Kubernetes namespaces or contexts, internal hostnames, IP addresses, GPU UUIDs, organization IDs, or private workspace credentials. Use placeholders such as <gb300-pod> and <namespace>.

Similar Skills

ask-matt

MAmattpocock/skills337k4,217 new stars in the last 7 days

chief-of-staff

MAmattpocock/skills337k4,217 new stars in the last 7 days

setup-matt-pocock-skills

MAmattpocock/skills337k4,217 new stars in the last 7 days

subagent-driven-development

OBobra/superpowers331k5,030 new stars in the last 7 days

autonomous-loops

AFaffaan-m/ECC315k3,503 new stars in the last 7 days

autonomous-agent-harness

AFaffaan-m/ECC315k3,503 new stars in the last 7 days