Spring Ai A2a banner
spring-ai-community spring-ai-community

Spring Ai A2a

AI community

Description

Spring Boot and Spring integration for building AI agent servers using the A2A Protocol.

Installation

This entry records only its repository, not the path inside it, so there is no exact command to give. Open the source below and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

README

Spring AI A2A

📖 **[Documentation](https://springaicommunity.mintlify.app/projects/incubating/spring-agui)**

[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) [![Maven Central](https://img.shields.io/maven-central/v/org.springaicommunity/spring-ai-a2a-server-autoconfigure.svg?label=Maven%20Central)](https://central.sonatype.com/artifact/org.springaicommunity/spring-ai-a2a-server-autoconfigure) [![Java Version](https://img.shields.io/badge/Java-17%2B-orange)](https://www.oracle.com/java/technologies/javase/jdk17-archive-downloads.html)

Spring Boot integration for building AI agent servers using the [A2A Protocol](https://a2a-protocol.org/).

Overview

Spring AI A2A provides **server-side** support for exposing Spring AI agents via the A2A protocol. Add the dependency, provide `ChatClient`, `AgentCard`, and `AgentExecutor` beans, and your agent is automatically exposed.

**Key Features**: A2A Protocol Server • Spring AI ChatClient Integration • Full `@Tool` Support • Auto-Configuration

Quick Start

1. Add Dependencies


    org.springaicommunity
    spring-ai-a2a-server-autoconfigure
    0.3.0



    org.springframework.ai
    spring-ai-starter-model-openai

2. Create Your Agent

@SpringBootApplication
public class WeatherAgentApplication {

    public static void main(String[] args) {
        SpringApplication.run(WeatherAgentApplication.class, args);
    }

    @Bean
    public AgentCard agentCard(@Value("${server.port:8080}") int port) {
        return new AgentCard.Builder()
            .name("Weather Agent")
            .description("Provides weather forecasts")
            .url("http://localhost:" + port + "/a2a/")
            .version("1.0.0")
            .capabilities(new AgentCapabilities.Builder().s