MCPcopy Index your code
hub / github.com/github/copilot-sdk / MCPGrantType

Class MCPGrantType

python/copilot/generated/rpc.py:2972–2981  ·  view source on GitHub ↗

OAuth grant type to use when authenticating to the remote MCP server. OAuth grant type override for this login. Optional OAuth grant type override for this login. Defaults to the server configuration, or authorization_code when no grant type is specified.

Source from the content-addressed store, hash-verified

2970
2971# Experimental: this type is part of an experimental API and may change or be removed.
2972class MCPGrantType(Enum):
2973 """OAuth grant type to use when authenticating to the remote MCP server.
2974
2975 OAuth grant type override for this login.
2976
2977 Optional OAuth grant type override for this login. Defaults to the server configuration,
2978 or authorization_code when no grant type is specified.
2979 """
2980 AUTHORIZATION_CODE = "authorization_code"
2981 CLIENT_CREDENTIALS = "client_credentials"
2982
2983# Experimental: this type is part of an experimental API and may change or be removed.
2984class MCPServerConfigHTTPType(Enum):

Callers 1

from_dictMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…