spring-projects / spring-projects/spring-ai

用SpringAI实现一个MCP Server,怎么接收客户端传递过来的env

Open
#3,330 11 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

我用cursor的settings配置了一个mcp.json,配置如下:

Image

我的本地服务,使用SrpingAI的@Tool来注册工具,那么我这个工具怎么获取到cursor中配置的env参数PM-ID呢?

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

The issue names Cursor's mcp.json configuration and Spring AI's @Tool, but no source file or test. Start by tracing the MCP server configuration and request handling to determine where client environment values enter; done means the supported way to access PM-ID is documented or demonstrated and verified against a Cursor request.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
ai, backend-api-design
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.