MCPcopy Create free account
hub / github.com/KerwinMai/Multi-Agent-Exp / execute_sql

Function execute_sql

mcp_sql_server.py:24–34  ·  view source on GitHub ↗

执行SQL查询 Args: sql: SQL查询语句 db_type: 数据库类型(sqlite) Returns: JSON格式的查询结果

(sql: str)

Source from the content-addressed store, hash-verified

22
23@mcp.tool()
24def execute_sql(sql: str) -> str:
25 """执行SQL查询
26
27 Args:
28 sql: SQL查询语句
29 db_type: 数据库类型(sqlite)
30
31 Returns:
32 JSON格式的查询结果
33 """
34 return _execute_sqlite(sql)
35
36
37def _execute_sqlite(sql: str) -> str:

Callers

nothing calls this directly

Calls 1

_execute_sqliteFunction · 0.85

Tested by

no test coverage detected