VS Code + GitHub Copilot Setup¶
Connect VS Code with GitHub Copilot to TI Mindmap HUB's threat intelligence platform via MCP.
Prerequisites¶
- VS Code 1.99+ (download)
- GitHub Copilot extension installed and active
- TI Mindmap HUB API Key — generate one from My Profile → MCP Server API Keys (ti-mindmap-hub.com/profile). See Account & Access. Not needed if you use OAuth.
Setup¶
1. Create MCP Configuration¶
In your project folder (or user settings), create .vscode/mcp.json:
{
"servers": {
"ti-mindmap": {
"type": "http",
"url": "https://mcp.ti-mindmap-hub.com/mcp",
"headers": {
"X-API-Key": "${input:tiMindmapApiKey}"
}
}
},
"inputs": [
{
"id": "tiMindmapApiKey",
"type": "promptString",
"description": "TI Mindmap HUB API Key",
"password": true
}
]
}
2. Reload VS Code¶
Press Ctrl+Shift+P (or Cmd+Shift+P on macOS) and run:
3. Enter API Key¶
When prompted, enter your TI Mindmap HUB API key (format: tim_xxxxxxxxxxxx).
Alternative: OAuth Sign-In (No API Key)¶
The server supports OAuth 2.1 with dynamic client registration and loopback redirects, so recent VS Code versions with MCP authorization support can sign you in with your TI Mindmap HUB account instead of using a key. Omit the headers block:
When the server starts, VS Code asks you to allow authentication and opens the TI Mindmap HUB sign-in page in your browser. If your VS Code version does not offer the sign-in prompt, use the API key configuration above.
Alternative: Hardcoded API Key¶
If you prefer not to be prompted each time:
{
"servers": {
"ti-mindmap": {
"type": "http",
"url": "https://mcp.ti-mindmap-hub.com/mcp",
"headers": {
"X-API-Key": "tim_your_api_key_here"
}
}
}
}
⚠️ Security Warning: Don't commit API keys to version control. Add
.vscode/mcp.jsonto your.gitignore.
User-Level Configuration¶
To make TI Mindmap available in all projects, add to your VS Code settings (settings.json):
{
"mcp.servers": {
"ti-mindmap": {
"type": "http",
"url": "https://mcp.ti-mindmap-hub.com/mcp",
"headers": {
"X-API-Key": "tim_your_api_key_here"
}
}
}
}
Using with GitHub Copilot¶
Open Copilot Chat¶
Press Ctrl+Shift+I (or Cmd+Shift+I on macOS) to open Copilot Chat.
Verify Connection¶
- Click on the Tools icon (🔧) in the chat
- You should see ti-mindmap listed with 27 tools
Example Prompts¶
List recent reports:
Get report details:
Search for CVEs:
Get weekly briefing:
Search IOCs:
Get MITRE ATT&CK TTPs:
Submit article for analysis:
Available Tools¶
| Category | Tools |
|---|---|
| Reports | list_reports, get_report_details, get_report_content, get_available_sources, get_available_tags |
| Briefings | get_latest_briefing, list_briefings, get_briefing_by_date |
| IOCs | search_ioc, export_iocs_csv |
| CVEs | search_cve, search_cves_by_keyword, list_cves, get_cves_by_article, get_cve_statistics |
| STIX | get_stix_bundle, list_stix_bundles, get_stix_statistics |
| Knowledge Graph | kg_get_graph_stats, kg_search_entities, kg_get_entity_cluster, kg_get_entity_timeline, kg_search_attack_path, kg_find_cross_report_links, kg_get_related_reports |
| Other | get_statistics, submit_article |
See MCP Server for parameters.
Example Workflows¶
Investigating a Threat¶
1. "List the latest reports about APT29"
2. "Get the full details for the first report"
3. "Show me the MITRE ATT&CK TTPs from this report"
4. "Search for any CVEs mentioned in this report"
5. "Get the STIX bundle for this report"
Daily Threat Review¶
1. "What's in the latest weekly briefing?"
2. "List all critical CVEs from the past 7 days"
3. "Show me reports about ransomware from this week"
IOC Investigation¶
1. "Search for reports mentioning IP 192.168.1.100"
2. "Search for the domain evil.example.com"
3. "Look up hash d41d8cd98f00b204e9800998ecf8427e"
Troubleshooting¶
Tools not appearing¶
- Verify
.vscode/mcp.jsonexists and is valid JSON - Reload VS Code (
Developer: Reload Window) - Check that your API key is correct
Authentication errors¶
- Check the key status in My Profile → MCP Server API Keys (ti-mindmap-hub.com/profile)
- Ensure the key is
Activeand notExpiredorRevoked(keys expire after 365 days) - Check for typos in the configuration
Connection timeout¶
- Check your internet connection
- Verify the server is accessible:
curl https://mcp.ti-mindmap-hub.com/health - Check if a firewall is blocking the connection
View logs¶
- Open Output panel (
Ctrl+Shift+U) - Select "GitHub Copilot" from the dropdown
- Look for MCP-related messages
Security Best Practices¶
- Use input prompts for API keys instead of hardcoding
- Add to .gitignore:
- Rotate keys regularly in your account settings
- Use separate keys for different projects/environments
Support¶
- MCP Server Documentation: MCP Server
- Issues: GitHub Issues
- Email: info@ti-mindmap-hub.com