inbox-pj/mcp-server
3.1
If you are the rightful owner of mcp-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
The Model Context Protocol (MCP) server facilitates communication between AI models and clients using standardized protocols, ensuring efficient data exchange and processing.
Spring AI MCP Server
What is MCP? 💡
The Model Context Protocol (MCP) helps connect AI-agentic applications powered by Large Language Models (LLMs) to external tools and data sources, enabling more capable and context-aware AI systems.
STDIO Transport
- Create a
mcp-servers-config.json
configuration file:
{
"mcpServers": {
"mcp-server": {
"command": "java",
"args": [
"-Dspring.ai.mcp.server.stdio=true",
"-Dspring.main.web-application-type=none",
"-Dlogging.pattern.console=",
"-jar",
"/Users/pjaiswal/CardConnect/Repository/Others/mcp-server/target/mcp-server-0.0.1-SNAPSHOT.jar"
]
}
}
}
- Run the client using the configuration file:
java -Dspring.ai.mcp.client.stdio.servers-configuration=file:mcp-servers-config.json \
-Dai.user.input='What is the weather in NY?' \
-Dlogging.pattern.console= \
-jar mcp-starter-default-client-0.0.1-SNAPSHOT.jar
SSE (WebMVC) Transport
- Start the MCP annotations server:
java -jar mcp-annotations-server-0.0.1-SNAPSHOT.jar
- In another console, start the client configured with SSE transport:
java -Dspring.ai.mcp.client.sse.connections.annotations-server.url=http://localhost:8080 \
-Dlogging.pattern.console= \
-Dai.user.input='What is the weather in NY?' \
-jar mcp-starter-default-client-0.0.1-SNAPSHOT.jar