Skip to content

rai mcp

Manage and invoke MCP (Model Context Protocol) servers. Servers are registered in .raise/mcp/*.yaml and provide tools to AI agents.

List all registered MCP servers. Shows servers with their names, descriptions, and commands.

Terminal window
rai mcp list

Check connectivity of a registered MCP server. Connects, lists tools, and reports status, latency, and tool count.

ArgumentDescription
SERVERRegistered MCP server name (required)
Terminal window
rai mcp health context7

List available tools on a registered MCP server.

ArgumentDescription
SERVERRegistered MCP server name (required)
Terminal window
rai mcp tools context7

Invoke a tool on a registered MCP server. Prints the result as JSON to stdout.

ArgumentDescription
SERVERRegistered MCP server name (required)
TOOLTool name to invoke (required)
FlagShortDescription
--argsTool arguments as JSON string. Default: {}
--verboseShow call details on stderr
Terminal window
rai mcp call context7 resolve-library-id --args '{"query":"next.js","libraryName":"next.js"}'

Connect to an MCP server, introspect tools, and generate config. Creates .raise/mcp/<name>.yaml by connecting, discovering tools, and writing a valid config.

ArgumentDescription
NAMEServer name (required)
FlagShortDescription
--commandServer command, e.g. npx, uvx (required)
--argsServer arguments as space-separated string
--envComma-separated env var names
--forceOverwrite existing config file
Terminal window
rai mcp scaffold context7 --command npx --args "-y @upstash/context7-mcp"

Install an MCP server package and generate config. Installs the package, verifies connectivity, and generates .raise/mcp/<name>.yaml.

ArgumentDescription
PACKAGEPackage identifier (required)
FlagShortDescription
--typePackage type: uvx, npx, pip (required)
--nameServer name for config file (required)
--envComma-separated env var names
--modulePython module name (required for --type pip)
--forceOverwrite existing config file
Terminal window
# NPX package
rai mcp install @upstash/context7-mcp --type npx --name context7
# UVX package with env vars
rai mcp install mcp-github --type uvx --name github --env GITHUB_TOKEN
# Pip package with module
rai mcp install mcp-server-fetch --type pip --name fetch --module mcp_server_fetch

See also: rai adapter