A MCP Agent for TapDB
Project description
TapDB MCP Agent
概览
TapDB 的 MCP Agent,用于列出项目并执行只读 SQL 查询。
能力
Tools
提供 2 个核心工具:
-
list_projects- 列出当前可访问的项目
- 输入:无
- 返回:项目列表(包含
id、name、appid等信息)
-
list_project_tables- 查询指定项目的可访问数据表清单
- 输入:
project_id(string): 项目的数字 ID(来自list_projects)
- 返回:返回结果是一个对象列表,对象包含'table_name','description'等信息
-
execute_project_query- 对指定项目执行只读 SQL
- 输入:
project_id(string): 项目的数字 ID(来自list_projects)sql(string): 只读 SQL(仅 SELECT/DESC 等)result_format(string,optional): 选择'csv'或者'dict',默认是csvsave_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_ENDPOINT": "{cn=国内环境,sg=海外环境。默认是国内环境}"
}
}
}
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.6.tar.gz
(4.0 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tapdb_mcp_agent-0.0.6.tar.gz.
File metadata
- Download URL: tapdb_mcp_agent-0.0.6.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ea5b7422b346228bee3ee8c9a74249d90259b11761016fb7b8c9aa2294915e43
|
|
| MD5 |
788b5b32000f3a99808a68f4641922d9
|
|
| BLAKE2b-256 |
7fded276fb09e2e7919014eb866107268ccb87eced631ddd0b1f1129ff84f9a3
|
File details
Details for the file tapdb_mcp_agent-0.0.6-py3-none-any.whl.
File metadata
- Download URL: tapdb_mcp_agent-0.0.6-py3-none-any.whl
- Upload date:
- Size: 5.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c0f125555a97f4924441fa5fad3b77a55805d7c80866184dbb91897657d2a497
|
|
| MD5 |
628037a76c5ddb03cae84c5b4d951dc2
|
|
| BLAKE2b-256 |
453be141e5488fde904fdf4d3af242f4bfec18bce0a2b8587647a011fbe8a462
|