@nestr/mcp 0.1.89 → 0.1.90
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.
- package/build/api/client.d.ts +9 -1
- package/build/api/client.d.ts.map +1 -1
- package/build/api/client.js +19 -2
- package/build/api/client.js.map +1 -1
- package/build/help/topics.js +3 -3
- package/build/tools/index.d.ts +119 -55
- package/build/tools/index.d.ts.map +1 -1
- package/build/tools/index.js +83 -5
- package/build/tools/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/tools/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAmC,KAAK,WAAW,EAA6C,MAAM,kBAAkB,CAAC;AAIhI,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAO5D,eAAO,MAAM,iBAAiB,EAAE,WAAW,CAAC,MAAM,CAIhD,CAAC;AAKH,eAAO,MAAM,eAAe;;;;;CAKlB,CAAC;AAQX,KAAK,iBAAiB,GAAG,OAAO,GAAG,YAAY,GAAG,UAAU,GAAG,UAAU,GAAG,QAAQ,CAAC;AAGrF,wBAAgB,mBAAmB,CACjC,IAAI,EAAE,OAAO,EACb,MAAM,EAAE,iBAAiB,EACzB,KAAK,EAAE,MAAM,GACZ;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,iBAAiB,CAAC;IAAC,KAAK,EAAE,OAAO,EAAE,CAAA;CAAE,CAWhE;AAeD,wBAAgB,eAAe,CAAC,CAAC,EAC/B,IAAI,EAAE,CAAC,EAAE,GAAG;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,OAAO,CAAC;IAAC,IAAI,EAAE,CAAC,EAAE,CAAA;CAAE,GAAG,CAAC,EAC7D,IAAI,GAAE,MAAM,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nB,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC7B,OAAO,CAAC,EAAE,eAAe,GACxB,OAAO,CAAC,UAAU,CAAC,CAkBrB"}
|
package/build/tools/index.js
CHANGED
|
@@ -385,10 +385,15 @@ const coerceIntArray = (schema) => z.preprocess((val) => {
|
|
|
385
385
|
}
|
|
386
386
|
return val;
|
|
387
387
|
}, schema);
|
|
388
|
+
// Shared description for the sort parameter on list/fetch tools. All of these
|
|
389
|
+
// endpoints honor a `sort` query param server-side (field name, '-' prefix for
|
|
390
|
+
// descending) — the same fields the search `sort:` operator uses.
|
|
391
|
+
const SORT_DESCRIPTION = "Field to sort by, e.g. 'title', 'createdAt', 'updatedAt', 'due', 'order' (manual order). Prefix with '-' for descending, e.g. '-updatedAt'.";
|
|
388
392
|
// Tool input schemas using Zod
|
|
389
393
|
export const schemas = {
|
|
390
394
|
listWorkspaces: z.object({
|
|
391
395
|
search: z.string().optional().describe("Search query to filter workspaces"),
|
|
396
|
+
sort: z.string().optional().describe(SORT_DESCRIPTION),
|
|
392
397
|
limit: z.number().optional().describe("Max results per page. Omit to see full count in meta.total."),
|
|
393
398
|
page: z.number().optional().describe("Page number (1-indexed) for pagination"),
|
|
394
399
|
}),
|
|
@@ -407,6 +412,7 @@ export const schemas = {
|
|
|
407
412
|
search: z.object({
|
|
408
413
|
workspaceId: z.string().describe("Workspace ID to search in"),
|
|
409
414
|
query: z.string().describe("Search query"),
|
|
415
|
+
sort: z.string().optional().describe(`${SORT_DESCRIPTION} Takes precedence over sort:/sort-order: operators in the query.`),
|
|
410
416
|
limit: z.number().optional().describe("Max results per page. Omit on first call to see meta.total count."),
|
|
411
417
|
page: z.number().optional().describe("Page number (1-indexed) for pagination"),
|
|
412
418
|
_listTitle: z.string().optional().describe("Short descriptive title for the list UI (e.g., \"Marketing projects\", \"Overdue tasks\"). Omit for default."),
|
|
@@ -418,6 +424,7 @@ export const schemas = {
|
|
|
418
424
|
}),
|
|
419
425
|
getNestChildren: z.object({
|
|
420
426
|
nestId: z.string().describe("Parent nest ID"),
|
|
427
|
+
sort: z.string().optional().describe(SORT_DESCRIPTION),
|
|
421
428
|
limit: z.number().optional().describe("Max results per page. Omit to see full count in meta.total."),
|
|
422
429
|
page: z.number().optional().describe("Page number for pagination"),
|
|
423
430
|
hints: z.boolean().optional().describe("Include contextual hints on each child nest (default: true). Set to false for large result sets or bulk operations where contextual signals aren't needed."),
|
|
@@ -469,17 +476,20 @@ export const schemas = {
|
|
|
469
476
|
}),
|
|
470
477
|
listCircles: z.object({
|
|
471
478
|
workspaceId: z.string().describe("Workspace ID"),
|
|
479
|
+
sort: z.string().optional().describe(SORT_DESCRIPTION),
|
|
472
480
|
limit: z.number().optional().describe("Max results per page. Omit to see full count in meta.total."),
|
|
473
481
|
page: z.number().optional().describe("Page number for pagination"),
|
|
474
482
|
}),
|
|
475
483
|
getCircleRoles: z.object({
|
|
476
484
|
workspaceId: z.string().describe("Workspace ID"),
|
|
477
485
|
circleId: z.string().describe("Circle ID"),
|
|
486
|
+
sort: z.string().optional().describe(SORT_DESCRIPTION),
|
|
478
487
|
limit: z.number().optional().describe("Max results per page. Omit to see full count in meta.total."),
|
|
479
488
|
page: z.number().optional().describe("Page number for pagination"),
|
|
480
489
|
}),
|
|
481
490
|
listRoles: z.object({
|
|
482
491
|
workspaceId: z.string().describe("Workspace ID"),
|
|
492
|
+
sort: z.string().optional().describe(SORT_DESCRIPTION),
|
|
483
493
|
limit: z.number().optional().describe("Max results per page. Omit to see full count in meta.total."),
|
|
484
494
|
page: z.number().optional().describe("Page number for pagination"),
|
|
485
495
|
}),
|
|
@@ -508,6 +518,7 @@ export const schemas = {
|
|
|
508
518
|
}),
|
|
509
519
|
getProjects: z.object({
|
|
510
520
|
workspaceId: z.string().describe("Workspace ID"),
|
|
521
|
+
sort: z.string().optional().describe(SORT_DESCRIPTION),
|
|
511
522
|
limit: z.number().optional().describe("Max results per page. Omit to see full count in meta.total."),
|
|
512
523
|
page: z.number().optional().describe("Page number for pagination"),
|
|
513
524
|
_listTitle: z.string().optional().describe("Short descriptive title for the list UI (e.g., \"Engineering projects\"). Omit for default."),
|
|
@@ -640,8 +651,10 @@ export const schemas = {
|
|
|
640
651
|
listTensions: z.object({
|
|
641
652
|
nestId: z.string().describe("ID of the circle or role to list tensions for"),
|
|
642
653
|
search: z.string().optional().describe("Search query to filter tensions"),
|
|
654
|
+
sort: z.string().optional().describe(SORT_DESCRIPTION),
|
|
643
655
|
limit: z.number().optional().describe("Max results to return"),
|
|
644
|
-
|
|
656
|
+
page: z.number().optional().describe("Page number for pagination"),
|
|
657
|
+
order: z.string().optional().describe("Deprecated alias of sort"),
|
|
645
658
|
}),
|
|
646
659
|
updateTension: z.object({
|
|
647
660
|
nestId: z.string().describe("ID of the circle or role the tension belongs to"),
|
|
@@ -797,6 +810,7 @@ export const toolDefinitions = [
|
|
|
797
810
|
type: "object",
|
|
798
811
|
properties: {
|
|
799
812
|
search: { type: "string", description: "Search query to filter workspaces" },
|
|
813
|
+
sort: { type: "string", description: SORT_DESCRIPTION },
|
|
800
814
|
limit: { type: "number", description: "Omit on first call to see meta.total count" },
|
|
801
815
|
page: { type: "number", description: "Page number (1-indexed) for pagination" },
|
|
802
816
|
stripDescription: { type: "boolean", description: "Set true to strip description fields from response, significantly reducing size. Ideal for bulk/index operations." },
|
|
@@ -863,6 +877,7 @@ export const toolDefinitions = [
|
|
|
863
877
|
properties: {
|
|
864
878
|
workspaceId: { type: "string", description: "Workspace ID to search in" },
|
|
865
879
|
query: { type: "string", description: "Search query with optional operators (e.g., 'label:role', 'assignee:me completed:false')" },
|
|
880
|
+
sort: { type: "string", description: `${SORT_DESCRIPTION} Takes precedence over sort:/sort-order: operators in the query.` },
|
|
866
881
|
limit: { type: "number", description: "Max results per page. Do NOT set on first call - let API return default with meta.total count showing total matches." },
|
|
867
882
|
page: { type: "number", description: "Page number (1-indexed) for fetching additional pages" },
|
|
868
883
|
stripDescription: { type: "boolean", description: "Set true to strip description fields from response, significantly reducing size. Ideal for bulk/index operations." },
|
|
@@ -896,6 +911,7 @@ export const toolDefinitions = [
|
|
|
896
911
|
type: "object",
|
|
897
912
|
properties: {
|
|
898
913
|
nestId: { type: "string", description: "Parent nest ID" },
|
|
914
|
+
sort: { type: "string", description: SORT_DESCRIPTION },
|
|
899
915
|
limit: { type: "number", description: "Omit on first call to see meta.total count" },
|
|
900
916
|
page: { type: "number", description: "Page number (1-indexed)" },
|
|
901
917
|
hints: { type: "boolean", description: "Include contextual hints (default: true). Set to false for large result sets or bulk operations." },
|
|
@@ -1074,6 +1090,7 @@ export const toolDefinitions = [
|
|
|
1074
1090
|
type: "object",
|
|
1075
1091
|
properties: {
|
|
1076
1092
|
workspaceId: { type: "string", description: "Workspace ID" },
|
|
1093
|
+
sort: { type: "string", description: SORT_DESCRIPTION },
|
|
1077
1094
|
limit: { type: "number", description: "Omit on first call to see meta.total count" },
|
|
1078
1095
|
page: { type: "number", description: "Page number (1-indexed)" },
|
|
1079
1096
|
stripDescription: { type: "boolean", description: "Set true to strip description fields from response, significantly reducing size. Ideal for large workspaces." },
|
|
@@ -1090,6 +1107,7 @@ export const toolDefinitions = [
|
|
|
1090
1107
|
properties: {
|
|
1091
1108
|
workspaceId: { type: "string", description: "Workspace ID" },
|
|
1092
1109
|
circleId: { type: "string", description: "Circle ID" },
|
|
1110
|
+
sort: { type: "string", description: SORT_DESCRIPTION },
|
|
1093
1111
|
limit: { type: "number", description: "Omit on first call to see meta.total count" },
|
|
1094
1112
|
page: { type: "number", description: "Page number (1-indexed)" },
|
|
1095
1113
|
stripDescription: { type: "boolean", description: "Set true to strip description fields from response, significantly reducing size. Ideal for large circles." },
|
|
@@ -1105,6 +1123,7 @@ export const toolDefinitions = [
|
|
|
1105
1123
|
type: "object",
|
|
1106
1124
|
properties: {
|
|
1107
1125
|
workspaceId: { type: "string", description: "Workspace ID" },
|
|
1126
|
+
sort: { type: "string", description: SORT_DESCRIPTION },
|
|
1108
1127
|
limit: { type: "number", description: "Omit on first call to see meta.total count" },
|
|
1109
1128
|
page: { type: "number", description: "Page number (1-indexed)" },
|
|
1110
1129
|
stripDescription: { type: "boolean", description: "Set true to strip description fields from response, significantly reducing size. Ideal for large workspaces." },
|
|
@@ -1179,6 +1198,7 @@ export const toolDefinitions = [
|
|
|
1179
1198
|
type: "object",
|
|
1180
1199
|
properties: {
|
|
1181
1200
|
workspaceId: { type: "string", description: "Workspace ID" },
|
|
1201
|
+
sort: { type: "string", description: SORT_DESCRIPTION },
|
|
1182
1202
|
limit: { type: "number", description: "Omit on first call to see meta.total count" },
|
|
1183
1203
|
page: { type: "number", description: "Page number (1-indexed)" },
|
|
1184
1204
|
stripDescription: { type: "boolean", description: "Set true to strip description fields from response, significantly reducing size. Ideal for large workspaces." },
|
|
@@ -1601,8 +1621,12 @@ export const toolDefinitions = [
|
|
|
1601
1621
|
properties: {
|
|
1602
1622
|
nestId: { type: "string", description: "ID of the circle or role to list tensions for" },
|
|
1603
1623
|
search: { type: "string", description: "Search query to filter tensions" },
|
|
1624
|
+
sort: { type: "string", description: SORT_DESCRIPTION },
|
|
1604
1625
|
limit: { type: "number", description: "Max results to return" },
|
|
1605
|
-
|
|
1626
|
+
page: { type: "number", description: "Page number (1-indexed)" },
|
|
1627
|
+
// The legacy `order` alias is deliberately not advertised — the Zod
|
|
1628
|
+
// schema still accepts it so existing callers keep working, but new
|
|
1629
|
+
// clients should only learn the canonical `sort` param.
|
|
1606
1630
|
},
|
|
1607
1631
|
required: ["nestId"],
|
|
1608
1632
|
},
|
|
@@ -1907,6 +1931,42 @@ export function unescapeRichTextFields(args) {
|
|
|
1907
1931
|
}
|
|
1908
1932
|
return changed ? result : args;
|
|
1909
1933
|
}
|
|
1934
|
+
/**
|
|
1935
|
+
* Extract sort:/sort-order:/limit: directives from a search query string.
|
|
1936
|
+
*
|
|
1937
|
+
* The REST API only honors sorting and limits via the `sort`/`limit` query
|
|
1938
|
+
* params — these operators inside the search string are dropped from free-text
|
|
1939
|
+
* matching and otherwise ignored. Translating them here keeps the documented
|
|
1940
|
+
* search syntax (see nestr_help('search')) working. The query string itself is
|
|
1941
|
+
* sent unmodified: the server strips operator terms from text matching anyway.
|
|
1942
|
+
*
|
|
1943
|
+
* First occurrence wins for each directive, matching the server-side parsing
|
|
1944
|
+
* of these operators elsewhere in Nestr.
|
|
1945
|
+
*/
|
|
1946
|
+
export function extractSearchDirectives(query) {
|
|
1947
|
+
let sortField;
|
|
1948
|
+
let sortOrder;
|
|
1949
|
+
let limit;
|
|
1950
|
+
for (const term of query.split(/\s+/)) {
|
|
1951
|
+
const lower = term.toLowerCase();
|
|
1952
|
+
if (sortField === undefined && lower.startsWith("sort:")) {
|
|
1953
|
+
sortField = term.slice("sort:".length);
|
|
1954
|
+
}
|
|
1955
|
+
else if (sortOrder === undefined && lower.startsWith("sort-order:")) {
|
|
1956
|
+
sortOrder = lower.slice("sort-order:".length);
|
|
1957
|
+
}
|
|
1958
|
+
else if (limit === undefined && lower.startsWith("limit:")) {
|
|
1959
|
+
const parsed = Number.parseInt(lower.slice("limit:".length), 10);
|
|
1960
|
+
if (!Number.isNaN(parsed) && parsed > 0)
|
|
1961
|
+
limit = parsed;
|
|
1962
|
+
}
|
|
1963
|
+
}
|
|
1964
|
+
let sort;
|
|
1965
|
+
if (sortField) {
|
|
1966
|
+
sort = sortOrder === "desc" && !sortField.startsWith("-") ? `-${sortField}` : sortField;
|
|
1967
|
+
}
|
|
1968
|
+
return { sort, limit };
|
|
1969
|
+
}
|
|
1910
1970
|
export async function handleToolCall(client, name, args, context) {
|
|
1911
1971
|
const sanitizedArgs = unescapeRichTextFields(args);
|
|
1912
1972
|
const shouldStripDescription = sanitizedArgs.stripDescription === true;
|
|
@@ -2114,6 +2174,7 @@ async function _handleToolCall(client, name, args, context) {
|
|
|
2114
2174
|
const parsed = schemas.listWorkspaces.parse(args);
|
|
2115
2175
|
const workspaces = await client.listWorkspaces({
|
|
2116
2176
|
search: parsed.search,
|
|
2177
|
+
sort: parsed.sort,
|
|
2117
2178
|
limit: parsed.limit,
|
|
2118
2179
|
page: parsed.page,
|
|
2119
2180
|
cleanText: true,
|
|
@@ -2142,7 +2203,13 @@ async function _handleToolCall(client, name, args, context) {
|
|
|
2142
2203
|
}
|
|
2143
2204
|
case "nestr_search": {
|
|
2144
2205
|
const parsed = schemas.search.parse(args);
|
|
2145
|
-
const
|
|
2206
|
+
const directives = extractSearchDirectives(parsed.query);
|
|
2207
|
+
const results = await client.searchWorkspace(parsed.workspaceId, parsed.query, {
|
|
2208
|
+
sort: parsed.sort ?? directives.sort,
|
|
2209
|
+
limit: parsed.limit ?? directives.limit,
|
|
2210
|
+
page: parsed.page,
|
|
2211
|
+
cleanText: true,
|
|
2212
|
+
});
|
|
2146
2213
|
return formatResult(completableResponse(compactResponse(results), "search", parsed._listTitle || `Search: ${parsed.query}`));
|
|
2147
2214
|
}
|
|
2148
2215
|
case "nestr_get_nest": {
|
|
@@ -2157,6 +2224,7 @@ async function _handleToolCall(client, name, args, context) {
|
|
|
2157
2224
|
case "nestr_get_nest_children": {
|
|
2158
2225
|
const parsed = schemas.getNestChildren.parse(args);
|
|
2159
2226
|
const children = await client.getNestChildren(parsed.nestId, {
|
|
2227
|
+
sort: parsed.sort,
|
|
2160
2228
|
limit: parsed.limit,
|
|
2161
2229
|
page: parsed.page,
|
|
2162
2230
|
cleanText: true,
|
|
@@ -2275,6 +2343,7 @@ async function _handleToolCall(client, name, args, context) {
|
|
|
2275
2343
|
case "nestr_list_circles": {
|
|
2276
2344
|
const parsed = schemas.listCircles.parse(args);
|
|
2277
2345
|
const circles = await client.listCircles(parsed.workspaceId, {
|
|
2346
|
+
sort: parsed.sort,
|
|
2278
2347
|
limit: parsed.limit,
|
|
2279
2348
|
page: parsed.page,
|
|
2280
2349
|
cleanText: true,
|
|
@@ -2283,12 +2352,13 @@ async function _handleToolCall(client, name, args, context) {
|
|
|
2283
2352
|
}
|
|
2284
2353
|
case "nestr_get_circle_roles": {
|
|
2285
2354
|
const parsed = schemas.getCircleRoles.parse(args);
|
|
2286
|
-
const roles = await client.getCircleRoles(parsed.workspaceId, parsed.circleId, { limit: parsed.limit, page: parsed.page, cleanText: true });
|
|
2355
|
+
const roles = await client.getCircleRoles(parsed.workspaceId, parsed.circleId, { sort: parsed.sort, limit: parsed.limit, page: parsed.page, cleanText: true });
|
|
2287
2356
|
return formatResult(compactResponse(roles, "role"));
|
|
2288
2357
|
}
|
|
2289
2358
|
case "nestr_list_roles": {
|
|
2290
2359
|
const parsed = schemas.listRoles.parse(args);
|
|
2291
2360
|
const roles = await client.listRoles(parsed.workspaceId, {
|
|
2361
|
+
sort: parsed.sort,
|
|
2292
2362
|
limit: parsed.limit,
|
|
2293
2363
|
page: parsed.page,
|
|
2294
2364
|
cleanText: true,
|
|
@@ -2331,6 +2401,7 @@ async function _handleToolCall(client, name, args, context) {
|
|
|
2331
2401
|
case "nestr_get_projects": {
|
|
2332
2402
|
const parsed = schemas.getProjects.parse(args);
|
|
2333
2403
|
const projects = await client.getWorkspaceProjects(parsed.workspaceId, {
|
|
2404
|
+
sort: parsed.sort,
|
|
2334
2405
|
limit: parsed.limit,
|
|
2335
2406
|
page: parsed.page,
|
|
2336
2407
|
cleanText: true,
|
|
@@ -2610,7 +2681,14 @@ async function _handleToolCall(client, name, args, context) {
|
|
|
2610
2681
|
}
|
|
2611
2682
|
case "nestr_list_tensions": {
|
|
2612
2683
|
const parsed = schemas.listTensions.parse(args);
|
|
2613
|
-
const tensions = await client.listTensions(parsed.nestId, parsed.search, {
|
|
2684
|
+
const tensions = await client.listTensions(parsed.nestId, parsed.search, {
|
|
2685
|
+
// `order` is the legacy name for this option — it was never honored
|
|
2686
|
+
// by the API (which reads `sort`), so route both through sort.
|
|
2687
|
+
sort: parsed.sort ?? parsed.order,
|
|
2688
|
+
limit: parsed.limit,
|
|
2689
|
+
page: parsed.page,
|
|
2690
|
+
cleanText: true,
|
|
2691
|
+
});
|
|
2614
2692
|
return formatResult(compactResponse(enrichHints(tensions)));
|
|
2615
2693
|
}
|
|
2616
2694
|
case "nestr_update_tension": {
|