Skip to main content

Overview

The lua mcp command manages Model Context Protocol (MCP) servers. Use it to list, activate, deactivate, and delete MCP servers.
MCP servers from integrations: When you connect a third-party account via lua integrations connect, an MCP server is automatically created and activated. These integration-based servers have a source field set to unifiedto. You can manage them with both lua mcp and lua integrations mcp commands.

Non-Interactive Mode

Commands

lua mcp

Interactive MCP server management.
Opens an interactive menu to:
  • List MCP servers
  • Activate a server
  • Deactivate a server
  • Delete a server

lua mcp list

List all MCP servers and their status.
Output:

lua mcp activate

Activate an MCP server to make its tools available.
What happens:
  • Server is marked as active
  • Server’s tools become available to your agent
  • Tools appear in the agent’s tool list at runtime
Example:

lua mcp deactivate

Deactivate an MCP server to remove its tools.
What happens:
  • Server is marked as inactive
  • Server’s tools are removed from agent runtime
  • Configuration is preserved (can be re-activated)
Example:

lua mcp delete

Permanently delete an MCP server.
This is permanent! Deleting an MCP server removes it from the platform. You’ll need to re-compile and push to recreate it.
Example:

Command Aliases

Pushing MCP Servers

MCP servers can also be pushed using the lua push command:
When pushing all with --auto-deploy, MCP servers are automatically activated:

Workflow Example

1

Define MCP Server

Create the server in your code:
2

Add to Agent

3

Compile

4

Push

5

Activate

6

Verify

Tips

Use lua mcp list to see current status before making changes
Keep unused servers deactivated to reduce overhead
In CI/CD, use lua push all --force to avoid prompts

lua compile

Compile and register MCP servers

lua push

Push MCP server configuration

See Also