Skip to content

Commit 30fffe7

Browse files
- Added robot test MCP HTTPS List Providers Canonical.
- Added robot test `MCP HTTPS List Services Canonical`. - Added robot test `MCP HTTPS List Resources Canonical`. - Added robot test `MCP HTTPS List Methods Canonical`. - Added robot test `MCP HTTPS Describe Table Canonical`.
1 parent 10159b8 commit 30fffe7

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

docs/mcp.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ Then, assuming you have a `stackql` MCP server serving streamable HTTP on port `
4444

4545
./build/stackql_mcp_client exec --client-type=http --url=http://127.0.0.1:9992 --exec.action list_methods --exec.args '{"provider": "google", "service": "compute", "resource": "networks"}'
4646

47+
./build/stackql_mcp_client exec --client-type=http --url=http://127.0.0.1:9992 --exec.action meta.describe_table --exec.args '{"provider": "google", "service": "compute", "resource": "networks"}'
48+
4749
./build/stackql_mcp_client exec --client-type=http --url=http://127.0.0.1:9992 --exec.action validate_query_json_v2 --exec.args '{"sql": "select name from google.compute.networks where project = '"'"'stackql-demo'"'"';"}'
4850

4951
./build/stackql_mcp_client exec --client-type=http --url=http://127.0.0.1:9992 --exec.action query_json_v2 --exec.args '{"sql": "select name from google.compute.networks where project = '"'"'stackql-demo'"'"';"}'

internal/stackql/mcpbackend/mcp_service_stackql.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ func (s *simpleStackqlInterrogator) GetShowMethods(hI dto.HierarchyInput) (strin
148148

149149
func (s *simpleStackqlInterrogator) GetDescribeTable(hI dto.HierarchyInput) (string, error) {
150150
sb := strings.Builder{}
151-
sb.WriteString("DESCRIBE TABLE")
151+
sb.WriteString("DESCRIBE ")
152152
if hI.Provider == "" || hI.Service == "" || hI.Resource == "" {
153153
return "", fmt.Errorf("provider, service and / or resource not specified")
154154
}

0 commit comments

Comments
 (0)