Skip to content

feat: remove MCP support and drop the mcp dependency - #146

Merged
codeasier merged 1 commit into
mainfrom
issue-137-remove-mcp
Sep 18, 2026
Merged

codeasier merged 1 commit into
mainfrom
issue-137-remove-mcp

Conversation

@codeasier

Copy link
Copy Markdown
Owner

📝 Description

Remove the MCP product surface as a 0.x breaking change: delete src/pt_snap_cli/mcp/, the pt-snap-mcp entry point, and the core mcp dependency. Agent integration is skills + CLI only. SnapshotAnalyzer is unchanged (get_template_info() still returns None for missing templates; execute_query() still defaults to max_rows=None).

CLI/API contract tests are rewritten as tests/test_contract_cli_api.py (not deleted), covering focus/callstack_layout, template list/info/choices, leak_detection, v1 inline callstack, missing focus/template (CLI exit 1), unknown params, illegal choices, and metadata JSON.

🔗 Related Issue

Fixes #137

🧪 Testing

  • Tests added/updated

  • Manual testing completed

  • pytest tests/test_contract_cli_api.py tests/test_package.py tests/test_governance.py tests/test_api.py tests/test_snapshot_analyzer_cache.py tests/test_query_cache_perf.py tests/test_release_workflow.py

  • Full suite: 898 passed, 1 xfailed

  • ruff check . and basedpyright (0 errors)

  • Clean wheel install in a fresh venv: console script is only pt-snap; freeze has no mcp / starlette / uvicorn; pt-snap --help and SnapshotAnalyzer work

✅ Checklist

  • Code follows project guidelines
  • Documentation updated (if applicable)
  • No new warnings introduced
  • Changes tested locally

Snapshot Runtime Provenance

  • Snapshot provenance evaluation completed when snapshot runtime files change
    Snapshot provenance decision: no-update
    Snapshot provenance no-update reason: This PR does not change src/pt_snap_cli/snapshot/**; it only removes the MCP adapter, packaging, docs, and CLI/API contract tests.

📋 Additional Notes

CHANGELOG records this as 0.4.0 Unreleased. Historical MCP changelog entries are kept. setuptools-scm remains 0.3.0.post1.devN until v0.4.0 is tagged.

Close the MCP product surface so default installs no longer pull mcp,
starlette, or uvicorn. Keep SnapshotAnalyzer and rewrite the CLI/API
contract tests without changing API defaults.
@codeasier
codeasier merged commit 85cad09 into main Sep 18, 2026
6 checks passed
@codeasier
codeasier deleted the issue-137-remove-mcp branch October 3, 2026 19:18
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.

[FEATURE] 移除 MCP 支持,剥离 mcp 依赖

1 participant