Skip to main content
GET
List Scans

Authorizations

apikey
string
header
required

Query Parameters

limit
integer
default:50

Page size (max 200).

Required range: 1 <= x <= 200
Example:

50

cursor
string

Opaque pagination cursor returned by the previous response as next_cursor. Omit on the first page. Treat as opaque β€” do not decode or construct manually.

Maximum string length: 4096
Example:

"eyJjcmVhdGVkX2F0IjoiMjAyNi0wNi0yNVQxMTozMjoxMS4xMjM0NTYrMDA6MDAiLCJqb2JfaWQiOiJhYmMtMTIzIn0"

include_total
boolean
default:false

When true, the response includes a total count of rows matching the filters. Costs an extra COUNT(*) round-trip per page request; omit by default for cursor pagination's constant-time-per-page property.

is_official
boolean

Filter to only official scans (true) or only non-official (false). Omit for both.

is_private
boolean

Filter to only private scans (true) or only public (false). Omit for both.

job_status
enum<string>

Filter by job status

Available options:
initializing,
downloading,
discovering_tools,
scanning_tools,
completed,
failed,
connecting,
discovering,
analyzing
repo_name
string

Case-insensitive substring match on repo / server name

Maximum string length: 500
scan_type
enum<string>

source or hosted

Available options:
source,
hosted
job_id
string<uuid>

Exact job UUID match

source_url
string

Exact match on source_url.

Maximum string length: 2000
source_version
string

Exact match on source_version (npm version or git commit).

Maximum string length: 200
latest_only
boolean
default:false

When true, applies all other filters first, then dedupes results by (source_url, source_version), keeping the newest row per group by created_at. Pagination applies to the deduped list and total reflects the deduped count. Intended for scan_type=source. Returns 400 if the filters would require dedupe over more than 5000 matching rows.

Response

Paginated list of scans

Cursor-paginated list of scans. Page by passing the previous response's next_cursor back as the cursor query parameter. When next_cursor is null you have reached the end of the result set.

items
MCPHubScanListItem Β· object[]
required
limit
integer
required

The page size used for this response.

next_cursor
string | null

Opaque cursor for the next page, or null on the last page. Pass back verbatim as ?cursor=... β€” treat as opaque.

Example:

"eyJjcmVhdGVkX2F0IjoiMjAyNi0wNi0yNVQxMTozMjoxMS4xMjM0NTYrMDA6MDAiLCJqb2JfaWQiOiJhYmMtMTIzIn0"

total
integer | null

Total rows matching the filters. Only populated when the request set ?include_total=true; omitted by default because counting arbitrary filtered subsets defeats the point of cursor pagination.