Back to MCP directory
publicPublicdnsLocal runtime

server

AgentMode是一个全功能的模型上下文协议(MCP)服务器,通过连接多种数据库、数据仓库、云服务等,为开发AI提供一体化数据集成解决方案。

article

README

🚀 AgentMode ✨

AgentMode是一款一体化的模型上下文协议(MCP)服务器,它能将你的编码AI与数十种数据库、数据仓库、数据管道、云服务等连接起来。该扩展旨在通过与各种数据和云平台实现无缝集成,简化你的开发工作流程。

🚀 快速开始

借助VS Code快速上手

  1. 安装我们的 VS Code扩展
  2. 点击AgentMode扩展旁边的“安装”按钮。
  3. 通过命令面板(在Windows和Linux系统中按 Ctrl+Shift+P,在macOS系统中按 Cmd+Shift+P)启动MCP服务器,然后输入“MCP”,选择“MCP: List Servers”并点击AgentMode。
  4. 点击VS Code右下角状态栏中的“AgentMode”文本,打开一个浏览器标签页,登录并设置你的连接。

不使用VS Code(Python包方式)

  1. 打开终端,使用 curl -LsSf https://astral.sh/uv/install.sh | sh 命令安装uv。
  2. 执行 uv init 命令。
  3. 执行 uv add agentmode 命令。
  4. 执行 uv run agentmode 命令。
VS Code的MCP配置 如果你安装了我们的VS Code扩展,它会自动为你创建或更新 `settings.json` 文件。 如果你手动安装了AgentMode,请在你的工作区中创建一个 `.vscode/settings.json` 文件,并将下面的 `YOUR_INSTALLATION_FOLDER` 替换为你的uv环境路径:
{
    "mcp": {
        "servers": {
            "agentmode": {
                "command": "cd 'YOUR_INSTALLATION_FOLDER' && uv run agentmode",
                "env": {}
            }
        }
    }
}
Cursor的MCP配置 请在你的主目录中创建一个 `~/.cursor/mcp.json` 文件。这样可以使MCP服务器在你所有的Cursor工作区中可用。 请将下面的 `YOUR_INSTALLATION_FOLDER` 替换为你设置uv环境的文件夹:
{
    "mcpServers": {
        "inputs": [],
        "servers": {
            "agentmode": {
                "command": "cd 'YOUR_INSTALLATION_FOLDER' && uv run agentmode",
                "env": {}
            }
        }
    }
}
Windsurf的MCP配置 打开 `~/.codeium/windsurf/mcp_config.json` 文件。 将下面的代码添加到JSON文件中。 点击Windsurf中的刷新按钮。 请将下面的 `YOUR_INSTALLATION_FOLDER` 替换为你设置uv环境的文件夹:
{
    "mcpServers": {
        "inputs": [],
        "servers": {
            "agentmode": {
                "command": "cd 'YOUR_INSTALLATION_FOLDER' && uv run agentmode",
                "env": {}
            }
        }
    }
}

📦 安装指南

借助VS Code安装

  1. 安装我们的 VS Code扩展
  2. 点击AgentMode扩展旁边的“安装”按钮。
  3. 通过命令面板(在Windows和Linux系统中按 Ctrl+Shift+P,在macOS系统中按 Cmd+Shift+P)启动MCP服务器,然后输入“MCP”,选择“MCP: List Servers”并点击AgentMode。
  4. 点击VS Code右下角状态栏中的“AgentMode”文本,打开一个浏览器标签页,登录并设置你的连接。

不使用VS Code(Python包方式)

  1. 打开终端,使用 curl -LsSf https://astral.sh/uv/install.sh | sh 命令安装uv。
  2. 执行 uv init 命令。
  3. 执行 uv add agentmode 命令。
  4. 执行 uv run agentmode 命令。

📚 详细文档

MCP(模型上下文协议) 🌐

AgentMode利用 模型上下文协议(MCP)使你的编码AI能够:

  • 访问和查询数据库及数据仓库。
  • 与数据管道进行交互,以实现实时或批量处理。
  • 使用网页浏览器。
  • 查看生产服务的日志。
  • 连接到云服务,用于存储、计算等。

连接设置 🔌

连接设置!

AgentMode支持广泛的连接类型,包括:

  • 数据库:MySQL、PostgreSQL等。
  • 数据仓库:Snowflake、BigQuery、Redshift等。
  • 数据管道:Airflow、Prefect等。
  • 云服务:AWS、Azure、Google Cloud等(即将推出!)

要配置连接,请按以下步骤操作:

  1. 启动MCP服务器,然后访问 http://localhost:13000/setup
  2. 点击你要设置的连接图标。
  3. 填写连接详细信息和凭证(所有凭证都存储在你的本地机器上)。
  4. 任何所需的依赖项将即时安装。

🛟 帮助

如果你遇到任何问题或有疑问,你可以:

💬 贡献

  • 添加更多的连接器和测试。
help

Runtime guide

cloud

Hosted runtime

Hosted servers run from a provider-managed environment. You usually connect the MCP client to the hosted endpoint or follow the provider's authorization flow, without keeping a local process alive

  1. Open provider connection page
  2. Authorize or copy endpoint
  3. Connect from your MCP client
terminal

Local runtime / other methods

Local servers run on your own machine or infrastructure. You normally copy the server_config into your MCP client, install the required package, and provide env variables from env_schema when needed

  1. Copy server_config
  2. Install required package
  3. Fill env variables and restart client