Skip to main content

Module bazaar

Module bazaar 

Source
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 raw is an absolute http(s) URL — which also means it cannot be mistaken for an option by the command it is handed to.
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; Err with 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/remote and its alias /mcp.