Expand description
Is the bazaar (context) MCP server registered for the agent, with the OAuth client it needs?
The entry is found by its URL, not its name: bazaar’s own guide registers
it as visdom, other notes as bazaar. Whether the user is signed in is
not checked — the tokens live in the agent’s own store.
Constants§
- BAZAAR_
CLIENT_ ID - The pre-registered OAuth client of the bazaar MCP endpoint. Without it the agent tries Dynamic Client Registration, which the realm refuses.
- BAZAAR_
SERVER_ NAME - The name a new registration gets.
Functions§
- check
- is_
http_ url - Whether
rawis an absolute http(s) URL — which also means it cannot be mistaken for an option by the command it is handed to. - registered_
name - The name the bazaar at
urlis registered under for the agent started inworkdir, when it is registered and not switched off. This is what the agent will have, whatevervisdomwould rather see (the OAuth client, the scope): those are the check’s findings. - resolve_
bazaar_ url - The bazaar MCP endpoint:
VISDOM_BAZAAR_URL, then the user config, then what the tracing server publishes (suite).Ok(None)when none of them knows it;Errwith the reason when the server could not be asked. - same_
bazaar - Whether two URLs name the same bazaar developer endpoint: same scheme, host
and port, and each path one of
/mcp/remoteand its alias/mcp.