You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Visual Studio Code cannot authorize with FastMCP OAuth #1379
I reported this against FastMCP but the bug is actually in this lib, see PrefectHQ/fastmcp#1868
If you attempt to add a MCP server that supports OAuth to VSC in mcp.json with dynamic client registration, you will catch the following error inside register.py class RegistrationHandler method handle:
validation_error = 1 validation error for OAuthClientMetadata
grant_types.2
Input should be 'authorization_code' or 'refresh_token' [type=literal_error,
input_value='urn:ietf:params:oauth:grant-type:device_code',
input_type=str]
For further information visit https://errors.pydantic.dev/2.11/v/literal_error
Activity
automaton82 commentedon Sep 19, 2025
I opened a PR to solve this:
#1380