Repository navigation
MCP Integration
lory mcp serve transforms the lory CLI into a standards-compliant Model Context Protocol (MCP) server operating over standard input/output (stdio).
This allows AI coding agents—including Claude Code, Cursor, Windsurf, and IDE sidecars—to invoke Lorikeet's security analysis tools directly within their agentic loops.
lory mcp serveWhen started, lory listens for JSON-RPC 2.0 messages over stdin and writes responses to stdout.
Protocol specifications:
-
Protocol Version:
2024-11-05 -
Transport:
stdio -
Server Name:
lorikeet-lory-mcp -
Server Version:
1.1.1
The server registers three primary security tools:
Reviews a source code file for security vulnerabilities using Lorikeet Security's Lory AI analyst.
-
Input Parameters:
-
file_path(string, required): Absolute or workspace-relative path to the file to review.
-
- Returns: A structured list of security findings, CWE mappings, exact line numbers, code snippets, and synthesized remediation patches.
Performs an active/passive PTaaS web security scan against a live endpoint.
-
Input Parameters:
-
url(string, required): Target URL (e.g.,https://staging.acme.com).
-
- Returns: Live audit findings, security score (0-100), TLS/SSL validity, security headers, and cookie policy posture.
Provides detailed remediation guidance, attack playbooks, and mitigation examples for a specific CWE or vulnerability title.
-
Input Parameters:
-
cwe(string, optional): CWE identifier (e.g.,CWE-89,CWE-79). -
title(string, optional): Vulnerability title (e.g.,SQL Injection,Path Traversal).
-
- Returns: Remediation walk-through, safe API alternatives, and defense-in-depth recommendations.
Add lory to your Claude Desktop configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json
~/.config/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"lorikeet-lory": {
"command": "lory",
"args": ["mcp", "serve"],
"env": {
"LORIKEET_TOKEN": "your_talon_access_token"
}
}
}
}If you installed lory to a custom path (e.g., /usr/local/bin/lory or C:\tools\lory.exe), specify the full path in the command field.
To enable Lorikeet MCP tools in Cursor:
- Open Cursor Settings -> Features -> MCP.
- Click Add New MCP Server.
- Set:
-
Name:
Lorikeet Security -
Type:
command -
Command:
lory mcp serve
-
Name:
- Alternatively, configure in
.cursor/mcp.jsonin your project root:{ "mcpServers": { "lorikeet": { "command": "lory", "args": ["mcp", "serve"] } } }
You can test the MCP server by piping JSON-RPC 2.0 requests:
echo '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2024-11-05","capabilities":{},"clientInfo":{"name":"test-client","version":"1.0"}}}' | lory mcp serveExpected response:
{"jsonrpc":"2.0","id":1,"result":{"capabilities":{"tools":{"listChanged":false}},"protocolVersion":"2024-11-05","serverInfo":{"name":"lorikeet-lory-mcp","version":"1.1.1"}}}List tools:
echo '{"jsonrpc":"2.0","id":2,"method":"tools/list","params":{}}' | lory mcp serveLorikeet Security Lory CLI • Autonomous AI Security Testing & PTaaS Platform