Skip to main content
POST
/
mcp-hub
/
scan
Create MCP Server 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/Flux159/mcp-server-kubernetes",
  "user_email": "[email protected]"
}
'
{
"job_id": "6046fa05-ae2b-4a30-953f-5aaf27ae7c3f",
"source_url": "https://github.com/Flux159/mcp-server-kubernetes",
"user_email": "[email protected]",
"job_status": "initializing",
"message": "Scan job created successfully. Use the job_id to check status and retrieve results."
}

Authorizations

apikey
string
header
required

Body

application/json
source_url
string
required

The GitHub repository URL to scan

Example:

"https://github.com/Flux159/mcp-server-kubernetes"

user_email
string<email>
required

Email address of the user requesting the scan

Response

200 - application/json

Scan job created or existing scan found

job_id
string<uuid>
Example:

"6046fa05-ae2b-4a30-953f-5aaf27ae7c3f"

source_url
string
Example:

"https://github.com/Flux159/mcp-server-kubernetes"

user_email
string
job_status
string

Status of the scan job (e.g., initializing, completed, failed)

Example:

"initializing"

message
string
Example:

"Scan job created successfully. Use the job_id to check status and retrieve results."