spring-projects / spring-projects/spring-ai

Possibility to configure MCP Client so it uses an existing OAuth Token

Open
#4,178 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

status: waiting-for-triage
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.