AccuKnox MCP Server
OfficialClick on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@AccuKnox MCP Serverhow many cloud assets do I have?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
AccuKnox MCP Server - Testing Guide
Complete guide for testing MCP servers with stdio client, Gemini CLI, HTTP client, and VSCode Copilot.
š Table of Contents
Related MCP server: Juno MCP Server
Prerequisites
Python 3.10 or higher
pip package manager
Gemini CLI (optional, for AI integration)
VSCode or Cursor (optional, for IDE integration)
Project Structure
MCP_server/
āāā MCP_server.py # stdio server (for Gemini CLI)
āāā MCP_server_http.py # HTTP server (for web/remote)
āāā clients/
ā āāā __init__.py
ā āāā stdio_client.py # Test client for stdio
ā āāā http_client.py # Test client for HTTP
āāā shared/
ā āāā __init__.py
ā āāā tools.py # Tool implementations
ā āāā api.py # AccuKnox API client
āāā .vscode/
ā āāā mcp.json # VSCode Copilot configuration
āāā .env # Environment variables (create your own)
āāā requirements.txt
āāā README.mdInstallation
1. Clone/Setup Project
cd MCP_server2. Create Virtual Environment
python3 -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate3. Install Dependencies
pip install -r requirements.txt4. Configure Environment
Create .env file:
ACCUKNOX_BASE_URL=https://cspm.demo.accuknox.com
ACCUKNOX_API_TOKEN=your_token_hereTesting stdio Server
The stdio server uses standard input/output for communication, designed for local CLI integration.
With Test Client
Terminal 1: Start server (automatically started by client)
Terminal 2: Run test client
python3 clients/stdio_client.pyInteractive Menu:
Options:
1 - Count assets
2 - List 5 assets
3 - Search by category
4 - Get vulnerabilities
exit - Quit
Select: 1Example Output:
Total assets: 1247With Gemini CLI
Gemini CLI provides AI-powered natural language interactions with your MCP server.
1. Install Gemini CLI
pip install google-generativeai2. Configure MCP Server
# Add server to Gemini CLI (use absolute path)
gemini mcp add accuknox python3 /absolute/path/to/MCP_server.py3. Verify Configuration
gemini mcp list
# Output:
# accuknox: python3 /path/to/MCP_server.py4. Start Gemini CLI
gemini5. Test with Natural Language Queries
Example 1: Count Assets
You: How many cloud assets do I have?
Gemini: You have 1,247 cloud assets in your inventory.Example 2: Search by Category
You: Show me 5 Container assets
Gemini: Here are 5 Container assets:
1. nginx-prod (Container) - Region: us-east-1
2. redis-cache (Container) - Region: us-west-2
3. postgres-db (Container) - Region: eu-west-1
4. kafka-broker (Container) - Region: us-east-1
5. redis-sentinel (Container) - Region: ap-south-1Example 3: Security Vulnerabilities
You: What security vulnerabilities do my AI models have?
Gemini: Your AI models have 147 security issues:
⢠ML Models: 5 issues (1 Critical, 4 Medium)
⢠LLM Models: 136 issues (136 Critical)
⢠Datasets: 6 issues (6 High)
Immediate action required for 137 critical vulnerabilities.6. Remove Server (Optional)
gemini mcp remove accuknoxWith VSCode Copilot (stdio)
1. Create Configuration File
Create .vscode/mcp.json in your project root:
mkdir -p .vscode
nano .vscode/mcp.json2. Add stdio Server Configuration
{
"mcpServers": {
"accuknox-stdio": {
"command": "python3",
"args": ["${workspaceFolder}/MCP_server.py"],
"env": {
"ACCUKNOX_BASE_URL": "https://cspm.demo.accuknox.com",
"ACCUKNOX_API_TOKEN": "your_token_here"
}
}
}
}Note: Using ${workspaceFolder} makes the configuration portable across machines.
3. Activate in VSCode
Open your project in VSCode
VSCode automatically detects
.vscode/mcp.jsonClick "Start" when prompted
Open Copilot Chat:
Ctrl+Shift+I(Windows/Linux) orCmd+Shift+I(Mac)Enable Agent Mode (click brain icon )
Click tools icon () ā Enable
accuknox-stdio
4. Test with Copilot
@agent How many cloud assets do I have?
@agent Show me Container assets in AWS
@agent What are my model vulnerabilities?Testing HTTP Server
The HTTP server provides REST API access for web clients and remote integrations.
With HTTP Test Client
Terminal 1: Start HTTP server
python3 MCP_server_http.pyOutput:
======================================================================
AccuKnox MCP Server - HTTP
======================================================================
Server: http://localhost:8000
Tools: search_assets, get_model_vulnerabilities
Press Ctrl+C to shutdown
======================================================================
INFO: Uvicorn running on http://0.0.0.0:8000Terminal 2: Run test client
python3 clients/http_client.pyInteractive Menu:
Options:
1 - Count assets
2 - List 5 assets
3 - Search by category
4 - Get vulnerabilities
exit - Quit
Select: 4With VSCode Copilot (HTTP)
VSCode Copilot supports HTTP MCP servers starting from version 1.102+.
Prerequisites
VSCode 1.102 or higher
GitHub Copilot extension installed
HTTP MCP server running on
http://localhost:8000
Step 1: Verify HTTP Server
# Start HTTP server
python3 MCP_server_http.py
# In another terminal, verify it's running
curl http://localhost:8000/health
# Expected: {"status": "healthy"}Step 2: Configure VSCode
Option A: Project-Level Configuration (Recommended)
Create .vscode/mcp.json:
{
"servers": {
"accuknox-http": {
"type": "http",
"url": "http://localhost:8000"
}
},
"inputs": []
}Option B: Remote Server Configuration
For deployed servers:
{
"servers": {
"accuknox-http": {
"type": "http",
"url": "https://your-server.com:8000",
"headers": {
"Authorization": "Bearer ${input:api-token}"
}
}
},
"inputs": [
{
"type": "promptString",
"id": "api-token",
"description": "AccuKnox API Token",
"password": true
}
]
}Option C: Global Configuration
For all workspaces, create ~/.vscode/mcp.json:
{
"servers": {
"accuknox-http": {
"type": "http",
"url": "http://localhost:8000"
}
},
"inputs": []
}Step 3: Activate Server
Method 1: Automatic Detection
Open project in VSCode
VSCode detects
.vscode/mcp.jsonClick "Start" button in the file
Server status shows "running" in status bar
Method 2: Command Palette
Press
Ctrl+Shift+P(orCmd+Shift+Pon Mac)Type: "MCP: Add Server"
Select "HTTP/SSE"
Enter Server ID:
accuknox-httpEnter URL:
http://localhost:8000Choose Workspace or Global
Click Save
Method 3: Manual Configuration
Create
.vscode/mcp.jsonwith above contentSave file
VSCode auto-detects and shows Start button
Step 4: Enable Copilot Agent Mode
Open Copilot Chat:
Press
Ctrl+Shift+I(Windows/Linux)Press
Cmd+Shift+I(Mac)Or click Copilot icon in Activity Bar
Enable Agent Mode:
Click the brain icon () at top
Or type
@agentin chat
Configure Tools:
Click tools icon () at bottom
Find
accuknox-httpin listToggle ON to enable
Step 5: Test with Copilot
Example 1: Asset Inventory
@agent How many cloud assets do I have?
Copilot: You have 1,247 cloud assets in your inventory.Example 2: Category Search
@agent Show me 5 Container assets
Copilot: Here are 5 Container assets:
1. nginx-prod (Container) - Region: us-east-1
2. redis-cache (Container) - Region: us-west-2
3. postgres-db (Container) - Region: eu-west-1
4. kafka-broker (Container) - Region: us-east-1
5. redis-sentinel (Container) - Region: ap-south-1Example 3: Security Analysis
@agent What security vulnerabilities do my AI models have?
Copilot: Your AI models have 147 security issues:
⢠ML Models: 5 issues (1 Critical, 4 Medium)
⢠LLM Models: 136 issues (136 Critical)
⢠Datasets: 6 issues (6 High)
Critical attention required for 137 vulnerabilities.Example 4: Cloud Provider Filter
@agent List AWS assets in us-east-1 region
Copilot: Found 234 AWS assets in us-east-1 region...Quick Reference
Server Commands
Action | Command |
stdio server |
|
HTTP server |
|
stdio client |
|
HTTP client |
|
Configuration Paths
Tool | Config Location |
VSCode Copilot |
|
Gemini CLI | Managed by |
This server cannot be deployed
Maintenance
Related MCP Connectors
Let AI agents query data and act across all your business apps via MCP.
Access New Relic observability data through MCP - query metrics, logs, traces, entities, and more
Query your warehouse or a CSV with Claude/ChatGPT over MCP, governed by table-level ACL + audit.
Query your org's data in natural language ā read-only MCP access to SQL, NoSQL, files & warehouses.
Related MCP Servers
AlicenseBqualityBmaintenanceEnables MCP clients to interact with SentinelOne's cybersecurity platform for security analysis, threat investigation, and asset management through natural language queries. Provides read-only access to alerts, vulnerabilities, misconfigurations, and inventory data.3398MIT- AlicenseNot gradedqualityBmaintenanceEnables AI-powered security investigation and threat analysis by connecting MCP-compatible clients to Uptycs Juno.Apache 2.0
- AlicenseNot gradedqualityCmaintenanceEnables interaction with SentinelOne's security platform, including Purple AI, events, alerts, vulnerabilities, and asset inventory, through MCP.MIT
- AlicenseAqualityCmaintenanceExposes Tenable security operations as MCP tools for AI-powered security workflows, enabling asset, vulnerability, scan, plugin, and tag management via natural language.17MIT