CodeSecure MCP Server Hub
Project description
CodeSecure MCP Server (codesecure-mcp)
The codesecure-mcp package bridges the programmatic codesecure-core engine to standard IDE environments (e.g., VS Code, Claude Desktop, Cursor) through the Model Context Protocol (MCP).
🎯 Module Purpose
As a core implementation of the FastMCP specification, this module operates purely via JSON-RPC over the stdio transport. It allows external applications to seamlessly call CodeSecure tools dynamically (e.g., initiating scans, polling jobs, or retrieving findings) without installing custom integrations or importing the underlying Python SDK directly.
📦 Local Installation
Just like the CLI, the MCP Server is a "Thin Wrapper" around codesecure-core but exposes endpoints suitable for FastMCP protocol buffers.
cd packages/mcp-server
# Standard installation inside a venv mapping back to workspace core.
cd ../../
pip install -e ./packages/mcp-server
🔌 Exported API & Tool Capabilities
Because this is an MCP server, functions are exported as @server.tool() attributes that clients can invoke dynamically.
| MCP Tool Name | Description | Status Mapping |
|---|---|---|
run_scan_local |
Spawns an async job via JobManager against local directories |
Returns job_id |
get_scan_status |
Returns a progress tracker % bounded to JobManager |
Polling endpoint |
get_scan_result |
Unpacks JSON finding models from the finished scanner queue | Returns raw Findings list |
list_scanners |
Fetches active core scanner mappings | Core BaseScanner interface wrap |
🛠️ Integration Example
Here is how you would configure an external IDE (like Claude Desktop) to initialize the CodeSecure MCP server and natively surface the AI findings:
Example: claude_desktop_config.json
{
"mcpServers": {
"codesecure": {
"command": "python",
"args": [
"-m",
"codesecure_mcp.scanner.server"
],
"env": {
"CODESECURE_PROVIDER": "google",
"PYTHONPATH": "/absolute/path/to/codesecure/packages/core/src;/absolute/path/to/codesecure/packages/mcp-server/src"
}
}
}
}
Invoking the server allows Claude Desktop to intrinsically understand when a path is vulnerable, or auto-fetch finding data to assist prompt responses natively.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file codesecure_mcp-1.0.12-py3-none-any.whl.
File metadata
- Download URL: codesecure_mcp-1.0.12-py3-none-any.whl
- Upload date:
- Size: 7.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8741639fd57fd6ce14149d0237090bf4152a24983aa303465e8b34c70de63123
|
|
| MD5 |
3f664ab2eb80f146f704775a435cfef8
|
|
| BLAKE2b-256 |
3a2adfef512dda795a4c2f8bfdbef5e138e9b5ce6e8431b1a88a03fa6341a554
|