ada mcp
Manage the external MCP servers that Ada can use, and call their tools
ada mcp adds and removes external Model Context Protocol (MCP) servers, lists their tools and resources, calls tools directly, and keeps a local history of tool calls. Tool calls, tool listings, and resource reads go through the local Lattice daemon. Adding, removing, and showing configuration only edit the configuration file.
Usage#
ada mcp <COMMAND> [OPTIONS]
Subcommands#
| Subcommand | Description |
|---|---|
ada mcp add | Add an MCP server to the configuration |
ada mcp remove | Remove MCP servers from the configuration |
ada mcp config | Show or validate the MCP configuration |
ada mcp servers | List configured servers and their status |
ada mcp tools | List the tools from all configured servers |
ada mcp call | Call a tool with JSON arguments |
ada mcp exec | Call a tool using function-call syntax or JSON arguments |
ada mcp repl | Start an interactive MCP command shell |
ada mcp resources | List, read, or subscribe to MCP resources |
ada mcp sessions | Show the local MCP execution history |
All subcommands accept the global options listed in the command reference.
ada mcp add#
Adds a server. Give either a stdio command or a remote URL, as options or as a connection URI.
# stdio server started by command
ada mcp add filesystem --command node --arg mcp-filesystem-server.js
# stdio server with an environment variable
ada mcp add notes --command node --arg notes-server.js --env NOTES_DIR=$HOME/notes
# remote server over HTTP
ada mcp add docs --url https://example.com/mcp
# remote server, header value read from an environment variable and stored in the keyring
ada mcp add docs --url https://example.com/mcp --credential-header Authorization=DOCS_TOKEN
# connection URI forms
ada mcp add docs https://example.com/mcp
ada mcp add local-tools stdio:///path/to/server
| Argument / option | Description |
|---|---|
<NAME> | Server name (unique) |
[CONNECTION] | Connection URI such as stdio:///path/to/server or https://example.com/mcp |
--command <COMMAND> | Command to run (stdio transport) |
--arg <ARG> | Command argument (stdio transport); repeat for more |
--env <KEY=VALUE> | Environment variable (stdio transport); repeat for more |
--url <URL> | Server URL (HTTP transport); cannot be combined with --command |
--header <KEY:VALUE> | HTTP header (HTTP transport) |
--credential-header <HEADER=ENV_VAR> | Store a header value from an environment variable in the keyring |
--root <PATH> | Workspace root path the server may access |
--auth <AUTH> | Authentication reference or scheme for the server |
--timeout-ms <TIMEOUT_MS> | Operation timeout in milliseconds |
--stateless | Mark the server stateless so one process can serve several sessions |
ada mcp servers add is the same command.
ada mcp remove#
ada mcp remove docs
ada mcp remove docs local-tools --yes
ada mcp remove docs --dry-run
| Argument / option | Description |
|---|---|
<NAMES>... | Servers to remove |
-y, --yes | Skip the confirmation |
--keep-credentials | Keep stored credentials for the removed servers |
--dry-run | Preview the removal without changing anything |
ada mcp servers remove is the same command.
ada mcp config#
Prints the MCP configuration file, or an example and the expected location when the file does not exist.
ada mcp config
ada mcp config --validate
| Option | Description |
|---|---|
--validate | Validate the configuration without loading servers |
ada mcp servers#
With no subcommand, lists configured servers and their status.
ada mcp servers
ada mcp servers list --format json
ada mcp servers status --health-check
| Subcommand | Options |
|---|---|
ada mcp servers list | --status <STATUS> filter, --format (table or json), --verbose |
ada mcp servers status | --health-check to force health checks against the daemon, --format (table or json), --verbose |
ada mcp servers add | Same as ada mcp add |
ada mcp servers remove | Same as ada mcp remove |
ada mcp tools#
ada mcp tools
ada mcp tools --group
ada mcp tools --filter filesystem --format json
ada mcp tools --limit 20 --cursor 20
| Option | Description |
|---|---|
--group | Group tools by server |
--filter <FILTER> | Only servers matching this pattern |
--format <FORMAT> | table (default) or json |
--limit <LIMIT> | Maximum number of tools to show |
--cursor <CURSOR> | Zero-based tool cursor for pagination |
ada mcp call#
Calls a tool named server:tool_name with JSON arguments.
ada mcp call filesystem:read_file --args '{"path": "README.md"}'
ada mcp call filesystem:list_directory --args '{"path": "."}' --format text --timeout-ms 10000
| Argument / option | Description |
|---|---|
<TOOL_NAME> | Tool name in the form server:tool_name |
--args <JSON> | JSON arguments for the tool |
--format <FORMAT> | json (default) or text |
--timeout-ms <TIMEOUT_MS> | Cancel the call after this many milliseconds |
ada mcp exec#
Calls a tool using function-call syntax, or a tool name plus --args. Unqualified tool names need --server.
ada mcp exec 'filesystem:read_file(path="README.md")'
ada mcp exec 'read_file(path="README.md")' --server filesystem
ada mcp exec filesystem:read_file --args '{"path": "README.md"}'
ada mcp exec 'filesystem:read_file(path="README.md")' --dry-run
| Argument / option | Description |
|---|---|
<INVOCATION> | server:tool_name or server:tool(param="value") |
--server <SERVER> | Server namespace for unqualified tool names |
--args <JSON> | JSON arguments (not combined with function-call syntax) |
--format <FORMAT> | text (default), json, or table |
--dry-run | Validate and print the invocation without contacting the daemon |
--timeout-ms <TIMEOUT_MS> | Cancel the call after this many milliseconds |
--verbose | Show detailed execution information |
ada mcp repl#
Starts an interactive shell for MCP commands. It takes no server argument; use --server to set the default namespace for unqualified invocations.
ada mcp repl
ada mcp repl --server filesystem
ada mcp repl --save-session mcp-transcript.json
| Option | Description |
|---|---|
--server <SERVER> | Default server namespace for unqualified invocations |
--alias <NAME=COMMAND> | Define an invocation alias |
--template <NAME=INVOCATION> | Define a reusable dry-run invocation template |
--save-session <SAVE_SESSION> | Save the transcript to this path on exit |
--restore <RESTORE> | Restore a saved transcript before reading input |
--daemon-session <DAEMON_SESSION> | Reuse an existing daemon MCP session ID |
--keep-daemon-session | Leave the daemon MCP session open on exit |
Commands inside the shell:
| Command | Description |
|---|---|
help | Show REPL help |
tools | List MCP tools from the daemon |
resources | List, read, or subscribe to MCP resources |
call <invocation> | Run a tool through the daemon |
dry-run <invocation> | Validate an invocation without the daemon |
sessions | Show local MCP execution history |
alias, template | List or set aliases and templates |
run-template <NAME> | Run a saved template as a dry run |
set server <NAME> | Change the default server namespace |
save <PATH>, restore <PATH> | Save or restore the transcript |
prefs | Show REPL preferences |
exit | Leave the REPL (also quit) |
ada mcp resources#
With no subcommand, lists resources.
ada mcp resources
ada mcp resources list --format json
ada mcp resources read <URI>
ada mcp resources subscribe <URI> --watch --interval-ms 2000 --max-updates 10
| Subcommand | Arguments and options |
|---|---|
ada mcp resources list | --format (table or json) |
ada mcp resources read | <URI>, --format (text or json) |
ada mcp resources subscribe | <URI>, --watch, --interval-ms <INTERVAL_MS> (default 1000), --max-updates <MAX_UPDATES>, --format (text or json) |
ada mcp sessions#
Shows the local history of MCP tool executions. With no subcommand, lists recent entries and accepts filters directly.
ada mcp sessions
ada mcp sessions --tool filesystem:read_file --limit 50
ada mcp sessions search read_file
ada mcp sessions show <ID>
ada mcp sessions export mcp-history.md --format markdown
ada mcp sessions active
ada mcp sessions clear --yes
| Subcommand | Description |
|---|---|
ada mcp sessions list | List history entries (--limit, --format) |
ada mcp sessions show | Show one entry by ID or unique ID prefix |
ada mcp sessions search | Search command, tool, status, and argument text |
ada mcp sessions export | Export history to a file (--format is json or markdown) |
ada mcp sessions active | List active MCP sessions tracked by the daemon |
ada mcp sessions clear | Clear the history (-y, --yes skips the confirmation) |
Filters on ada mcp sessions, search, and export: --tool <TOOL>, --status <STATUS>, --dry-run-only, --limit <LIMIT> (default 20).
Configuration file#
Servers are stored in ~/.lovelace/mcp-servers.toml. ada mcp add and ada mcp remove edit it for you. A minimal file:
[[servers]]
name = "filesystem"
command = "node"
args = ["mcp-filesystem-server.js"]
Only add servers you trust, and limit filesystem servers to the directories they need.
Exposing Lovelace to other MCP clients#
ada mcp manages servers that Ada uses. To use Lovelace from another MCP client, register one of these servers in that client instead:
- Hosted Lovelace MCP server:
https://mcp.uselovelace.com/mcp(streamable HTTP, OAuth) - Local Lattice MCP server over stdio:
lattice-ctl mcp
For example, in Claude Code:
claude mcp add --transport http lovelace https://mcp.uselovelace.com/mcp
claude mcp add lattice -- lattice-ctl mcp
Related Commands#
- ada chat - Chat with Ada
- ada agents - Agents can use configured MCP tools
Related Guides#
See the Command Reference for all available commands.