Skip to main content
  • Cline
  • Continue
Cline is a VS Code extension that supports MCP servers.Installation
  1. Install the Cline extension from the VS Code marketplace
  2. Configure MCP settings in Cline’s settings UI or edit the config file
ConfigurationEdit ~/.cline/mcp_servers.json:
{
  "mcpServers": {
    "dbhub": {
      "command": "npx",
      "args": [
        "@bytebase/dbhub",
        "--transport",
        "stdio",
        "--dsn",
        "postgres://user:password@localhost:5432/dbname"
      ]
    }
  }
}

Workspace Configuration

For workspace-specific database connections, create .vscode/mcp_config.json:
{
  "mcpServers": {
    "workspace-db": {
      "command": "npx",
      "args": [
        "@bytebase/dbhub",
        "--config",
        "./dbhub.toml"
      ]
    }
  }
}

Troubleshooting

  1. Check the extension’s output panel for errors
  2. Verify DBHub is installed: npx @bytebase/dbhub --help
  3. Test the DSN connection outside VS Code
  4. Restart VS Code after configuration changes