Skip to navigation

mcp-tools

Connect your AI Agent to MCP servers and manage the MCP tools on them. The Agent calls these tools during conversations. This command does not manage the Ada MCP server that AI assistants connect to. The alias is mcp, so adacli acme mcp list works the same as adacli acme mcp-tools list.

Commands

CommandWhat it does
mcp-tools listLists MCP server connections.
mcp-tools get <connection-id>Shows one connection and its tools.
mcp-tools createCreates a connection to an MCP server.
mcp-tools update <connection-id>Renames a connection, turns it on or off, or changes its credentials.
mcp-tools delete <connection-id>Deletes a connection and its tools.
mcp-tools connect <connection-id>Connects to the MCP server. For OAuth, it prints a URL to open in a browser.
mcp-tools discover <connection-id>Gets the tool list of the server and updates the connection.
mcp-tools tools listLists the tools of all connections, or of one connection with --connection.
mcp-tools tools get <tool>Shows the settings, availability rule, input schema, and outputs of a tool.
mcp-tools tools enable <tool...>Turns on one or more tools.
mcp-tools tools disable <tool...>Turns off one or more tools.
mcp-tools tools update <tool>Changes the end-user credential, standalone, availability rule, or outputs of a tool.
mcp-tools tools test <tool>Calls a tool one time with test arguments.
mcp-tools users listLists the end users who gave access to a connection through OAuth.
mcp-tools users revoke <user-id> <application-id>Removes the access of one end user to one application.

Examples

Connect a server that needs no sign-in, and turn on one of its tools:

adacli acme mcp-tools create --name "Weather" --server-url https://mcp.weather.example --auth-type no_auth
adacli acme mcp-tools connect <connection-id>
adacli acme mcp-tools discover <connection-id>
adacli acme mcp-tools tools enable get_weather

Connect a server that uses an API key. Read the key from a shell variable:

adacli acme mcp-tools create --name "Billing" --server-url https://mcp.billing.example \
--auth-type api_key --api-key "$MCP_API_KEY" --api-key-header "X-Api-Key"

Show a tool only to end users who match an availability rule:

adacli acme mcp-tools tools update get_weather --rules 'all(equals(v("<variable-id>"), "gold"))'

Test a tool. The first command shows a preview. --yes makes the call:

adacli acme mcp-tools tools test get_weather --args '{"city":"Toronto"}'
adacli acme mcp-tools tools test get_weather --args '{"city":"Toronto"}' --yes

Details

  • The server URL must use https. The auth type is oauth, api_key, or no_auth. The default is oauth.
  • Give a secret through a shell variable. A secret that you type on the command line stays in your shell history.
  • After an OAuth connect, check the result with mcp-tools get. If the connection shows 0 tools, run discover. Run discover again when the tools of the server change.
  • delete and tools test show a preview first. --yes confirms. tools test sends a real call to your server with the credential of the connection.
  • tools test needs the Owner or Admin role. The API allows 10 calls each minute.
  • <tool> takes a tool ID or an exact tool name. If two connections have a tool with the name, add --connection.
  • --rules "" makes a tool available to all end users. A malformed rule makes the tool unavailable to all end users.

For every option of a command, run it with --help, for example adacli acme mcp-tools tools update --help.

  • api-tools: manage the API tools of your AI Agent.
  • code-tools: transform data with Python.
  • variables: get the variable IDs for availability rules.