Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add commands/vishnu2kmohan/mcp-server-langgraph/debug-authgit clone --depth 1 https://github.com/vishnu2kmohan/mcp-server-langgraphWhat it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00008 | $0.00554 |
| Opus 5 | $0.00004 | $0.00277 |
| Sonnet 5 | $0.00002 | $0.00111 |
| Haiku 4.5 | $0.00001 | $0.00055 |
Grade A, and why
debug-auth scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 98 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Debug Authentication Issues
Comprehensive authentication and authorization debugging workflow.
Debug Steps
-
Check Infrastructure Status
make health-checkVerify:
- OpenFGA is running (port 8080)
- Redis is running (port 6379)
- Keycloak is running (port 8081)
- PostgreSQL is running (port 5432)
-
Test OpenFGA Authorization
make test-authRuns example OpenFGA usage script to verify:
- Connection to OpenFGA
- Permission checks
- Tuple writes and reads
-
Review Authentication Logs
Quick log access:
make logs-follow # Follow all logs make logs-agent # Agent logs onlyFilter for auth issues:
docker compose logs -f --tail=100 | grep -i "auth\|jwt\|token" -
Check Session Management
- Verify Redis connection
- Check session store configuration
- Review session metrics
-
Validate OpenFGA Configuration
- Check OPENFGA_STORE_ID in .env
- Check OPENFGA_MODEL_ID in .env
- Verify authorization model is loaded
Common Issues
Issue: JWT Token Validation Fails
- Check JWT_SECRET_KEY is set correctly
- Verify token expiration settings
- Check for clock skew between services
Issue: OpenFGA Permission Denied
- Verify tuples are written correctly
- Check user-role-resource relationships
- Review role mappings in config/role_mappings.yaml
Issue: Session Not Found
- Check Redis connectivity
- Verify session TTL settings
- Review session store backend configuration
Interactive Debugging
Web UIs
- OpenFGA Playground: http://localhost:3001
- Prometheus Metrics: http://localhost:9090 (search for auth_* metrics)
- Grafana Dashboards: http://localhost:3000 (Authentication dashboard)
Quick access:
make prometheus-ui # Opens Prometheus
make jaeger-ui # Opens Jaeger (for tracing)
Component Logs
View specific component logs:
make logs-prometheus # Prometheus logs
make logs-grafana # Grafana logs
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2d ago First seen · 98 lines · 8 tokens per session scan A 089e7508ee32
debug-auth is a command published in the GitHub repository vishnu2kmohan/mcp-server-langgraph (4 stars, last pushed 9d ago), licensed MIT. It adds 8 tokens to every session and 554 once invoked, about $0.0000 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other commands, from other repositories
hal-voice-toggle
Toggle HAL 9000 voice clips on or off.
OPSX: Propose
Propose a new change - create it and generate all artifacts in one step.
bmad
Complete BMAD voice integration - assigns unique voices to each BMAD agent AND makes them speak when activated.
self-improve
Bootstrap and operate a self-improving agent workspace. Scaffolds .learnings/ and memory/ directories, captures errors and learnings during a session, detects recurring patterns, and promotes stable entries to project memory (CLAUDE.md, AGENTS.md, or references/). Also implements the Proactive Agent pillars — WAL…
deps-age
Analyze dependency freshness and maintenance activity.
deps-check
Check latest versions for Maven/Gradle dependencies.