VS Code / Copilot
VS Code / GitHub Copilot
在 VS Code 或 GitHub Copilot MCP 配置中添加 TripGuru MCP server。
配置位置
可以放在工作区 .vscode/mcp.json 或用户级 MCP 配置中。团队仓库不要写入真实 key。
使用环境变量
{
"servers": {
"tripguru-mcp": {
"type": "http",
"url": "https://tripguru.ai/mcp",
"headers": {
"Authorization": "Bearer ${env:TRIPGURU_API_KEY}"
}
}
}
}
使用 VS Code Input
{
"inputs": [
{
"id": "tripguruApiKey",
"type": "promptString",
"description": "Tripguru API Key",
"password": true
}
],
"servers": {
"tripguru-mcp": {
"type": "http",
"url": "https://tripguru.ai/mcp",
"headers": {
"Authorization": "Bearer ${input:tripguruApiKey}"
}
}
}
}