Skip to main content

A MCP Agent for TapDB

Project description

TapDB MCP Agent

概览

TapDB 的 MCP Agent,用于列出项目并执行只读 SQL 查询。

能力

Tools

提供 2 个核心工具:

  • list_projects

    • 列出当前可访问的项目
    • 输入:无
    • 返回:项目列表(包含 idnameappid 等信息)
  • list_project_tables

    • 查询指定项目的可访问数据表清单
    • 输入:
      • project_id (string): 项目的数字 ID(来自 list_projects
    • 返回:返回结果是一个对象列表,对象包含'table_name','table_type','description'等信息
  • execute_project_query

    • 对指定项目执行只读 SQL
    • 输入:
      • project_id (string): 项目的数字 ID(来自 list_projects
      • sql (string): 只读 SQL(仅 SELECT/DESC 等)
      • result_format (string,optional): 选择'csv'或者'dict',默认是csv
      • save_file_path (string,optional): 本地保存文件路径,结果写入该文件,并返回一个空list
    • 返回:result_format=csv时返回一个list[list[str,Any]],=dict时返回list[dict[str, Any]]

从源码构建

cd /path/to/tapdb-mcp-agent
uv pip install .
uv build

与 Cline 一起使用

# 添加到 cline_mcp_settings.json
"mcpServers": {
  "tapdb-mcp-agent": {
    "command": "uv",
    "args": [
      "run",
      "--with",
      "tapdb-mcp-agent",
      "tapdb-mcp-agent"
    ],
    "env": {
      "TAPDB_MCP_KEY": "{由TapDB分配给您的Access Key}",
      "TAPDB_MCP_BASE_URL": "{由TapDB分配给您的后端服务地址(HTTPS)}"
    }
  }
}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tapdb_mcp_agent-0.0.4.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tapdb_mcp_agent-0.0.4-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

Details for the file tapdb_mcp_agent-0.0.4.tar.gz.

File metadata

  • Download URL: tapdb_mcp_agent-0.0.4.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.11

File hashes

Hashes for tapdb_mcp_agent-0.0.4.tar.gz
Algorithm Hash digest
SHA256 d578a60e1fe10a1f43d44eb8239fb44e782de50d69d03da9a74e68472702e419
MD5 9bc5ac643139657a9279cc7e292a3a25
BLAKE2b-256 c2e02d586a16cf2a0c6c6f05bbc94c17ab532efa420c39935b577aa1e8d99c24

See more details on using hashes here.

File details

Details for the file tapdb_mcp_agent-0.0.4-py3-none-any.whl.

File metadata

File hashes

Hashes for tapdb_mcp_agent-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 3a2712dffa5d840e043d241a450fa81c18b9f683ae1be4cf2f75a37f4f29465a
MD5 89879e34d266f6218829d8fa9a6f805b
BLAKE2b-256 4d5b336813e132c9ee2cc67477908e90991113afdd91f03f7d18ff91d1779cbf

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page