Diagnose Integration
diagnose_integrationCheck a project's Bridge configuration against the real app and return every concrete difference with its fix: wrong app id, a base URL pointing at another Bridge environment, a callback URL that is not a registered redirect URI, an origin that is not allowed, a missing variable the framework needs, an API key in a browser-bundled variable (VITE_*, NEXT_PUBLIC_*), and whether this environment serves its signing keys. Pass only the Bridge-related variables from the project's .env files. For any secret (BRIDGE_API_KEY or anything named *_KEY / *_SECRET) send a placeholder such as "" — never the real value; only its presence and placement are checked. bridge diagnose does the same from a shell and reads the .env files itself. get_environment_info lists the values each variable should hold; add_redirect_uri and update_app fix what it finds.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"env": "<env>"
},
"name": "diagnose_integration"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app | No | Id of the Bridge app to act on for this call (see list_apps). Omit to use the current app. | |
| env | Yes | The project's Bridge-related env vars, name → value, e.g. {"VITE_BRIDGE_APP_ID": "…", "VITE_BRIDGE_CALLBACK_URL": "http://localhost:5173/auth/callback"}. Secrets as "<set>", never their value. | |
| framework | No | The framework the project uses. Inferred from the variable names when omitted. |