accueil / serveurs / Données & BDD / io.github.cuipengdba/agentsql
io.github.cuipengdba/agentsql
serveur MCP (Model Context Protocol) · agentsql v2.3.0
Référencé dans l'annuaire. Seul le pentest comportemental fait foi, et il n'a pas encore été exécuté sur ce serveur.
Est-ce que io.github.cuipengdba/agentsql est sûr ?
Au dernier audit MCP Hub, le serveur MCP « io.github.cuipengdba/agentsql » est classé « Non encore testé ». Référencé dans l'annuaire. Seul le pentest comportemental fait foi, et il n'a pas encore été exécuté sur ce serveur. Le verdict est réévalué en continu ; consultez la fiche pour l'état à jour.
Méthode : MCP Hub analyse la description de chaque outil (couche 1) et, pour le verdict fort, exécute le serveur dans une micro-VM isolée avec leurres et réseau bloqué (couche 2). On publie des noms et des compteurs, jamais le contenu brut renvoyé par un outil.
Les 16 outils
- begin_transaction≈ 506 tokens
预检完整有序 DML 计划并开始 PostgreSQL transaction;不执行 statement。
Paramètres, retour & exemple (15)
Paramètresdialect· string · requisrequest_id· string · requissession_id· string · requis
显式 AgentSQL session ID;不得传 MCP transport session IDstatements· array · requisapproval_id· string · optionnelbody_digest· string · requis
参与 continuation proof 的 32-byte hex digestowner_epoch· integer · requisexpected_seq· integer · optionnelkey_revision· integer · requisserver_major· integer · requisdatasource_id· string · requistransaction_id· string · requispolicy_revision· integer · requiscontinuation_proof· string · requisdatasource_revision· integer · requis
Exemple d'appel{"name": "begin_transaction", "arguments": {"dialect": "texte", "request_id": "texte", "session_id": "texte", "statements": [], "body_digest": "texte", "owner_epoch": 1}}Exemple de retour{"content": [{"type": "text", "text": "…"}], "structuredContent": {"data": {}, "reason": "texte", "decision": "texte", "tx_effect": "texte", "db_outcome": "texte", "error_code": "texte", "suggestion": "texte", "error_stage": "texte", "audit_durability": "texte", "retry_same_request": true, "terminal_event_digest": "texte", "connection_disposition": "texte"}} - close_session≈ 322 tokens
使用 continuation proof 关闭显式 AgentSQL session。
Paramètres, retour & exemple (6)
Paramètresrequest_id· string · requissession_id· string · requis
显式 AgentSQL session ID;不得传 MCP transport session IDbody_digest· string · requis
参与 continuation proof 的 32-byte hex digestowner_epoch· integer · requisexpected_seq· integer · optionnelcontinuation_proof· string · requis
Exemple d'appel{"name": "close_session", "arguments": {"request_id": "texte", "session_id": "texte", "body_digest": "texte", "owner_epoch": 1, "continuation_proof": "texte"}}Exemple de retour{"content": [{"type": "text", "text": "…"}], "structuredContent": {"data": {}, "reason": "texte", "decision": "texte", "tx_effect": "texte", "db_outcome": "texte", "error_code": "texte", "suggestion": "texte", "error_stage": "texte", "audit_durability": "texte", "retry_same_request": true, "terminal_event_digest": "texte", "connection_disposition": "texte"}} - commit_transaction≈ 339 tokens
提交已完整执行计划的 transaction,并在 disposition 后执行 final fence。
Paramètres, retour & exemple (7)
Paramètresrequest_id· string · requissession_id· string · requis
显式 AgentSQL session ID;不得传 MCP transport session IDbody_digest· string · requis
参与 continuation proof 的 32-byte hex digestowner_epoch· integer · requisexpected_seq· integer · optionneltransaction_id· string · requiscontinuation_proof· string · requis
Exemple d'appel{"name": "commit_transaction", "arguments": {"request_id": "texte", "session_id": "texte", "body_digest": "texte", "owner_epoch": 1, "transaction_id": "texte", "continuation_proof": "texte"}}Exemple de retour{"content": [{"type": "text", "text": "…"}], "structuredContent": {"data": {}, "reason": "texte", "decision": "texte", "tx_effect": "texte", "db_outcome": "texte", "error_code": "texte", "suggestion": "texte", "error_stage": "texte", "audit_durability": "texte", "retry_same_request": true, "terminal_event_digest": "texte", "connection_disposition": "texte"}} - execute_approved≈ 234 tokens
对已批准且未过期的审批单执行一次封存 SQL;仅接受 approval_id,执行时重新检查身份、策略和规则。
Paramètres, retour & exemple (1)
Paramètresapproval_id· string · requis
request_approval 返回的审批单号
Exemple d'appel{"name": "execute_approved", "arguments": {"approval_id": "texte"}}Exemple de retour{"content": [{"type": "text", "text": "…"}], "structuredContent": {"data": {}, "reason": "texte", "decision": "texte", "tx_effect": "texte", "db_outcome": "texte", "error_code": "texte", "suggestion": "texte", "error_stage": "texte", "audit_durability": "texte", "retry_same_request": true, "terminal_event_digest": "texte", "connection_disposition": "texte"}} - execute_transaction_statement≈ 365 tokens
按计划 ordinal 顺序执行一条已 seal 的 DML;SQL 不能在 execute 阶段替换。
Paramètres, retour & exemple (9)
Paramètresordinal· integer · requisrequest_id· string · requissession_id· string · requis
显式 AgentSQL session ID;不得传 MCP transport session IDbody_digest· string · requis
参与 continuation proof 的 32-byte hex digestowner_epoch· integer · requisexpected_seq· integer · optionneloperation_id· string · requistransaction_id· string · requiscontinuation_proof· string · requis
Exemple d'appel{"name": "execute_transaction_statement", "arguments": {"ordinal": 1, "request_id": "texte", "session_id": "texte", "body_digest": "texte", "owner_epoch": 1, "operation_id": "texte"}}Exemple de retour{"content": [{"type": "text", "text": "…"}], "structuredContent": {"data": {}, "reason": "texte", "decision": "texte", "tx_effect": "texte", "db_outcome": "texte", "error_code": "texte", "suggestion": "texte", "error_stage": "texte", "audit_durability": "texte", "retry_same_request": true, "terminal_event_digest": "texte", "connection_disposition": "texte"}} - execute_write≈ 270 tokens
执行受保护的 INSERT、UPDATE、DELETE 或 DDL;必须说明 reason,可能被拦截或转审批。
Paramètres, retour & exemple (3)
Paramètressql· string · requis
单条 INSERT、UPDATE、DELETE 或 DDLreason· string · requis
写操作目的、影响范围和回滚方案,必填datasource_id· string · requis
授权数据源 ID
Exemple d'appel{"name": "execute_write", "arguments": {"sql": "texte", "reason": "texte", "datasource_id": "texte"}}Exemple de retour{"content": [{"type": "text", "text": "…"}], "structuredContent": {"data": {}, "reason": "texte", "decision": "texte", "tx_effect": "texte", "db_outcome": "texte", "error_code": "texte", "suggestion": "texte", "error_stage": "texte", "audit_durability": "texte", "retry_same_request": true, "terminal_event_digest": "texte", "connection_disposition": "texte"}} - explain_query≈ 246 tokens
只评估一条 SQL,不执行查询;已验证计划能力的方言会附带执行计划,可能返回拒绝、告警或需审批结论。
Paramètres, retour & exemple (2)
Paramètressql· string · requis
单条 SQL,不允许堆叠多语句datasource_id· string · requis
授权数据源 ID
Exemple d'appel{"name": "explain_query", "arguments": {"sql": "texte", "datasource_id": "texte"}}Exemple de retour{"content": [{"type": "text", "text": "…"}], "structuredContent": {"data": {}, "reason": "texte", "decision": "texte", "tx_effect": "texte", "db_outcome": "texte", "error_code": "texte", "suggestion": "texte", "error_stage": "texte", "audit_durability": "texte", "retry_same_request": true, "terminal_event_digest": "texte", "connection_disposition": "texte"}} - find_documents≈ 331 tokens
在授权 MongoDB 集合执行受控只读查询;仅返回指定字段,按规则脱敏并写入持久审计。
Paramètres, retour & exemple (5)
Paramètreslimit· integer · requis
最多返回 1 到 100 条文档fields· null|array · requis
显式返回的顶层标量字段,1 到 32 个filter· object · requis
1 到 8 个字符串等值过滤条件,不接受操作符collection· string · requis
指定数据库中的集合名,只允许简单标识符datasource_id· string · requis
授权的 MongoDB 数据源 ID
Exemple d'appel{"name": "find_documents", "arguments": {"limit": 1, "fields": [], "filter": {}, "collection": "texte", "datasource_id": "texte"}}Exemple de retour{"content": [{"type": "text", "text": "…"}], "structuredContent": {"data": {}, "reason": "texte", "decision": "texte", "tx_effect": "texte", "db_outcome": "texte", "error_code": "texte", "suggestion": "texte", "error_stage": "texte", "audit_durability": "texte", "retry_same_request": true, "terminal_event_digest": "texte", "connection_disposition": "texte"}} - get_approval_result≈ 231 tokens
查询当前 Agent 自己的审批单状态;其他 Agent 的单号按未找到处理。
Paramètres, retour & exemple (1)
Paramètresapproval_id· string · requis
request_approval 返回的审批单号
Exemple d'appel{"name": "get_approval_result", "arguments": {"approval_id": "texte"}}Exemple de retour{"content": [{"type": "text", "text": "…"}], "structuredContent": {"data": {}, "reason": "texte", "decision": "texte", "tx_effect": "texte", "db_outcome": "texte", "error_code": "texte", "suggestion": "texte", "error_stage": "texte", "audit_durability": "texte", "retry_same_request": true, "terminal_event_digest": "texte", "connection_disposition": "texte"}} - get_session_status≈ 327 tokens
查询显式 AgentSQL session 状态;Mcp-Session-Id 仅为 transport metadata。
Paramètres, retour & exemple (6)
Paramètresrequest_id· string · requissession_id· string · requis
显式 AgentSQL session ID;不得传 MCP transport session IDbody_digest· string · requis
参与 continuation proof 的 32-byte hex digestowner_epoch· integer · requisexpected_seq· integer · optionnelcontinuation_proof· string · requis
Exemple d'appel{"name": "get_session_status", "arguments": {"request_id": "texte", "session_id": "texte", "body_digest": "texte", "owner_epoch": 1, "continuation_proof": "texte"}}Exemple de retour{"content": [{"type": "text", "text": "…"}], "structuredContent": {"data": {}, "reason": "texte", "decision": "texte", "tx_effect": "texte", "db_outcome": "texte", "error_code": "texte", "suggestion": "texte", "error_stage": "texte", "audit_durability": "texte", "retry_same_request": true, "terminal_event_digest": "texte", "connection_disposition": "texte"}} - get_transaction_status≈ 339 tokens
幂等查询 transaction 状态与 outcome/audit/disposition 三轴。
Paramètres, retour & exemple (7)
Paramètresrequest_id· string · requissession_id· string · requis
显式 AgentSQL session ID;不得传 MCP transport session IDbody_digest· string · requis
参与 continuation proof 的 32-byte hex digestowner_epoch· integer · requisexpected_seq· integer · optionneltransaction_id· string · requiscontinuation_proof· string · requis
Exemple d'appel{"name": "get_transaction_status", "arguments": {"request_id": "texte", "session_id": "texte", "body_digest": "texte", "owner_epoch": 1, "transaction_id": "texte", "continuation_proof": "texte"}}Exemple de retour{"content": [{"type": "text", "text": "…"}], "structuredContent": {"data": {}, "reason": "texte", "decision": "texte", "tx_effect": "texte", "db_outcome": "texte", "error_code": "texte", "suggestion": "texte", "error_stage": "texte", "audit_durability": "texte", "retry_same_request": true, "terminal_event_digest": "texte", "connection_disposition": "texte"}} - list_datasources≈ 199 tokens
列出当前 Agent 获授权的数据源;仅返回公开标识信息,不返回连接参数或密钥。
Paramètres, retour & exemple (0)
Exemple d'appel{"name": "list_datasources", "arguments": {}}Exemple de retour{"content": [{"type": "text", "text": "…"}], "structuredContent": {"data": [], "reason": "texte", "decision": "texte", "tx_effect": "texte", "db_outcome": "texte", "error_code": "texte", "suggestion": "texte", "error_stage": "texte", "audit_durability": "texte", "retry_same_request": true, "terminal_event_digest": "texte", "connection_disposition": "texte"}} - list_schema≈ 252 tokens
读取授权数据源结构并按列权限裁剪;可指定安全的 table 或 schema.table。
Paramètres, retour & exemple (2)
Paramètrestable· string · optionnel
可选表名,只允许 table 或 schema.tabledatasource_id· string · requis
授权数据源 ID,先调用 list_datasources 获取
Exemple d'appel{"name": "list_schema", "arguments": {"datasource_id": "texte"}}Exemple de retour{"content": [{"type": "text", "text": "…"}], "structuredContent": {"data": [], "reason": "texte", "decision": "texte", "tx_effect": "texte", "db_outcome": "texte", "error_code": "texte", "suggestion": "texte", "error_stage": "texte", "audit_durability": "texte", "retry_same_request": true, "terminal_event_digest": "texte", "connection_disposition": "texte"}} - open_session≈ 224 tokens
创建显式 AgentSQL logical session;返回一次性 continuation secret。
Paramètres, retour & exemple (2)
Paramètrestenant_id· string · optionnelprincipal_id· string · optionnel
Exemple d'appel{"name": "open_session", "arguments": {"tenant_id": "texte", "principal_id": "texte"}}Exemple de retour{"content": [{"type": "text", "text": "…"}], "structuredContent": {"data": {}, "reason": "texte", "decision": "texte", "tx_effect": "texte", "db_outcome": "texte", "error_code": "texte", "suggestion": "texte", "error_stage": "texte", "audit_durability": "texte", "retry_same_request": true, "terminal_event_digest": "texte", "connection_disposition": "texte"}} - query≈ 242 tokens
执行受保护的单条 SELECT;结果自动限行和脱敏,危险查询可能被拦截或转审批。
Paramètres, retour & exemple (2)
Paramètressql· string · requis
单条 SQL,不允许堆叠多语句datasource_id· string · requis
授权数据源 ID
Exemple d'appel{"name": "query", "arguments": {"sql": "texte", "datasource_id": "texte"}}Exemple de retour{"content": [{"type": "text", "text": "…"}], "structuredContent": {"data": {}, "reason": "texte", "decision": "texte", "tx_effect": "texte", "db_outcome": "texte", "error_code": "texte", "suggestion": "texte", "error_stage": "texte", "audit_durability": "texte", "retry_same_request": true, "terminal_event_digest": "texte", "connection_disposition": "texte"}} - query_analytics≈ 332 tokens
在精确授权的 ClickHouse MergeTree 单表读取显式列;限制等值过滤、资源和返回行数,执行脱敏及持久审计。
Paramètres, retour & exemple (5)
Paramètreslimit· integer · requis
最多返回 1 到 100 行table· string · requis
当前数据库内已精确授权的 MergeTree 表名fields· null|array · requis
1 到 16 个显式返回列filter· object · requis
1 到 8 个 String 列的等值条件datasource_id· string · requis
授权的 ClickHouse 数据源 ID
Exemple d'appel{"name": "query_analytics", "arguments": {"limit": 1, "table": "texte", "fields": [], "filter": {}, "datasource_id": "texte"}}Exemple de retour{"content": [{"type": "text", "text": "…"}], "structuredContent": {"data": {}, "reason": "texte", "decision": "texte", "tx_effect": "texte", "db_outcome": "texte", "error_code": "texte", "suggestion": "texte", "error_stage": "texte", "audit_durability": "texte", "retry_same_request": true, "terminal_event_digest": "texte", "connection_disposition": "texte"}} - read_key≈ 252 tokens
读取授权 Redis/Valkey 单个 UTF-8 字符串键;最多 64 KiB,按键权限、脱敏规则和持久审计处理。
Paramètres, retour & exemple (2)
Paramètreskey· string · requis
精确键名,不接受通配符或原生命令datasource_id· string · requis
授权的 Redis 或 Valkey 数据源 ID
Exemple d'appel{"name": "read_key", "arguments": {"key": "texte", "datasource_id": "texte"}}Exemple de retour{"content": [{"type": "text", "text": "…"}], "structuredContent": {"data": {}, "reason": "texte", "decision": "texte", "tx_effect": "texte", "db_outcome": "texte", "error_code": "texte", "suggestion": "texte", "error_stage": "texte", "audit_durability": "texte", "retry_same_request": true, "terminal_event_digest": "texte", "connection_disposition": "texte"}} - request_approval≈ 262 tokens
将 SQL 单向提升为人工审批,不执行 SQL;必须提供 reason。
Paramètres, retour & exemple (3)
Paramètressql· string · requis
需要提交人工审批的单条 SQLreason· string · requis
申请审批的原因、影响和回滚方案,必填datasource_id· string · requis
授权数据源 ID
Exemple d'appel{"name": "request_approval", "arguments": {"sql": "texte", "reason": "texte", "datasource_id": "texte"}}Exemple de retour{"content": [{"type": "text", "text": "…"}], "structuredContent": {"data": {}, "reason": "texte", "decision": "texte", "tx_effect": "texte", "db_outcome": "texte", "error_code": "texte", "suggestion": "texte", "error_stage": "texte", "audit_durability": "texte", "retry_same_request": true, "terminal_event_digest": "texte", "connection_disposition": "texte"}} - rollback_transaction≈ 338 tokens
回滚 transaction,并在 disposition 后执行 final fence。
Paramètres, retour & exemple (7)
Paramètresrequest_id· string · requissession_id· string · requis
显式 AgentSQL session ID;不得传 MCP transport session IDbody_digest· string · requis
参与 continuation proof 的 32-byte hex digestowner_epoch· integer · requisexpected_seq· integer · optionneltransaction_id· string · requiscontinuation_proof· string · requis
Exemple d'appel{"name": "rollback_transaction", "arguments": {"request_id": "texte", "session_id": "texte", "body_digest": "texte", "owner_epoch": 1, "transaction_id": "texte", "continuation_proof": "texte"}}Exemple de retour{"content": [{"type": "text", "text": "…"}], "structuredContent": {"data": {}, "reason": "texte", "decision": "texte", "tx_effect": "texte", "db_outcome": "texte", "error_code": "texte", "suggestion": "texte", "error_stage": "texte", "audit_durability": "texte", "retry_same_request": true, "terminal_event_digest": "texte", "connection_disposition": "texte"}} - search_vectors≈ 354 tokens
在精确授权的 Milvus 2.6.25 集合中进行单向量相似度检索;只返回显式授权的标量字段,执行脱敏与持久审计。
Paramètres, retour & exemple (6)
Paramètrestop_k· integer · requis
最多返回 1 到 20 个命中fields· null|array · requis
1 到 16 个显式返回的标量字段vector· null|array · requis
一个有限 float32 查询向量,维度与字段一致collection· string · requis
精确授权的单个 collection 名称vector_field· string · requis
FloatVector 字段名称datasource_id· string · requis
授权的 Milvus 数据源 ID
Exemple d'appel{"name": "search_vectors", "arguments": {"top_k": 1, "fields": [], "vector": [], "collection": "texte", "vector_field": "texte", "datasource_id": "texte"}}Exemple de retour{"content": [{"type": "text", "text": "…"}], "structuredContent": {"data": {}, "reason": "texte", "decision": "texte", "tx_effect": "texte", "db_outcome": "texte", "error_code": "texte", "suggestion": "texte", "error_stage": "texte", "audit_durability": "texte", "retry_same_request": true, "terminal_event_digest": "texte", "connection_disposition": "texte"}}
C'est votre serveur ?
Revendiquez-le sur l'espace créateur (preuve GitHub, domaine ou npm) pour afficher le badge « propriétaire vérifié » et lancer un pentest comportemental à la demande afin d'obtenir le badge « Vérifié ».