modelcontextprotocol / modelcontextprotocol/kotlin-sdk
Begin Planning Implementation of Authorization Update to MCP Spec
Nobody has claimed this yet.
- Dominant language
- Kotlin
- Stars
- 1.5k
- Forks
- 248
- Avg merge
- 1d 20h
- Merged PRs (30d)
- 23
Description
Is your feature request related to a problem? Please describe.
No. It is a request in response to the draft Authorization update to the MCP Spec described here.
Describe the solution you'd like
Planning now and eventually implementation for hooking into existing OAuth infrastructure to support the spec.
Describe alternatives you've considered
Ktor has an OAuth implementation. Perhaps something framework-agnostic but similar could work here. I would imagine the main thing is to delegate to add as little burden as possible to this library.
Additional context
As described in this post, the key part of the implementation is recognizing the clean separation between the MCP Server serving as a Resource Provider (RP) and Authorization Server (AS). Every MCP Server will have to host a Protected Resource Metadata document, which the MCP Client will discover and use to initiate the OAuth PKCE Flow.
This post provides more background.
Again, the spec update is in draft, so immediate action is not necessary. However, I would consider this a critical step to implementing MCP at scale for real, so I think it's important for the team to start thinking about how the implementation might look when the time comes.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading the draft MCP Authorization specification, the Protected Resource Metadata RFC, and the linked OAuth background posts. Review the SDK's existing OAuth infrastructure, if present, and compare it with Ktor's OAuth implementation. The work is complete when the team has agreed on a concrete, framework-appropriate implementation plan covering the Resource Provider and Authorization Server roles.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- kotlin
- Domain
- authorization, security
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100