feat(shadow-ai): Shadow AI Discovery integration#10
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
integrations/shadow-ai/integration: detects unregistered agents and undeclared tool calls against a cMCPcatalog.jsonDiscoveryEventobjects withagent_id,tool_name,reason(unregistered_agent|undeclared_tool), and asuggested_manifest_idready for Agent Manifest registration{"agents": [...]}and flat{"agent-id": ["tool"]}catalog formatsintegration.yamlvalidates againstschema/integration.schema.json(flat format, not apiVersion/kind)Test plan
python -m pytest integrations/shadow-ai/tests/ -v→ 9 passedreason = unregistered_agentreason = undeclared_toolsuggested_manifest_idsanitises special chars to lowercase alphanum + hyphenstool_name) are skippedscan_audit_logreads JSONL file correctlyto_dict()returns all required fieldsCloses #9
🤖 Generated with Claude Code