Troubleshooting
Diagnosing empty MCP configs, unregistered clients, SQLite locks, and role/permission incidents.
Common Diagnostics
Empty or zero-byte MCP config: Run devwf fleet doctor --json to detect malformed or empty mcp_config.json files and restore valid JSON pointing to node <REPO>/index.js.
Missing tools in agent session: Reconnect the MCP server in the client after runtime updates; inspect server stderr for Node >= 20 or dependency errors.
SQLite initialization errors: Ensure write permissions in the repository's .state/ directory and run devwf doctor.
Role/permission eligibility mismatches (generalized pattern): When an active user is missing from a downstream selector, verify account status (active vs soft-deleted), assigned roles, duplicate soft-deleted records, and permission-cache freshness before mutating roles or downstream records.