Skip to main content

mcp.proto

path agntcy/identity/core/v1alpha1/mcp.proto

package agntcy.identity.core.v1alpha1


Messages​

McpResource​

McpResource represents a resource available on the MCP server. This can be a file, a database, or any other type of resource.

NameTypeDescription
nameoptional stringName of the resource.
descriptionoptional stringDescription of the resource.
urioptional stringURI of the resource.

McpServer​

McpServer represents an MCP server that provides a set of tools and resources The server needs to be deployed at a specific URL

NameTypeDescription
nameoptional stringName of the server.
urloptional stringUrl of the deployed server.
toolsrepeated McpToolThe tools available on the server.
resourcesrepeated McpResourceThe resources available on the server.

McpTool​

McpTool represents a tool available on the MCP server. This can be a function with name, description, and parameters.

NameTypeDescription
nameoptional stringName of the tool.
descriptionoptional stringDescription of the tool.
parametersoptional google.protobuf.StructParameters of the tool. This is a JSON object that describes the parameters
oauth2_metadataoptional Oauth2MetadataOauth2 Protected Resource metadata. This will correspond to a resource on the server. Or can be specified or overridden by the auth policies. This complies with RFC 9728.

Oauth2Metadata​

Oauth2Metadata represents the OAuth2 metadata for a protected resource. This complies with RFC 9728.

NameTypeDescription
resourceoptional stringThe resource identifier.
authorization_serversoptional stringAuthorization servers for the OAuth2 server. This is a list of strings, such as "https://example.com/oauth2/authorize".
bearer_methods_supportedrepeated stringBearer methods supported This is a list of strings, such as "client_credentials" or "authorization_code".
scopes_supportedrepeated stringScopes supported This is a list of strings, such as "openid" or "profile".