Skip to content
Use litecode

MCP servers

litecode is an MCP client. It starts MCP servers over stdio and gives their tools to the model. It reads the standard mcpServers config format that most MCP clients use.

Add a server#

Command line:

litecode mcp add fs npx -y @modelcontextprotocol/server-filesystem .
litecode mcp add git uvx mcp-server-git
litecode mcp                 # list servers
litecode mcp --tools         # start them and list their tools
litecode mcp rm fs

Or edit a config file:

{
  "mcpServers": {
    "fs": {"command": "npx", "args": ["-y", "@modelcontextprotocol/server-filesystem", "."]},
    "notes": {"command": "python", "args": ["notes_server.py"], "env": {"NOTES_DIR": "D:/notes"}},
    "off": {"command": "x", "disabled": true}
  }
}

Config files (later wins on a name clash):

  1. <data_dir>/mcp.json (user, written by litecode mcp add)
  2. <project>/.mcp.json (project, shared with other MCP clients)
  3. <project>/.litecode/mcp.json

How the model calls a tool#

Tools appear as mcp__<server>__<tool>. The model uses the normal JSON format:

{"tool": "mcp__fs__read_file", "args": {"path": "README.md"}}

Each MCP call asks for approval in ask mode. In readonly mode MCP calls are refused.

Limits#

Source: docs/MCP.md