You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.MD
+2-16Lines changed: 2 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,7 @@
4
4
Integrate your Spring Boot applications with Google's A2A Protocol and Anthropic's Model Context Protocol (MCP) using a2ajava. This integration allows any Spring bean to be exposed as an AI-actionable service—no need for extra annotations or custom wiring.
5
5
**A2AJava is the Java implementation** of the Google A2A protocol you can check the project [here](https://github.com/vishalmysore/a2ajava) .
6
6
7
+
Live Demo of this server is available [here](https://huggingface.co/spaces/VishalMysore/a2amcpspring)
7
8
### What is A2A?
8
9
A2A (Agent-to-Agent) is Google's protocol that enables AI agents to discover and interact with services through a standardized format. It makes services discoverable and executable by AI systems.
9
10
@@ -49,7 +50,7 @@ public class CompareCarService implements JavaMethodAction {
49
50
```
50
51
51
52
- A2A card will be available here http://localhost:7860/.well-known/agent.json
52
-
- MCP Tools can be integrated to claude desktop via passthrough server[connector](https://github.com/vishalmysore/mcp-connector/)
53
+
- MCP Tools can be integrated to claude desktop via passthrough server[connector](https://github.com/vishalmysore/mcp-connector/)
53
54
54
55
or you can use curl command to get the list of MCP tools
55
56
@@ -78,22 +79,7 @@ use curl command to call a specific tool
78
79
}
79
80
```
80
81
81
-
At runtime spring will create this service and call it with appropriate values if the prompt matches the action
82
82
83
-
```
84
-
@Autowired
85
-
private ApplicationContext applicationContext;
86
-
@GetMapping("/action")
87
-
public String actOnPrompt(@RequestParam("prompt") String prompt) {
88
-
SpringAwareActionProcessor processor = new SpringAwareActionProcessor(applicationContext);
0 commit comments