Skip to content

feat: results-inspector MCP server — mirrored core + lens layer#75

Merged
Jammy2211 merged 1 commit into
mainfrom
feature/results-inspector-mcp
Jul 17, 2026
Merged

feat: results-inspector MCP server — mirrored core + lens layer#75
Jammy2211 merged 1 commit into
mainfrom
feature/results-inspector-mcp

Conversation

@Jammy2211

Copy link
Copy Markdown
Collaborator

Summary

Adds the read-only results-inspector MCP server, lens edition (autoassistant/mcp/): the core tools are byte-identical mirrors of autofit_assistant:autoassistant/mcp/ (tools.py, __main__.pydiff them when syncing; graduation to an autofit[mcp] extra is the recorded de-dup path), plus this repo's own lens layer — extract/combine named subplot panels and FITS HDUs across every fit in a directory via the al.agg enum groups. Phase 2 of PyAutoLabs/autofit_assistant#12.

Lens tools: list_extractable_images (the al.agg groups/names as "group.name" specs), combine_lens_images (af.AggregateImages, rendered inline in chat), extract_lens_fits (af.AggregateFITS, written only to an explicit destination outside the output directory).

Scripts Changed

  • autoassistant/mcp/tools.py, autoassistant/mcp/__main__.py — byte-identical mirrors of the autofit_assistant core
  • autoassistant/mcp/lens_tools.py — the lens layer: string-spec resolver over al.agg enums + AggregateImages/AggregateFITS wrappers
  • autoassistant/mcp/server.py — mirrored core registrations + the 3 lens tools (10 tools total)
  • autoassistant/tests/test_mcp_tools.py — mirrored core tests + lens tests; fixture runs a real tiny fit, then plants a subplot-grid png (named via subplot_filename) and a fit.fits with FITSFit HDUs (10 tests)
  • skills/al_inspect_results_mcp.md — new skill (tool table, client config, deployment tiers, mirror/sync rules); registered in skills/README.md + .claude/skills/ symlink
  • skills/al_setup_environment.md — one-line pip install mcp note
  • autoassistant/audit_skill_apis.pyautoassistant/mcp/*.py joins the symbol-audit scan
  • .mcp.json — Claude Code registration

Test Plan

  • autoassistant/tests/ — 62 passed (includes the 10 new MCP tests)
  • audit_skill_apis.py --scope all — 0 missing/broken (mcp files scanned)
  • End-to-end stdio smoke via an MCP client session: 10 tools listed, lens calls green
  • Claude Desktop walkthrough (acceptance): combine data/model/residual panels across fits inline

Generated by the PyAutoLabs agent workflow.

Mirrors the autofit_assistant MCP core byte-identically (tools.py,
__main__.py) and adds the lens layer: al.agg enum resolution for
combine_lens_images (AggregateImages) and extract_lens_fits
(AggregateFITS), 10 tools total. Includes the al_inspect_results_mcp
skill, .mcp.json, audit-sweep wiring and fixture tests. Phase 2 of
PyAutoLabs/autofit_assistant#12.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@Jammy2211
Jammy2211 merged commit 5976fe9 into main Jul 17, 2026
1 check passed
@Jammy2211
Jammy2211 deleted the feature/results-inspector-mcp branch July 17, 2026 08:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant