Skip to content

MCP Integration Overview

TestNet implements the MCP (Model Context Protocol) standard, allowing AI assistants like Claude Code, Cursor, Codex, etc. to directly invoke TestNet platform capabilities.

What is MCP?

MCP is an open standard protocol published by Anthropic for integrating AI assistants with external systems. Through MCP, AI assistants can:

  • Call Tools: Execute asset queries, workflow execution, and other operations
  • Access Resources: Read project lists, workflow lists, and other data
  • Use Prompts: Use predefined Prompt templates

MCP Capabilities Provided by TestNet

8 MCP Tools

Tool NameFunction
testnet_query_assetsQuery asset list
testnet_get_asset_detailGet asset details
testnet_run_workflowExecute a workflow
testnet_list_workflowsList available workflows
testnet_list_toolsList available tools
testnet_run_toolExecute a single tool
testnet_get_task_statusQuery task status
testnet_list_projectsList all projects

3 MCP Resources

Resource URIContent
testnet://projectsProject list
testnet://workflowsWorkflow list
testnet://toolsTool list

5 MCP Prompt Templates

Prompt NameFunction
asset_inventory_summaryAsset inventory summary
workflow_selectorWorkflow recommendation selector
vul_triageVulnerability triage & remediation
recon_planAsset reconnaissance plan generation
mock_test_guideMock test authoring guide

See MCP Prompt Templates for details.


Usage Scenario Examples

Scenario 1: AI Assistant Helps with Asset Inventory

User: Help me query subdomains under project proj_001

Claude: I'll call TestNet to query...
[Calling testnet_query_assets(projectId="proj_001", assetType="sub_domain")]

Found 15 subdomains:
- api.example.com
- www.example.com
...

Scenario 2: AI Assistant Triggers Security Scan

User: Execute the domain recon workflow on example.com

Claude: OK, I'll execute the workflow...
[Calling testnet_run_workflow(workflowId="domain-recon-pipeline", target="example.com", assetType="DOMAIN")]

Workflow started

MCP Endpoints

TestNet MCP service endpoints:

EndpointMethodDescription
/mcp/v1/toolsGETGet tool definition list
/mcp/v1/tools/callPOSTCall a tool
/mcp/v1/resourcesGETGet resource list
/mcp/v1/resources/readGETRead resource content
/mcp/v1/promptsGETGet prompt list
/mcp/v1/prompts/getPOSTGet rendered prompt content

Released under the MIT License