Skip to content

feat(shadow-ai): Shadow AI Discovery integration#10

Merged
imran-siddique merged 1 commit into
mainfrom
feat/shadow-ai-discovery
Jun 25, 2026
Merged

feat(shadow-ai): Shadow AI Discovery integration#10
imran-siddique merged 1 commit into
mainfrom
feat/shadow-ai-discovery

Conversation

@imran-siddique

Copy link
Copy Markdown
Contributor

Summary

  • Adds integrations/shadow-ai/ integration: detects unregistered agents and undeclared tool calls against a cMCP catalog.json
  • Emits DiscoveryEvent objects with agent_id, tool_name, reason (unregistered_agent | undeclared_tool), and a suggested_manifest_id ready for Agent Manifest registration
  • Supports both {"agents": [...]} and flat {"agent-id": ["tool"]} catalog formats
  • integration.yaml validates against schema/integration.schema.json (flat format, not apiVersion/kind)

Test plan

  • python -m pytest integrations/shadow-ai/tests/ -v → 9 passed
  • Clean call (registered agent + declared tool) produces no event
  • Unregistered agent → reason = unregistered_agent
  • Registered agent + undeclared tool → reason = undeclared_tool
  • suggested_manifest_id sanitises special chars to lowercase alphanum + hyphens
  • Non-tool-call log records (no tool_name) are skipped
  • scan_audit_log reads JSONL file correctly
  • Flat catalog format parsed correctly
  • Multiple violations in one log all captured
  • to_dict() returns all required fields

Closes #9

🤖 Generated with Claude Code

Detects unregistered agents making MCP tool calls not declared in a
cMCP catalog.json, emitting DiscoveryEvents with suggested Agent Manifest
IDs for operator remediation or quarantine.

Closes #9

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@imran-siddique imran-siddique merged commit 70b1dec into main Jun 25, 2026
3 checks passed
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.

feat: add Shadow AI Discovery integration pairing AGT with cmcp catalog

1 participant