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 (get one from ti-mindmap-hub.com/settings)
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: 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 16 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 |
| CVEs | search_cve, search_cves_by_keyword, list_cves, get_cves_by_article, get_cve_statistics |
| Other | get_statistics, submit_article |
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¶
- Verify your API key at ti-mindmap-hub.com/settings
- Ensure the key has not expired
- 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 Overview
- Issues: GitHub Issues
- Email: info@ti-mindmap-hub.com