v1.0.0
MCP Server Setup
Connect LastMile to your AI coding assistant using the Model Context Protocol (MCP) for intelligent, context-aware remediation.
What is MCP?
The Model Context Protocol is an open standard that allows AI assistants to securely access tools and data sources. LastMile's MCP server exposes scanning and remediation capabilities to compatible AI clients.
MCP integration works with Claude, Cursor, and other compatible AI assistants.
Installation
1
Install the MCP Server
TERMINAL
$npm install -g @lastmile/mcp-server
2
Configure Your AI Client
Add the LastMile server to your MCP configuration file:
mcp_config.json
{
"mcpServers": {
"lastmile": {
"command": "lastmile-mcp",
"args": ["--project", "./"]
}
}
}3
Verify Connection
Ask your AI assistant to analyze your codebase. It should now have access to the following tools:
>
analyze- Scan codebase for production gaps>
fix- Generate fixes for detected gaps>
ship- Deploy to Railway or VercelPro Tip
Use natural language with your AI assistant: "Analyze this project for production gaps and generate fixes for the critical security issues" - the MCP integration handles the rest.