spring-projects / spring-projects/spring-ai
Possibility to configure MCP Client so it uses an existing OAuth Token
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 9.5k
- Forks
- 2.9k
- Avg merge
- 1d 7h
- Merged PRs (30d)
- 6
Description
Expected Behavior
Add a config (application.properties) that enables passing of an existing Token
An existing Token was aquired in the Host application (which includes MCP Client Starter) from an Authserver in a previous step, outside/before the use of ChatClient/MCP Client
Current Behavior
when understanding correctly from the single example here
https://github.com/Kehrlann/spring-ai-mcp-authorization-demo
MCP Client Starter seems to be dependent on an AuthorizationServer configuration to execute the first Auth-exchange itself (instead of just using&passing an existing token in the Hostapplication.
Context
MCP Auth Specification
MCP Client/Server version 1.0.1
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 with the MCP Client Starter configuration in application.properties and review the MCP Auth Specification 1.0.1 alongside the linked authorization demo. The change is complete when a host application can provide an OAuth token acquired earlier instead of requiring the starter to perform the initial authorization exchange.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, spring-boot
- Domain
- authentication, backend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100