← 返回首页
🔧

Claude Desktop 配置指南

📂 tools ⏱ 1 min 88 words

Claude Desktop 配置指南

位置

Windows: %APPDATA%\Claude\settings.json

完整配置示例

{
  "mcpServers": {
    "obsidian-vault": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-filesystem",
        "D:/SecondBrain"
      ]
    }
  },
  "allowedTools": [
    "read_file",
    "write_file",
    "edit_file",
    "grep",
    "find_files",
    "list_directory"
  ]
}

Agnes AI API 配置(如果使用)

{
  "providerOverrides": {
    "default": {
      "baseURL": "https://api.agnes.ai/v1",
      "apiKey": "${AGENTES_API_KEY}",
      "models": {
        "image": {
          "id": "flux-kontext-dev"
        },
        "video": {
          "id": "gemini-2.5-pro-preview-05-06"
        },
        "thinking": {
          "id": "gemini-2.5-pro-preview-05-06",
          "enableThinking": true
        },
        "fast": {
          "id": "gemini-2.0-flash-exp"
        }
      }
    }
  }
}

环境变量

在系统环境变量中设置:

AGENTES_API_KEY=your_api_key_here

验证配置

重启 Claude Desktop 后,发送以下消息测试:

请搜索我的笔记库,列出所有 tagged 为 #domain/tech 的笔记。

如果 MCP 配置正确,Claude 应该能返回结果。