MCP-oriented scope naming conventions.
These helpers are deliberately small string builders. They do not decide which principal is allowed to hold a scope, and they do not require a server to use this catalog. The host authorization server remains responsible for issuing scopes and the host MCP server remains responsible for selecting which scopes protect each operation.
Summary
Functions
The default generic MCP scope conventions.
Scope convention for reading MCP prompts.
Scope convention for reading MCP resources.
Prefix the generic scope suffix with a server-specific namespace.
Scope convention for invoking MCP tools.
Scope convention for listing or reading MCP tool definitions.
Functions
@spec all() :: [String.t()]
The default generic MCP scope conventions.
@spec prompts_read() :: String.t()
Scope convention for reading MCP prompts.
@spec resources_read() :: String.t()
Scope convention for reading MCP resources.
Prefix the generic scope suffix with a server-specific namespace.
iex> AttestoMCP.Scopes.server("search", :tools_call)
"search:mcp:tools:call"
@spec tools_call() :: String.t()
Scope convention for invoking MCP tools.
@spec tools_read() :: String.t()
Scope convention for listing or reading MCP tool definitions.