Add dynamic agent discovery tools
This commit is contained in:
14
README.md
14
README.md
@@ -23,6 +23,7 @@ interrupts.
|
||||
|
||||
```bash
|
||||
npx -y a2amcp login
|
||||
npx -y a2amcp search "security evidence"
|
||||
npx -y a2amcp add <agent-name>
|
||||
npx -y a2amcp doctor
|
||||
```
|
||||
@@ -48,6 +49,7 @@ Restart the client after adding or removing agents.
|
||||
a2amcp login # sign in through Keycloak and save OAuth tokens
|
||||
a2amcp whoami # show current account
|
||||
a2amcp agents # list agents visible to your account
|
||||
a2amcp search [query] # search visible agents by text, tag, or skill
|
||||
a2amcp add <name> # expose one agent through this gateway
|
||||
a2amcp list # list locally enabled agents
|
||||
a2amcp remove <name> # stop exposing an agent
|
||||
@@ -57,6 +59,18 @@ a2amcp logout # clear local credentials
|
||||
|
||||
Running `a2amcp` with no command starts the MCP gateway over stdio.
|
||||
|
||||
The gateway also exposes local management tools to MCP clients:
|
||||
|
||||
```text
|
||||
a2a_search_agents # search visible agents from inside the MCP client
|
||||
a2a_add_agent # enable one matching agent dynamically
|
||||
a2a_list_enabled_agents # show agents currently exposed by this gateway
|
||||
```
|
||||
|
||||
After `a2a_add_agent`, clients that support tool-list change notifications can
|
||||
refresh tools immediately. Other clients may need a manual tool refresh or
|
||||
restart.
|
||||
|
||||
`a2amcp login` uses Keycloak Authorization Code + PKCE. It starts a local
|
||||
loopback callback server, opens the browser, exchanges the code for a Keycloak
|
||||
access token, and stores the token in `~/.a2a/credentials.json`. For headless
|
||||
|
||||
Reference in New Issue
Block a user