Skip to main content
Create, list, and delete scan targets — the MCP servers, platforms, or endpoints that security tests run against.

Commands

qai targets list

List all configured targets.
qai targets list
Displays a table with Name, Type, URI, and ID for each target.

qai targets create

Create a new scan target.
qai targets create --name <NAME> --type <TYPE> [--uri <URI>]
Options:
OptionDescription
--nameHuman-readable name for the target.
--typeTarget type: server (MCP server) or platform (agentic platform).
--uriConnection endpoint (optional).

qai targets delete

Delete a scan target.
qai targets delete <ID> [--yes]
Arguments:
ArgumentDescription
IDTarget ID. Supports partial IDs (first 8+ characters).
Options:
OptionDescription
--yesSkip confirmation prompt.
Behavior:
  • Removes the target from the database
  • Associated runs are orphaned (their target_id is set to NULL)
  • Runs, findings, and evidence are not deleted
Examples:
# Delete with confirmation
qai targets delete a1b2c3d4
# Output:
# Delete target 'My Test Server'? Associated runs will be unlinked. [y/N]: y
# Deleted target 'My Test Server'. 2 runs unlinked.

# Delete without confirmation
qai targets delete a1b2c3d4 --yes
# Output:
# Deleted target 'My Test Server'. 0 runs unlinked.

# Using partial ID (8+ characters)
qai targets delete a1b2c3d4e5f6 --yes
# Works with just: qai targets delete a1b2c3d4 --yes
Partial ID matching requires at least 8 characters and must be unambiguous. If multiple targets match, you’ll be prompted to use a longer prefix.