diegosouzapw/awesome-omni-skill/a2a-server-config
Claude Code and agent skill by diegosouzapw/awesome-omni-skill
- community
Checking that the SKILL.md file is still in the repository.
Agent-to-Agent (A2A) server configuration patterns for HTTP, STDIO, SSE, and WebSocket transports. Use when building A2A servers, configuring MCP transports, setting up server endpoints, or when user mentions A2A configuration, server transport, MCP server setup, or agent communication protocols.
Install
npx vskill@latest install diegosouzapw/awesome-omni-skill/a2a-server-configSKILL.md
The same SKILL.md was published earlier as diegosouzapw/awesome-omni-skill/a2a-server-config.
A2A Server Configuration
Provides complete patterns and templates for configuring Agent-to-Agent (A2A) servers with different transport mechanisms (HTTP, STDIO, SSE, WebSocket) following MCP (Model Context Protocol) standards.
Security: API Key Handling
CRITICAL: When generating any configuration files or code:
- NEVER hardcode actual API keys or secrets
- NEVER include real credentials in examples
- NEVER commit sensitive values to git
- ALWAYS use placeholders:
your_service_key_here - ALWAYS create
.env.examplewith placeholders only - ALWAYS add
.env*to.gitignore(except.env.example) - ALWAYS read from environment variables in code
- ALWAYS document where to obtain keys
Placeholder format: {service}_{env}_your_key_here
Instructions
Phase 1: Analyze Requirements
Determine server configuration needs:
- Transport Type
- HTTP: Remote access, REST-like communication, CORS support
- STDIO: Local process communication, pipe-based I/O
- SSE (Server-Sent Events): Real-time streaming, one-way server push
- WebSocket: Bidirectional real-time communication
- Framework Detection
- Python: FastAPI, Flask, Starlette
- TypeScript: Express, Fastify, Node.js native http
- Detect from package.json or requirements.txt
- Configuration Needs
- Port and host settings
- CORS configuration
- Authentication requirements
- Environment variables
Phase 2: Select and Load Templates
Based on requirements, use templates from templates/:
Python Templates:
templates/python-http-server.py- FastAPI HTTP servertemplates/python-stdio-server.py- STDIO transporttemplates/python-sse-server.py- SSE streamingtemplates/python-websocket-server.py- WebSocket bidirectional
TypeScript Templates:
templates/typescript-http-server.ts- Express HTTP servertemplates/typescript-stdio-server.ts- STDIO transporttemplates/typescript-sse-server.ts- SSE streamingtemplates/typescript-websocket-server.ts- WebSocket bidirectional
Phase 3: Configure Transport
Apply configuration based on transport type:
HTTP Configuration:
STDIO Configuration:
SSE Configuration:
WebSocket Configuration:
Phase 4: Add CORS and Security
For HTTP/SSE/WebSocket servers:
Phase 5: Environment Configuration
Create .env.example with placeholders:
Phase 6: Validation
Run validation script:
Checks:
- No hardcoded API keys
- Environment variable usage
- CORS configuration
- Transport setup validity
- .gitignore includes .env files
Scripts
scripts/validate-config.sh- Validate server configurationscripts/generate-server.sh- Generate server from templatescripts/test-transport.sh- Test transport connectivity
Templates
Python:
templates/python-http-server.py- HTTP server with FastAPItemplates/python-stdio-server.py- STDIO transporttemplates/python-sse-server.py- SSE streaming servertemplates/python-websocket-server.py- WebSocket server
TypeScript:
templates/typescript-http-server.ts- HTTP server with Expresstemplates/typescript-stdio-server.ts- STDIO transporttemplates/typescript-sse-server.ts- SSE streaming servertemplates/typescript-websocket-server.ts- WebSocket server
Examples
examples/http-fastapi-example.md- Complete HTTP server with FastAPIexamples/stdio-simple-example.md- Basic STDIO serverexamples/sse-streaming-example.md- SSE streaming configurationexamples/websocket-bidirectional-example.md- WebSocket bidirectional communication
Requirements
- Framework-specific dependencies (FastAPI/Express/etc.)
- CORS middleware for HTTP/SSE/WebSocket
- Environment variable management (python-dotenv/dotenv)
- No hardcoded API keys or secrets
- .gitignore protection for sensitive files
Use Cases
- Setting up HTTP server for remote A2A communication
- Load http template
- Configure CORS
- Set environment variables
- Validate configuration
- Configuring STDIO for local agent communication
- Load stdio template
- Configure process pipes
- Test connectivity
- Implementing SSE for real-time agent updates
- Load sse template
- Configure event streams
- Set up CORS
- Test streaming
- Setting up WebSocket for bidirectional agent chat
- Load websocket template
- Configure connection handling
- Set up authentication
- Test bidirectional flow
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/development/a2a-server-config/SKILL.md
Popularity
- Repository stars
- 45
- Repository forks
- 14
- 7-day trend score
- 19
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/diegosouzapw/awesome-omni-skill/a2a-server-config)