muvid.mcp.identity¶
Caller identity for the muvid MCP tools — resolved from the OAuth token, fail-closed.
A hosted connector is multi-user: every tool must place work under the verified
caller, never a shared/ambient identity. muvid’s tools resolve the caller via
current_email(), which reads the fastmcp request’s access token — so they work
under ANY host middleware, including the shared enlace_metering.MeteringMiddleware
the unified reelee connector installs (thorwhalen/reelee#232), which keys its own
context var. There is no fallback beyond the token: an unauthenticated call is
failed closed. Mirrors braidio.mcp.metering.token_email/current_email.
Functions
The caller's identity for the in-flight tool call (raises if unauthenticated). |
|
The verified caller's email from the OAuth token ( |
|
|
Bind the caller identity for the duration of the block (local/stdio/testing). |
- muvid.mcp.identity.current_email()[source]¶
The caller’s identity for the in-flight tool call (raises if unauthenticated).
Resolves from the explicit
use_email()override when present (local/stdio/ tests), else the verified OAuth token — so tools work under any host middleware, and an unauthenticated call is failed closed.- Return type: