Skip to content

Fix GHL debug config auth lookup - #6

Merged
groksrc merged 1 commit into
mainfrom
agent/fix-ghl-debug-config
Jul 8, 2026
Merged

Fix GHL debug config auth lookup#6
groksrc merged 1 commit into
mainfrom
agent/fix-ghl-debug-config

Conversation

@groksrc

@groksrc groksrc commented Jul 8, 2026

Copy link
Copy Markdown
Member

Summary

Fix debug_config so it resolves the registered OAuth service before reading auth settings. The opportunity tools register a getter (lambda: oauth_service) rather than the service object itself, so the health-check tool was failing with 'function' object has no attribute 'settings' when called through MCP.

Impact

  • Restores the debug_config MCP health-check tool.
  • Keeps the existing registration style and normal GHL tool behavior unchanged.
  • Leaves unrelated local untracked recon scripts out of the PR.

Validation

  • uv run pytest tests/test_mcp_mode_startup.py tests/test_mcp_endpoints.py

@groksrc
groksrc marked this pull request as ready for review July 8, 2026 16:49
@groksrc
groksrc merged commit f2c624c into main Jul 8, 2026
2 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.

1 participant