spring-projects / spring-projects/spring-ai
spring-ai-alibaba-starter-nacos2-mcp-server sdk work with nacos-client 3.0.1 produce an error
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 9.5k
- Forks
- 2.9k
- Avg merge
- 1d 7h
- Merged PRs (30d)
- 6
Description
nacos-client 3.0.1版本NetUtils类的获取方法叫localIp(),p是小写。
nacos-client 2.5.1版本NetUtils类的获取方法叫localIP(),p是大写。
而spring-ai-alibaba-starter-nacos2-mcp-server包中的NacosMcpProperties调用的localIP是大写,导致nacos2只能和nacos-client 2.5.1适配,无法适配nacos-client 3.0.1
spring-ai-alibaba-mcp-nacos适配的是nacos3,而新版本spring-ai-alibaba-mcp-nacos2却适配的是nacos2,乱七八糟的。
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 NacosMcpProperties in the spring-ai-alibaba-starter-nacos2-mcp-server package and compare the NetUtils method exposed by nacos-client 2.5.1 and 3.0.1. Confirm the package builds and works with nacos-client 3.0.1 without breaking its existing 2.5.1 compatibility.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, spring
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100