mirror of
https://github.com/Kaelio/ktx.git
synced 2026-06-19 08:28:06 +02:00
Add MCP agent client setup support
This commit is contained in:
parent
658024dcf3
commit
0361449c8a
19 changed files with 745 additions and 146 deletions
|
|
@ -903,14 +903,16 @@ Add this test after the `dictionary_search` registration test:
|
|||
limit: 5,
|
||||
}),
|
||||
).resolves.toMatchObject({
|
||||
structuredContent: [
|
||||
{
|
||||
kind: 'table',
|
||||
id: 'public.orders',
|
||||
connectionId: 'warehouse',
|
||||
tableRef: { catalog: null, db: 'public', name: 'orders' },
|
||||
},
|
||||
],
|
||||
structuredContent: {
|
||||
refs: [
|
||||
{
|
||||
kind: 'table',
|
||||
id: 'public.orders',
|
||||
connectionId: 'warehouse',
|
||||
tableRef: { catalog: null, db: 'public', name: 'orders' },
|
||||
},
|
||||
],
|
||||
},
|
||||
});
|
||||
expect(discover.search).toHaveBeenCalledWith({
|
||||
query: 'orders',
|
||||
|
|
|
|||
|
|
@ -143,7 +143,9 @@ or `entity_details` tools.
|
|||
}
|
||||
```
|
||||
|
||||
**Output:** array of refs, each:
|
||||
**Output:** `{ refs: Ref[] }` — the MCP protocol requires `structuredContent`
|
||||
to be a JSON object, so the array of matches is wrapped under `refs`. Each
|
||||
ref is shaped:
|
||||
|
||||
```typescript
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue