@seatable/mcp-seatable 1.3.4 → 1.3.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export const registerListCollaborators = (server, { client }) => {
|
|
2
2
|
server.registerTool('list_collaborators', {
|
|
3
3
|
title: 'List Collaborators',
|
|
4
|
-
description: 'List users who have access to this base. Returns email (internal user ID) and display name. Use the email values when writing to collaborator columns.',
|
|
4
|
+
description: 'List users who have access to this base. Returns email (internal user ID) and display name. Use the email values when writing to collaborator columns. Call this once to resolve @auth.local addresses in collaborator columns before displaying them to the user.',
|
|
5
5
|
inputSchema: {
|
|
6
6
|
type: 'object',
|
|
7
7
|
properties: {},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"listCollaborators.js","sourceRoot":"","sources":["../../../src/mcp/tools/listCollaborators.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,yBAAyB,GAAkB,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE;IAC3E,MAAM,CAAC,YAAY,CACf,oBAAoB,EACpB;QACI,KAAK,EAAE,oBAAoB;QAC3B,WAAW,EAAE,
|
|
1
|
+
{"version":3,"file":"listCollaborators.js","sourceRoot":"","sources":["../../../src/mcp/tools/listCollaborators.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,yBAAyB,GAAkB,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE;IAC3E,MAAM,CAAC,YAAY,CACf,oBAAoB,EACpB;QACI,KAAK,EAAE,oBAAoB;QAC3B,WAAW,EAAE,oQAAoQ;QACjR,WAAW,EAAE;YACT,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE,EAAE;YACd,QAAQ,EAAE,EAAE;SACf;QACD,WAAW,EAAE,EAAE,YAAY,EAAE,IAAI,EAAE,eAAe,EAAE,KAAK,EAAE,cAAc,EAAE,IAAI,EAAE,aAAa,EAAE,KAAK,EAAE;KAC1G,EACD,KAAK,IAAI,EAAE;QACP,MAAM,KAAK,GAAG,MAAM,MAAM,CAAC,iBAAiB,EAAE,CAAA;QAC9C,OAAO,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,EAAE,CAAC,EAAE,CAAA;IACvE,CAAC,CACJ,CAAA;AACL,CAAC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"querySql.d.ts","sourceRoot":"","sources":["../../../src/mcp/tools/querySql.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAA;AAQ1C,eAAO,MAAM,gBAAgB,EAAE,
|
|
1
|
+
{"version":3,"file":"querySql.d.ts","sourceRoot":"","sources":["../../../src/mcp/tools/querySql.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAA;AAQ1C,eAAO,MAAM,gBAAgB,EAAE,aAsC9B,CAAA"}
|
|
@@ -7,7 +7,22 @@ const InputSchema = z.object({
|
|
|
7
7
|
export const registerQuerySql = (server, { client, getInputSchema }) => {
|
|
8
8
|
server.registerTool('query_sql', {
|
|
9
9
|
title: 'Query SQL',
|
|
10
|
-
description:
|
|
10
|
+
description: `Execute SQL queries against SeaTable (SELECT, UPDATE, DELETE, INSERT). Use ? placeholders for parameters.
|
|
11
|
+
|
|
12
|
+
Syntax rules:
|
|
13
|
+
- Quote table/column names with backticks: \`Table Name\`, \`Column Name\` (not double quotes).
|
|
14
|
+
- SELECT returns max 100 rows by default. Use LIMIT to get more (up to 10,000).
|
|
15
|
+
- ORDER BY columns must appear in the SELECT field list.
|
|
16
|
+
- No JOIN keyword. Use implicit joins: FROM \`T1\`, \`T2\` WHERE \`T1\`.\`col\` = \`T2\`.\`col\`. Only inner joins are supported.
|
|
17
|
+
- No subqueries.
|
|
18
|
+
- Empty strings are treated as NULL. Use IS NULL / IS NOT NULL instead of = "".
|
|
19
|
+
- Date functions available in SELECT only: date(year, month, day), year(), month(), day(), dateAdd(), now(), today().
|
|
20
|
+
|
|
21
|
+
UPDATE limitations:
|
|
22
|
+
- SET only accepts literal values (strings, numbers, booleans). No functions (date(), now(), upper()…) and no expressions (Amount + 10) allowed.
|
|
23
|
+
- Columns not updatable via SQL: image, file, formula, link, link-formula, geolocation, auto-number, button. Use the dedicated tools (upload_file, link_rows) instead.
|
|
24
|
+
|
|
25
|
+
If a query fails, do not retry with similar syntax. Switch to an alternative tool (e.g. update_rows, find_rows) instead.`,
|
|
11
26
|
inputSchema: getInputSchema(InputSchema),
|
|
12
27
|
annotations: { readOnlyHint: false, destructiveHint: true, idempotentHint: false, openWorldHint: false },
|
|
13
28
|
}, async (args) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"querySql.js","sourceRoot":"","sources":["../../../src/mcp/tools/querySql.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAGvB,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAE7C,MAAM,WAAW,GAAG,CAAC,CAAC,MAAM,CAAC;IACzB,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,4CAA4C,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC,MAAM,GAAG,CAAC,EAAE,2BAA2B,CAAC;IACxI,UAAU,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,4CAA4C,CAAC;CAClJ,CAAC,CAAA;AAEF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