Skip to content

Conversation

@bokelley
Copy link
Contributor

Added print() to stderr at every step of header extraction in get_principal_from_context() to diagnose why tenant detection is failing for Test Agent MCP calls.

This will show exactly where the header extraction fails:

  • Whether get_http_headers() returns headers
  • Whether context fallback is triggered
  • What context attributes are available
  • Whether context.meta["headers"] has data

Test Agent MCP continues to fail (0/8 successful runs).

Related: #592

Added print() to stderr at every step of header extraction in
get_principal_from_context() to diagnose why tenant detection is
failing for Test Agent MCP calls.

This will show exactly where the header extraction fails:
- Whether get_http_headers() returns headers
- Whether context fallback is triggered
- What context attributes are available
- Whether context.meta["headers"] has data

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@bokelley bokelley merged commit 3504ef0 into main Oct 24, 2025
2 checks passed
danf-newton pushed a commit to Newton-Research-Inc/salesagent that referenced this pull request Nov 24, 2025
…ontextprotocol#594)

Added print() to stderr at every step of header extraction in
get_principal_from_context() to diagnose why tenant detection is
failing for Test Agent MCP calls.

This will show exactly where the header extraction fails:
- Whether get_http_headers() returns headers
- Whether context fallback is triggered
- What context attributes are available
- Whether context.meta["headers"] has data

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude <noreply@anthropic.com>
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.

2 participants