Skip to content

Normalize MCP lifecycle events#101

Open
Genmin wants to merge 1 commit into
OWASP:mainfrom
Genmin:fix/mcp-event-normalization
Open

Normalize MCP lifecycle events#101
Genmin wants to merge 1 commit into
OWASP:mainfrom
Genmin:fix/mcp-event-normalization

Conversation

@Genmin
Copy link
Copy Markdown

@Genmin Genmin commented May 11, 2026

Summary

  • adds MCP lifecycle event normalization helpers for resource reads, prompt gets, tool results, and policy decisions
  • wires normalized mcp_events into MCP workflow trace construction while preserving existing events behavior
  • carries server-scoped metadata such as server_id, trust, transport, server identity, protocol version, canonical MCP tool names, and policy decisions
  • documents the normalized event shapes in both the MCP adapter design and trace format docs

Validation

  • python -m pytest tests/test_mcp_adapter.py -q
  • python -m pytest -q
  • python -m compileall -q src/agent_harness/mcp_adapter.py
  • git diff --check

Closes #97.

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.

Record MCP resource, prompt, tool, and policy lifecycle events

1 participant