spring-projects / spring-projects/spring-ai
用SpringAI实现一个MCP Server,怎么接收客户端传递过来的env
Open
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,配置如下:
我的本地服务,使用SrpingAI的@Tool来注册工具,那么我这个工具怎么获取到cursor中配置的env参数PM-ID呢?
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
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