You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1.Bus User enters a natural language query in the internal UI.
72
+
1.MCP Client Executor Startup
73
73
74
-
* This might be similar to installed/Web ChatGPT (etc), but those *cannot* be used to access MCPs since they cannot issue http calls. This is an internally developed app (or, perhaps an IDE tool)
75
-
* We are using a test version: `integration/mcp/mcp_client_executor.py`
74
+
* Calls *wellknown* endpoint to load schema
75
+
* This schema is similar to `docs/db.dbml` (already created by als)
76
76
77
-
2. MCP Client Executor sends the query + schema (as prompt or tool definition) to the external LLM, here, ChatGPT (requires API Key).
77
+
2. MCP Client Executor sends Bus User ***NL query + schema*** (as prompt or tool definition) to the external LLM, here, ChatGPT (requires API Key). LLM returns an ***MCP Tool Context*** JSON block.
78
78
79
-
* Tool definitions are OpenAI specific, so we are sending the schema in each prompt.
80
-
* This schema is derived from `docs/db.dbml` (already created by als)
81
-
* Note this strongly suggests this is a **subset** of your database.
79
+
* An MCP Client Executor might be similar in concept to installed/Web ChatGPT (etc), but those *cannot* be used to access MCPs since they cannot issue http calls. This is an internally developed app (or, perhaps an IDE tool)
80
+
81
+
* We are using a test version: `integration/mcp/mcp_client_executor.py`
82
+
* Tool definitions are OpenAI specific, so we are sending the schema (in each prompt)
82
83
83
-
3. LLM returns an MCP Tool Context JSON block.
84
+
* Note this strongly suggests this is a **subset** of your database.
85
+
* This schema is derived from `docs/db.dbml` (already created by als)
86
+
87
+
88
+
4. MCP Client Executor iterates through the Tool Context, calling the JSON:API Endpoint that enforces business logic.
89
+
90
+
Here is a typical `https://localhost:5656/.well-known/mcp.json` response (not yet implemented):
0 commit comments