Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

codesecure_mcp-1.0.10.tar.gz (8.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

codesecure_mcp-1.0.10-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

Details for the file codesecure_mcp-1.0.10.tar.gz.

File metadata

  • Download URL: codesecure_mcp-1.0.10.tar.gz
  • Upload date:
  • Size: 8.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for codesecure_mcp-1.0.10.tar.gz
Algorithm Hash digest
SHA256 ba6eba6058c90d0650d04888f7b3dca2fdbf06b288147d2a36a32c2d5da5b996
MD5 7435e27a565724572f9e4d6b7d48107c
BLAKE2b-256 9e9aa6f1406e145efa535601783a76ffa5ac30243ba2c78c56451107c360d63f

See more details on using hashes here.

File details

Details for the file codesecure_mcp-1.0.10-py3-none-any.whl.

File metadata

File hashes

Hashes for codesecure_mcp-1.0.10-py3-none-any.whl
Algorithm Hash digest
SHA256 d55a63835c453fdfba60a68d48f84bde01830dbeb75e750b9dce17ede823dbe6
MD5 c057fdc0d8404dc6d1bd2eb4857477ff
BLAKE2b-256 18c252fa701272d10dc24d72d1a9439b093931665f574a112f850b1ab58796f0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page