by nacos · v0.0.4
Expose Dify apps as A2A protocol agents, enabling agent discovery, invocation, and optional registration to Nacos Agent Registry.
This community listing does not yet include every recommended support, privacy, pricing, and permission disclosure. Review the available package permissions before installing.
Available inside your emploidai workspace after installation.
Available inside your emploidai workspace after installation.
Author: nacos
Version: 0.0.4
Type: extension
Repository: https://github.com/nacos-group/nacos-dify-plugins
Expose Dify apps as A2A (Agent-to-Agent) protocol agents for external discovery and invocation.
/.well-known/agent.json endpoint for agent metadata discovery| Parameter | Example Value | Description |
|---|---|---|
| Dify App | Select your app | The Dify App to expose |
| Agent Name | My Assistant | Display name for your agent |
| Agent Description | A helpful AI assistant | What your agent does |
| Agent Public URL | https://your-domain.com/a2a | Placeholder value (will update later) |
Important: The endpoint ID is generated by Dify after you save. You cannot know the correct URL before creating the endpoint. Use a placeholder value first (e.g.,
https://your-domain.com/a2a).
After saving, Dify will generate an endpoint ID (e.g., abc123). Now you need to update the URL:
https://your-domain.com/e/abc123/a2a
Your final A2A URLs will be:
Agent Card: https://your-domain.com/e/{endpoint_id}/a2a/.well-known/agent.json
JSON-RPC: https://your-domain.com/e/{endpoint_id}/a2a
Test by fetching the Agent Card:
curl https://your-domain.com/e/{endpoint_id}/a2a/.well-known/agent.json
If successful, you'll receive a JSON response with your agent's metadata.
Note: If Nacos registration is enabled, the agent will be registered to Nacos when you call this GET endpoint for the first time. Before calling this endpoint, the agent is NOT registered to Nacos.
For sending messages via the POST endpoint, it's recommended to use an A2A SDK or A2A-compatible client.
| Parameter | Required | Default | Description |
|---|---|---|---|
| Dify App | Yes | - | Select the Dify App to expose as A2A agent |
| Agent Name | Yes | - | Name of the A2A agent |
| Agent Description | Yes | - | Description of the agent's capabilities |
| Agent Public URL | Yes | - | Public URL where this agent can be accessed |
| Agent Version | No | 1.0.0 | Version string |
| Enable Nacos Registry | Yes | true | Enable/disable Nacos registration |
| Nacos Address | No | - | Nacos server address (e.g., 127.0.0.1:8848) |
| Nacos Namespace ID | No | public | Nacos namespace ID |
| Nacos Username | No | - | Username for Nacos authentication |
| Nacos Password | No | - | Password for Nacos authentication |
| Aliyun AccessKey | No | - | AccessKey for Aliyun MSE Nacos |
| Aliyun SecretKey | No | - | SecretKey for Aliyun MSE Nacos |
/.well-known/agent.jsonSelf-hosted Nacos:
Nacos Address: 192.168.1.100:8848
Nacos Username: nacos
Nacos Password: nacos
Aliyun MSE Nacos:
Nacos Address: mse-xxx.mse.aliyuncs.com:8848
Aliyun AccessKey: LTAI5t***
Aliyun SecretKey: ***
| Method | Path | Description |
|---|---|---|
| GET | /a2a/.well-known/agent.json | Returns AgentCard metadata |
| POST | /a2a | JSON-RPC endpoint for A2A protocol |
| Method | Description |
|---|---|
message/send | Send a message to the agent and receive a response |
{
"jsonrpc": "2.0",
"result": {
"id": "task-id",
"status": {
"state": "completed"
},
"artifacts": [
{
"parts": [{"kind": "text", "text": "Agent response here"}]
}
]
},
"id": "1"
}
/a2a/.well-known/agent.jsonApache License 2.0