Skip to content
Lovelace

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#

bash
ada mcp <COMMAND> [OPTIONS]

Subcommands#

SubcommandDescription
ada mcp addAdd an MCP server to the configuration
ada mcp removeRemove MCP servers from the configuration
ada mcp configShow or validate the MCP configuration
ada mcp serversList configured servers and their status
ada mcp toolsList the tools from all configured servers
ada mcp callCall a tool with JSON arguments
ada mcp execCall a tool using function-call syntax or JSON arguments
ada mcp replStart an interactive MCP command shell
ada mcp resourcesList, read, or subscribe to MCP resources
ada mcp sessionsShow 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.

bash
# 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 / optionDescription
<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
--statelessMark the server stateless so one process can serve several sessions

ada mcp servers add is the same command.

ada mcp remove#

bash
ada mcp remove docs
ada mcp remove docs local-tools --yes
ada mcp remove docs --dry-run
Argument / optionDescription
<NAMES>...Servers to remove
-y, --yesSkip the confirmation
--keep-credentialsKeep stored credentials for the removed servers
--dry-runPreview 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.

bash
ada mcp config
ada mcp config --validate
OptionDescription
--validateValidate the configuration without loading servers

ada mcp servers#

With no subcommand, lists configured servers and their status.

bash
ada mcp servers
ada mcp servers list --format json
ada mcp servers status --health-check
SubcommandOptions
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 addSame as ada mcp add
ada mcp servers removeSame as ada mcp remove

ada mcp tools#

bash
ada mcp tools
ada mcp tools --group
ada mcp tools --filter filesystem --format json
ada mcp tools --limit 20 --cursor 20
OptionDescription
--groupGroup 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.

bash
ada mcp call filesystem:read_file --args '{"path": "README.md"}'
ada mcp call filesystem:list_directory --args '{"path": "."}' --format text --timeout-ms 10000
Argument / optionDescription
<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.

bash
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 / optionDescription
<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-runValidate and print the invocation without contacting the daemon
--timeout-ms <TIMEOUT_MS>Cancel the call after this many milliseconds
--verboseShow 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.

bash
ada mcp repl
ada mcp repl --server filesystem
ada mcp repl --save-session mcp-transcript.json
OptionDescription
--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-sessionLeave the daemon MCP session open on exit

Commands inside the shell:

CommandDescription
helpShow REPL help
toolsList MCP tools from the daemon
resourcesList, read, or subscribe to MCP resources
call <invocation>Run a tool through the daemon
dry-run <invocation>Validate an invocation without the daemon
sessionsShow local MCP execution history
alias, templateList 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
prefsShow REPL preferences
exitLeave the REPL (also quit)

ada mcp resources#

With no subcommand, lists resources.

bash
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
SubcommandArguments 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.

bash
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
SubcommandDescription
ada mcp sessions listList history entries (--limit, --format)
ada mcp sessions showShow one entry by ID or unique ID prefix
ada mcp sessions searchSearch command, tool, status, and argument text
ada mcp sessions exportExport history to a file (--format is json or markdown)
ada mcp sessions activeList active MCP sessions tracked by the daemon
ada mcp sessions clearClear 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:

toml
[[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:

bash
claude mcp add --transport http lovelace https://mcp.uselovelace.com/mcp
claude mcp add lattice -- lattice-ctl mcp

See the Command Reference for all available commands.