curl --request POST \
--url https://api.enkryptai.com/mcp-hub/scan \
--header 'Content-Type: application/json' \
--header 'apikey: <api-key>' \
--data '
{
"source_url": "https://github.com/user/mcp-server",
"version_or_commit": "main"
}
'{
"job_id": "123e4567-e89b-12d3-a456-426614174000",
"source_url": "https://github.com/user/mcp-server",
"user_email": "user@example.com",
"job_status": "initializing",
"message": "Scan job created successfully"
}{
"detail": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}๐ MCP Hub API
Start a New Vulnerability Scan
Creates a new vulnerability scan job for an MCP server source repository (GitHub URL or npm package). The scan runs asynchronously in the background; use the returned job_id to check status and retrieve results.
POST
/
mcp-hub
/
scan
curl --request POST \
--url https://api.enkryptai.com/mcp-hub/scan \
--header 'Content-Type: application/json' \
--header 'apikey: <api-key>' \
--data '
{
"source_url": "https://github.com/user/mcp-server",
"version_or_commit": "main"
}
'{
"job_id": "123e4567-e89b-12d3-a456-426614174000",
"source_url": "https://github.com/user/mcp-server",
"user_email": "user@example.com",
"job_status": "initializing",
"message": "Scan job created successfully"
}{
"detail": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Body
application/json
Request body for starting a source-based MCP server vulnerability scan.
Response
Scan job accepted
Response returned when a source-based scan job is accepted.

