Skip to content

feat(client): migrate MCP endpoints from nhi/ai/... to agent-activity/...#187

Merged
amascia-gg merged 2 commits into
masterfrom
gmendy/NHI-1744/migrate-mcp-views-to-agent-activity
Jun 24, 2026
Merged

feat(client): migrate MCP endpoints from nhi/ai/... to agent-activity/...#187
amascia-gg merged 2 commits into
masterfrom
gmendy/NHI-1744/migrate-mcp-views-to-agent-activity

Conversation

@gmendy1

@gmendy1 gmendy1 commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Update the three MCP endpoint paths in `pygitguardian/client.py` following the server-side route migration (NHI-1744)
  • Update VCR cassettes to match the new URLs
  • Add changelog fragment

Old → new paths:

  • nhi/ai/discoveryagent-activity/discovery
  • nhi/ai/mcp-activityagent-activity/mcp-activity
  • nhi/ai/mcp-activity/bulkagent-activity/mcp-activity/bulk

Test plan

  • Existing VCR-based tests pass with updated cassettes
  • Changelog fragment present (changelog.d/)"

…/...

Update the three MCP route strings following the server-side migration
that moved MCPDiscoveryPublicView, MCPActivityPublicView, and
MCPActivityBulkPublicView to the agent_activity Django app (NHI-1744).

Old paths (kept as deprecated aliases on the server):
  nhi/ai/discovery
  nhi/ai/mcp-activity
  nhi/ai/mcp-activity/bulk

New canonical paths:
  agent-activity/discovery
  agent-activity/mcp-activity
  agent-activity/mcp-activity/bulk

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
@gmendy1
gmendy1 requested a review from a team as a code owner June 24, 2026 12:44
@linear

linear Bot commented Jun 24, 2026

Copy link
Copy Markdown

NHI-1744

@codecov-commenter

codecov-commenter commented Jun 24, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.82%. Comparing base (889652a) to head (63835f1).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #187   +/-   ##
=======================================
  Coverage   95.82%   95.82%           
=======================================
  Files           5        5           
  Lines        1484     1484           
=======================================
  Hits         1422     1422           
  Misses         62       62           
Flag Coverage Δ
unittests 95.82% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@gmendy1
gmendy1 marked this pull request as draft June 24, 2026 12:48
@gmendy1 gmendy1 self-assigned this Jun 24, 2026
@gmendy1
gmendy1 marked this pull request as ready for review June 24, 2026 13:26
Comment thread changelog.d/20260624_000000_gmendy_NHI-1744_migrate-mcp-routes.md Outdated
@gmendy1
gmendy1 requested a review from amascia-gg June 24, 2026 13:42
@amascia-gg
amascia-gg enabled auto-merge June 24, 2026 14:20
@amascia-gg
amascia-gg merged commit 8ee4ab1 into master Jun 24, 2026
19 checks passed
@amascia-gg
amascia-gg deleted the gmendy/NHI-1744/migrate-mcp-views-to-agent-activity branch June 24, 2026 14:39
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.

4 participants