Skip to content

Add get_version_info tool + CI workflow (v0.2.2)#2

Merged
KI7MT merged 1 commit into
mainfrom
feature/get-version-info
May 15, 2026
Merged

Add get_version_info tool + CI workflow (v0.2.2)#2
KI7MT merged 1 commit into
mainfrom
feature/get-version-info

Conversation

@KI7MT

@KI7MT KI7MT commented May 15, 2026

Copy link
Copy Markdown
Member

Summary

Fleet rollout per IONIS-AI/ionis-devel#49 — second server after solar-mcp (exemplar). Same diff shape as qso-graph/solar-mcp#1.

Response envelope

{
  "service_name":    "pota-mcp",
  "service_version": "0.2.2",
  "spec_version":    "pota-api-v1"
}

Changes

  • src/pota_mcp/__init__.py — add __spec_version__ Final constant
  • src/pota_mcp/server.py — add get_version_info tool + _version_info_payload helper
  • tests/test_tools.pyTestGetVersionInfo (POTA-L2-046 .. POTA-L2-050)
  • README.md — tool added to tools table
  • CHANGELOG.md — new file
  • .github/workflows/ci.yml — new PR-gating CI (matches solar-mcp template)
  • pyproject.toml — 0.2.1 → 0.2.2

Test plan

  • 45 existing + 5 new unit tests pass (pytest tests/test_tools.py)
  • 6 security tests pass
  • CI matrix green

Fleet rollout per IONIS-AI/ionis-devel#49 — second server after solar-mcp
(exemplar). Same diff shape as solar-mcp v0.2.1.

New tool returns the standardized envelope:

    {
      "service_name":    "pota-mcp",
      "service_version": "0.2.2",
      "spec_version":    "pota-api-v1"
    }

Changes:
- src/pota_mcp/__init__.py — add __spec_version__ Final constant, modernize
  to match adif/solar pattern
- src/pota_mcp/server.py — add get_version_info tool + _version_info_payload
  helper for direct test access
- tests/test_tools.py — TestGetVersionInfo class, 5 unit tests
  (POTA-L2-046 .. POTA-L2-050)
- README.md — tool added to tools table
- CHANGELOG.md — new, Keep a Changelog format
- .github/workflows/ci.yml — new, PR-gating CI (py3.10-3.13 matrix)
- pyproject.toml — bump 0.2.1 → 0.2.2

Test count: 45 unit + 5 new + 6 security = 50 tests, all green.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@KI7MT KI7MT merged commit c91e3b2 into main May 15, 2026
5 checks passed
@KI7MT KI7MT deleted the feature/get-version-info branch May 15, 2026 21:32
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