roboto.ai.mcp.record
Module Contents
McpServerOrgContextRecord
Bases: pydantic.BaseModel
Per-org context for an MCP server.
Org admins set this plaintext to provide the AI with org-specific instructions about how the server should be used (e.g., which repos, project names, conventions).
Parameters
data AnyAttributes
McpServerOrgContextRecord.created
McpServerOrgContextRecord.created_by
McpServerOrgContextRecord.modified
McpServerOrgContextRecord.modified_by
McpServerOrgCredentialRecord
Bases: pydantic.BaseModel
An org-wide bearer token for an MCP server.
AI chat calls the server with this token for org members who have no working OAuth connection of their own to it, and for service users (non-human callers, such as agents launched by triggers). The record names the org secret that holds the token and never contains the token itself.
Parameters
data AnyAttributes
McpServerOrgCredentialRecord.created
Timestamp when an org admin first set an org token for this server.
McpServerOrgCredentialRecord.created_by
User who first set an org token for this server.
McpServerOrgCredentialRecord.modified
Timestamp when an org admin last chose the secret. Changing the secret’s value does not update it.
McpServerOrgCredentialRecord.secret_name
Name of the org secret holding the token. Calls to the server send its value as Authorization: Bearer <token>.
McpServerRecord
Bases: pydantic.BaseModel
A registered external MCP server. May be global or scoped to specific orgs.
Parameters
data AnyAttributes
McpServerRecord.allowed_tools
Map of tool name to enabled flag. None = not yet configured (auto-populates on first discovery). Keys are all known tools from the server; True = allowed, False = blocked.
McpServerRecord.display_name
User-friendly display name (e.g., ‘GitHub’, ‘GitLab’).
McpServerRecord.extra_auth_params
Extra query parameters appended to the OAuth authorization URL (e.g. audience for Atlassian).
McpServerRecord.modified
Timestamp when this server record was last modified.
McpServerRecord.oauth_issuer_url
OAuth2 authorization server URL for this MCP server.
McpServerRecord.org_ids
Org IDs this server is scoped to. Empty = global (visible to all orgs).
McpServerRecord.registration_mode
How this server was registered: ‘dcr’ or ‘manual’.
McpServerStatus
Bases: roboto.compat.StrEnum
Status of a registered MCP server.
Attributes
McpServerStatus.PENDING_SETUP
Server registration is in progress (e.g., awaiting Dynamic Client Registration).
McpTokenRecord
Bases: pydantic.BaseModel
Per-user, per-org OAuth token metadata for an MCP server.
Token values (access_token, refresh_token) are never exposed — this record contains only status metadata for display in the UI.
Parameters
data AnyAttributes
McpTokenRecord.expires_at
When the access token expires, if known.
McpTokenRecord.modified
Timestamp when this token was last refreshed or modified.
McpTokenStatus
Bases: roboto.compat.StrEnum
Status of a user’s OAuth token for an MCP server.
Attributes
McpToolInfo
Bases: pydantic.BaseModel
Describes a tool discovered from a remote MCP server.
Parameters
data AnyAttributes
McpToolInfo.input_schema
JSON Schema describing the tool’s input parameters.