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>"
}
]
}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.
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>"
}
]
}Authorizations
Body
Request body for starting a source-based MCP server vulnerability scan.
GitHub URL or npm package name/URL to scan
"https://github.com/user/mcp-server"
Git commit/branch/tag or npm version. Defaults to the repo's default branch when omitted.
"main"
Optional subdirectory path within the repository to scan (e.g., 'packages/server')
"packages/server"
Mark this scan as private (visible only within your account)
Response
Scan job accepted
Response returned when a source-based scan job is accepted.
Unique identifier for the scan job
"123e4567-e89b-12d3-a456-426614174000"
"https://github.com/user/mcp-server"
"user@example.com"
"initializing"
Human-readable status message
"Scan job created successfully"

