@cyanheads/brapi-mcp-server 0.7.10 → 0.7.12
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/CLAUDE.md +32 -25
- package/Dockerfile +19 -5
- package/README.md +7 -4
- package/changelog/0.7.x/0.7.11.md +43 -0
- package/changelog/0.7.x/0.7.12.md +35 -0
- package/changelog/template.md +62 -40
- package/dist/config/alias-credentials.d.ts +1 -1
- package/dist/config/alias-credentials.d.ts.map +1 -1
- package/dist/config/alias-credentials.js +24 -8
- package/dist/config/alias-credentials.js.map +1 -1
- package/dist/config/builtin-aliases.js.map +1 -1
- package/dist/config/server-config.d.ts +1 -1
- package/dist/config/server-config.d.ts.map +1 -1
- package/dist/config/server-config.js +3 -1
- package/dist/config/server-config.js.map +1 -1
- package/dist/mcp-server/resources/definitions/brapi-calls.resource.d.ts +3 -3
- package/dist/mcp-server/resources/definitions/brapi-calls.resource.d.ts.map +1 -1
- package/dist/mcp-server/resources/definitions/brapi-calls.resource.js +1 -1
- package/dist/mcp-server/resources/definitions/brapi-filters.resource.d.ts +3 -3
- package/dist/mcp-server/resources/definitions/brapi-filters.resource.d.ts.map +1 -1
- package/dist/mcp-server/resources/definitions/brapi-filters.resource.js +1 -1
- package/dist/mcp-server/resources/definitions/brapi-germplasm.resource.d.ts +6 -6
- package/dist/mcp-server/resources/definitions/brapi-germplasm.resource.d.ts.map +1 -1
- package/dist/mcp-server/resources/definitions/brapi-germplasm.resource.js +1 -1
- package/dist/mcp-server/resources/definitions/brapi-server-info.resource.d.ts +3 -3
- package/dist/mcp-server/resources/definitions/brapi-server-info.resource.d.ts.map +1 -1
- package/dist/mcp-server/resources/definitions/brapi-server-info.resource.js +1 -1
- package/dist/mcp-server/resources/definitions/brapi-study.resource.d.ts +6 -6
- package/dist/mcp-server/resources/definitions/brapi-study.resource.d.ts.map +1 -1
- package/dist/mcp-server/resources/definitions/brapi-study.resource.js +1 -1
- package/dist/mcp-server/resources/definitions/brapi-variable.resource.d.ts +6 -6
- package/dist/mcp-server/resources/definitions/brapi-variable.resource.d.ts.map +1 -1
- package/dist/mcp-server/resources/definitions/brapi-variable.resource.js +1 -1
- package/dist/mcp-server/tools/definitions/brapi-build-phenotype-matrix.tool.d.ts +19 -14
- package/dist/mcp-server/tools/definitions/brapi-build-phenotype-matrix.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/brapi-build-phenotype-matrix.tool.js +34 -0
- package/dist/mcp-server/tools/definitions/brapi-build-phenotype-matrix.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/brapi-connect.tool.d.ts +12 -12
- package/dist/mcp-server/tools/definitions/brapi-connect.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/brapi-dataframe-describe.tool.d.ts +2 -2
- package/dist/mcp-server/tools/definitions/brapi-dataframe-describe.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/brapi-dataframe-export.tool.d.ts +14 -14
- package/dist/mcp-server/tools/definitions/brapi-dataframe-export.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/brapi-dataframe-query.tool.d.ts +9 -4
- package/dist/mcp-server/tools/definitions/brapi-dataframe-query.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/brapi-dataframe-query.tool.js +31 -0
- package/dist/mcp-server/tools/definitions/brapi-dataframe-query.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/brapi-describe-filters.tool.d.ts +6 -6
- package/dist/mcp-server/tools/definitions/brapi-describe-filters.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/brapi-export-genotype-matrix.tool.d.ts +11 -11
- package/dist/mcp-server/tools/definitions/brapi-export-genotype-matrix.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/brapi-find-genotype-calls.tool.d.ts +11 -11
- package/dist/mcp-server/tools/definitions/brapi-find-genotype-calls.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/brapi-find-germplasm.tool.d.ts +6 -6
- package/dist/mcp-server/tools/definitions/brapi-find-germplasm.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/brapi-find-images.tool.d.ts +6 -6
- package/dist/mcp-server/tools/definitions/brapi-find-images.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/brapi-find-locations.tool.d.ts +6 -6
- package/dist/mcp-server/tools/definitions/brapi-find-locations.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/brapi-find-observations.tool.d.ts +6 -6
- package/dist/mcp-server/tools/definitions/brapi-find-observations.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/brapi-find-studies.tool.d.ts +6 -6
- package/dist/mcp-server/tools/definitions/brapi-find-studies.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/brapi-find-variables.tool.d.ts +7 -7
- package/dist/mcp-server/tools/definitions/brapi-find-variables.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/brapi-find-variants.tool.d.ts +6 -6
- package/dist/mcp-server/tools/definitions/brapi-find-variants.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/brapi-germplasm-performance.tool.d.ts +6 -6
- package/dist/mcp-server/tools/definitions/brapi-germplasm-performance.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/brapi-get-germplasm.tool.d.ts +6 -6
- package/dist/mcp-server/tools/definitions/brapi-get-germplasm.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/brapi-get-image.tool.d.ts +6 -6
- package/dist/mcp-server/tools/definitions/brapi-get-image.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/brapi-get-study.tool.d.ts +6 -6
- package/dist/mcp-server/tools/definitions/brapi-get-study.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/brapi-raw-get.tool.d.ts +6 -6
- package/dist/mcp-server/tools/definitions/brapi-raw-get.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/brapi-raw-search.tool.d.ts +7 -7
- package/dist/mcp-server/tools/definitions/brapi-raw-search.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/brapi-server-info.tool.d.ts +9 -9
- package/dist/mcp-server/tools/definitions/brapi-server-info.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/brapi-submit-observations.tool.d.ts +23 -27
- package/dist/mcp-server/tools/definitions/brapi-submit-observations.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/brapi-submit-observations.tool.js +41 -55
- package/dist/mcp-server/tools/definitions/brapi-submit-observations.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/brapi-walk-pedigree.tool.d.ts +8 -8
- package/dist/mcp-server/tools/definitions/brapi-walk-pedigree.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/index.d.ts +829 -824
- package/dist/mcp-server/tools/definitions/index.d.ts.map +1 -1
- package/dist/mcp-server/tools/shared/find-helpers.js.map +1 -1
- package/dist/mcp-server/tools/shared/observations.js.map +1 -1
- package/dist/mcp-server/tools/shared/orientation-envelope.d.ts +12 -12
- package/dist/services/brapi-client/brapi-client.d.ts +2 -3
- package/dist/services/brapi-client/brapi-client.d.ts.map +1 -1
- package/dist/services/brapi-client/brapi-client.js +16 -19
- package/dist/services/brapi-client/brapi-client.js.map +1 -1
- package/dist/services/brapi-client/types.d.ts +2 -2
- package/dist/services/brapi-dialect/detect.d.ts +1 -1
- package/dist/services/brapi-dialect/detect.js.map +1 -1
- package/dist/services/brapi-dialect/index.d.ts +2 -2
- package/dist/services/brapi-dialect/index.js +1 -1
- package/dist/services/brapi-dialect/index.js.map +1 -1
- package/dist/services/canvas-bridge/canvas-bridge.d.ts +1 -1
- package/dist/services/canvas-bridge/canvas-bridge.d.ts.map +1 -1
- package/dist/services/canvas-bridge/canvas-bridge.js.map +1 -1
- package/dist/services/capability-registry/capability-registry.d.ts +1 -1
- package/dist/services/capability-registry/capability-registry.d.ts.map +1 -1
- package/dist/services/capability-registry/capability-registry.js +1 -1
- package/dist/services/capability-registry/capability-registry.js.map +1 -1
- package/dist/services/ontology-resolver/ontology-resolver.d.ts.map +1 -1
- package/dist/services/ontology-resolver/ontology-resolver.js.map +1 -1
- package/dist/services/reference-data-cache/reference-data-cache.d.ts +2 -2
- package/dist/services/reference-data-cache/reference-data-cache.d.ts.map +1 -1
- package/dist/services/reference-data-cache/reference-data-cache.js +1 -1
- package/dist/services/reference-data-cache/reference-data-cache.js.map +1 -1
- package/dist/services/server-registry/server-registry.d.ts.map +1 -1
- package/dist/services/server-registry/server-registry.js.map +1 -1
- package/dist/services/server-registry/types.d.ts +1 -1
- package/manifest.json +8 -6
- package/package.json +15 -14
- package/server.json +3 -3
|
@@ -45,11 +45,11 @@ export declare const brapiConnect: import("@cyanheads/mcp-ts-core").ToolDefiniti
|
|
|
45
45
|
}, z.core.$strip>;
|
|
46
46
|
auth: z.ZodObject<{
|
|
47
47
|
mode: z.ZodEnum<{
|
|
48
|
-
none: "none";
|
|
49
|
-
sgn: "sgn";
|
|
50
|
-
oauth2: "oauth2";
|
|
51
48
|
api_key: "api_key";
|
|
52
49
|
bearer: "bearer";
|
|
50
|
+
none: "none";
|
|
51
|
+
oauth2: "oauth2";
|
|
52
|
+
sgn: "sgn";
|
|
53
53
|
}>;
|
|
54
54
|
headerName: z.ZodOptional<z.ZodString>;
|
|
55
55
|
expiresAt: z.ZodOptional<z.ZodString>;
|
|
@@ -63,10 +63,10 @@ export declare const brapiConnect: import("@cyanheads/mcp-ts-core").ToolDefiniti
|
|
|
63
63
|
id: z.ZodString;
|
|
64
64
|
source: z.ZodEnum<{
|
|
65
65
|
"env-override": "env-override";
|
|
66
|
-
"url-pattern": "url-pattern";
|
|
67
|
-
"server-name": "server-name";
|
|
68
|
-
"organization-name": "organization-name";
|
|
69
66
|
fallback: "fallback";
|
|
67
|
+
"organization-name": "organization-name";
|
|
68
|
+
"server-name": "server-name";
|
|
69
|
+
"url-pattern": "url-pattern";
|
|
70
70
|
}>;
|
|
71
71
|
envVar: z.ZodString;
|
|
72
72
|
disabledSearchEndpoints: z.ZodArray<z.ZodString>;
|
|
@@ -90,14 +90,14 @@ export declare const brapiConnect: import("@cyanheads/mcp-ts-core").ToolDefiniti
|
|
|
90
90
|
notes: z.ZodArray<z.ZodString>;
|
|
91
91
|
fetchedAt: z.ZodString;
|
|
92
92
|
}, z.core.$strip>, readonly [{
|
|
93
|
-
readonly reason:
|
|
93
|
+
readonly reason: 'auth_token_exchange_failed';
|
|
94
94
|
readonly code: JsonRpcErrorCode.Forbidden;
|
|
95
|
-
readonly when:
|
|
96
|
-
readonly recovery:
|
|
95
|
+
readonly when: 'SGN or OAuth token exchange against the BrAPI /token endpoint failed';
|
|
96
|
+
readonly recovery: 'Verify the credentials and that the server exposes /token before retrying.';
|
|
97
97
|
}, {
|
|
98
|
-
readonly reason:
|
|
98
|
+
readonly reason: 'auth_no_access_token';
|
|
99
99
|
readonly code: JsonRpcErrorCode.Forbidden;
|
|
100
|
-
readonly when:
|
|
101
|
-
readonly recovery:
|
|
100
|
+
readonly when: 'Token endpoint responded but did not return an access_token';
|
|
101
|
+
readonly recovery: 'Confirm the credentials are valid and the upstream IdP issues access tokens for this grant.';
|
|
102
102
|
}], undefined>;
|
|
103
103
|
//# sourceMappingURL=brapi-connect.tool.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"brapi-connect.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/brapi-connect.tool.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAqBjE,eAAO,MAAM,YAAY
|
|
1
|
+
{"version":3,"file":"brapi-connect.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/brapi-connect.tool.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAqBjE,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAWX,4BAA4B;;mBAE9B,sEAAsE;uBAClE,4EAA4E;;qBAG9E,sBAAsB;;mBAExB,6DAA6D;uBAEjE,6FAA6F;cAoEnG,CAAC"}
|
|
@@ -34,9 +34,9 @@ export declare const brapiDataframeDescribe: import("@cyanheads/mcp-ts-core").To
|
|
|
34
34
|
}, z.core.$strip>>;
|
|
35
35
|
}, z.core.$strip>>;
|
|
36
36
|
}, z.core.$strip>, readonly [{
|
|
37
|
-
readonly reason:
|
|
37
|
+
readonly reason: 'list_all_disabled_on_shared_http';
|
|
38
38
|
readonly code: JsonRpcErrorCode.Forbidden;
|
|
39
39
|
readonly when: "This server is running as a shared HTTP endpoint without per-caller auth — listing every dataframe would expose other concurrent clients' workspaces, since all callers resolve to one shared tenant.";
|
|
40
|
-
readonly recovery:
|
|
40
|
+
readonly recovery: 'Pass `dataframe` with a specific name — either from a prior find_* spillover result (`result.dataframe.tableName`) or one you registered via `brapi_dataframe_query` with `registerAs`. Listing all dataframes is not available on this deployment.';
|
|
41
41
|
}], undefined>;
|
|
42
42
|
//# sourceMappingURL=brapi-dataframe-describe.tool.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"brapi-dataframe-describe.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/brapi-dataframe-describe.tool.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AAEjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AA8CjE,eAAO,MAAM,sBAAsB
|
|
1
|
+
{"version":3,"file":"brapi-dataframe-describe.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/brapi-dataframe-describe.tool.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AAEjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AA8CjE,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;qBAMrB,kCAAkC;;mBAEpC,uMAAuM;uBAE3M,qPAAqP;cAwB3P,CAAC"}
|
|
@@ -23,8 +23,8 @@ export declare const brapiDataframeExport: import("@cyanheads/mcp-ts-core").Tool
|
|
|
23
23
|
dataframe: z.ZodString;
|
|
24
24
|
format: z.ZodEnum<{
|
|
25
25
|
csv: "csv";
|
|
26
|
-
parquet: "parquet";
|
|
27
26
|
json: "json";
|
|
27
|
+
parquet: "parquet";
|
|
28
28
|
}>;
|
|
29
29
|
filename: z.ZodOptional<z.ZodString>;
|
|
30
30
|
columns: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -33,8 +33,8 @@ export declare const brapiDataframeExport: import("@cyanheads/mcp-ts-core").Tool
|
|
|
33
33
|
dataframe: z.ZodString;
|
|
34
34
|
format: z.ZodEnum<{
|
|
35
35
|
csv: "csv";
|
|
36
|
-
parquet: "parquet";
|
|
37
36
|
json: "json";
|
|
37
|
+
parquet: "parquet";
|
|
38
38
|
}>;
|
|
39
39
|
path: z.ZodString;
|
|
40
40
|
filename: z.ZodString;
|
|
@@ -46,24 +46,24 @@ export declare const brapiDataframeExport: import("@cyanheads/mcp-ts-core").Tool
|
|
|
46
46
|
}, z.core.$strip>>;
|
|
47
47
|
expiresAt: z.ZodString;
|
|
48
48
|
}, z.core.$strip>, readonly [{
|
|
49
|
-
readonly reason:
|
|
49
|
+
readonly reason: 'export_dir_unset';
|
|
50
50
|
readonly code: JsonRpcErrorCode.ConfigurationError;
|
|
51
|
-
readonly when:
|
|
52
|
-
readonly recovery:
|
|
51
|
+
readonly when: 'BRAPI_EXPORT_DIR is not configured (defensive — the registration gate normally hides the tool when this happens)';
|
|
52
|
+
readonly recovery: 'Set BRAPI_EXPORT_DIR on the server before retrying.';
|
|
53
53
|
}, {
|
|
54
|
-
readonly reason:
|
|
54
|
+
readonly reason: 'dataframe_not_found';
|
|
55
55
|
readonly code: JsonRpcErrorCode.NotFound;
|
|
56
|
-
readonly when:
|
|
57
|
-
readonly recovery:
|
|
56
|
+
readonly when: 'No dataframe with this name exists on the canvas (expired, dropped, or typo)';
|
|
57
|
+
readonly recovery: 'Call brapi_dataframe_describe to list available dataframes.';
|
|
58
58
|
}, {
|
|
59
|
-
readonly reason:
|
|
59
|
+
readonly reason: 'invalid_filename';
|
|
60
60
|
readonly code: JsonRpcErrorCode.ValidationError;
|
|
61
|
-
readonly when:
|
|
62
|
-
readonly recovery:
|
|
61
|
+
readonly when: 'filename contains path separators or traversal segments';
|
|
62
|
+
readonly recovery: 'Provide a filename without "/", "\\", or ".." — leave it unset to use the default.';
|
|
63
63
|
}, {
|
|
64
|
-
readonly reason:
|
|
64
|
+
readonly reason: 'mutually_exclusive_projection';
|
|
65
65
|
readonly code: JsonRpcErrorCode.ValidationError;
|
|
66
|
-
readonly when:
|
|
67
|
-
readonly recovery:
|
|
66
|
+
readonly when: 'Both `columns` and `sql` were supplied';
|
|
67
|
+
readonly recovery: 'Pass either `columns` for a thin projection or `sql` for filtering/aggregation, not both.';
|
|
68
68
|
}], undefined>;
|
|
69
69
|
//# sourceMappingURL=brapi-dataframe-export.tool.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"brapi-dataframe-export.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/brapi-dataframe-export.tool.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAIH,OAAO,EAAsB,CAAC,EAAE,MAAM,wBAAwB,CAAC;AAE/D,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAoEjE,eAAO,MAAM,oBAAoB
|
|
1
|
+
{"version":3,"file":"brapi-dataframe-export.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/brapi-dataframe-export.tool.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAIH,OAAO,EAAsB,CAAC,EAAE,MAAM,wBAAwB,CAAC;AAE/D,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAoEjE,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAMnB,kBAAkB;;mBAEpB,kHAAkH;uBAC9G,qDAAqD;;qBAGvD,qBAAqB;;mBAEvB,8EAA8E;uBAC1E,6DAA6D;;qBAG/D,kBAAkB;;mBAEpB,yDAAyD;uBAE7D,oFAAoF;;qBAG9E,+BAA+B;;mBAEjC,wCAAwC;uBAE5C,2FAA2F;cAqFjG,CAAC"}
|
|
@@ -38,9 +38,14 @@ export declare const brapiDataframeQuery: import("@cyanheads/mcp-ts-core").ToolD
|
|
|
38
38
|
rows: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
39
39
|
dataframe: z.ZodOptional<z.ZodString>;
|
|
40
40
|
}, z.core.$strip>, readonly [{
|
|
41
|
-
readonly reason:
|
|
41
|
+
readonly reason: 'sql_rejected';
|
|
42
42
|
readonly code: JsonRpcErrorCode.ValidationError;
|
|
43
|
-
readonly when:
|
|
44
|
-
readonly recovery:
|
|
45
|
-
}],
|
|
43
|
+
readonly when: 'SQL violated read-only rules (multi-statement, non-SELECT, or disallowed operation)';
|
|
44
|
+
readonly recovery: 'Submit a single SELECT statement using only registered dataframes. For changes, use `registerAs` in this tool to materialize a result, or brapi_dataframe_drop to remove a dataframe.';
|
|
45
|
+
}], {
|
|
46
|
+
readonly truncated: z.ZodOptional<z.ZodBoolean>;
|
|
47
|
+
readonly shown: z.ZodOptional<z.ZodNumber>;
|
|
48
|
+
readonly cap: z.ZodOptional<z.ZodNumber>;
|
|
49
|
+
readonly notice: z.ZodOptional<z.ZodString>;
|
|
50
|
+
}>;
|
|
46
51
|
//# sourceMappingURL=brapi-dataframe-query.tool.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"brapi-dataframe-query.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/brapi-dataframe-query.tool.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH,OAAO,EAAsB,CAAC,EAAE,MAAM,wBAAwB,CAAC;AAO/D,OAAO,EAAE,gBAAgB,EAAY,MAAM,+BAA+B,CAAC;AAmH3E,eAAO,MAAM,mBAAmB
|
|
1
|
+
{"version":3,"file":"brapi-dataframe-query.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/brapi-dataframe-query.tool.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH,OAAO,EAAsB,CAAC,EAAE,MAAM,wBAAwB,CAAC;AAO/D,OAAO,EAAE,gBAAgB,EAAY,MAAM,+BAA+B,CAAC;AAmH3E,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;qBAMlB,cAAc;;mBAEhB,qFAAqF;uBAEzF,uLAAuL;;;;;;EA2F7L,CAAC"}
|
|
@@ -119,6 +119,23 @@ export const brapiDataframeQuery = tool('brapi_dataframe_query', {
|
|
|
119
119
|
],
|
|
120
120
|
input: InputSchema,
|
|
121
121
|
output: OutputSchema,
|
|
122
|
+
enrichment: {
|
|
123
|
+
truncated: z
|
|
124
|
+
.boolean()
|
|
125
|
+
.optional()
|
|
126
|
+
.describe('True when the response carries fewer rows than the query produced.'),
|
|
127
|
+
shown: z.number().int().nonnegative().optional().describe('Rows materialized into `rows`.'),
|
|
128
|
+
cap: z
|
|
129
|
+
.number()
|
|
130
|
+
.int()
|
|
131
|
+
.positive()
|
|
132
|
+
.optional()
|
|
133
|
+
.describe('Row ceiling that bound the response (the smaller of preview and rowLimit).'),
|
|
134
|
+
notice: z
|
|
135
|
+
.string()
|
|
136
|
+
.optional()
|
|
137
|
+
.describe('Guidance for reaching the rows this response left out.'),
|
|
138
|
+
},
|
|
122
139
|
async handler(input, ctx) {
|
|
123
140
|
const bridge = getCanvasBridge();
|
|
124
141
|
const userRegisterAs = input.registerAs;
|
|
@@ -165,6 +182,20 @@ export const brapiDataframeQuery = tool('brapi_dataframe_query', {
|
|
|
165
182
|
};
|
|
166
183
|
if (userRegisterAs !== undefined)
|
|
167
184
|
out.dataframe = userRegisterAs;
|
|
185
|
+
if (out.rows.length < out.rowCount) {
|
|
186
|
+
// Two ceilings can bind here — `preview` and the (config-clamped)
|
|
187
|
+
// `rowLimit` — and the rows that came back are exactly the one that did,
|
|
188
|
+
// so report that count as the cap and name the lever that produced it.
|
|
189
|
+
const shown = out.rows.length;
|
|
190
|
+
const lever = input.preview !== undefined && shown === input.preview ? 'preview' : 'rowLimit';
|
|
191
|
+
ctx.enrich.truncated({
|
|
192
|
+
shown,
|
|
193
|
+
cap: shown,
|
|
194
|
+
guidance: `\`${lever}\` bound the response at ${shown} of ${out.rowCount} rows. ${userRegisterAs
|
|
195
|
+
? `Query \`${userRegisterAs}\` with LIMIT/OFFSET to walk the remainder, or aggregate instead of materializing it.`
|
|
196
|
+
: 'Re-run with `registerAs` to keep the full result queryable, then page it with LIMIT/OFFSET.'}`,
|
|
197
|
+
});
|
|
198
|
+
}
|
|
168
199
|
return out;
|
|
169
200
|
},
|
|
170
201
|
format: (result) => [{ type: 'text', text: renderQuery(result) }],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"brapi-dataframe-query.tool.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/brapi-dataframe-query.tool.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH,OAAO,EAAgB,IAAI,EAAE,CAAC,EAAE,MAAM,wBAAwB,CAAC;AA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AAiD,CAAC;IAC9D,SAAS,EAAE,CAAC;SACT,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CACP,oIAAoI,CACrI;CACJ,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,mBAAmB,GAAG,IAAI,CAAC,uBAAuB,EAAE;IAC/D,WAAW,EACT,0lBAA0lB;IAC5lB,WAAW,EAAE,EAAE,YAAY,EAAE,KAAK,EAAE,cAAc,EAAE,KAAK,EAAE,aAAa,EAAE,KAAK,EAAE;IACjF,MAAM,EAAE;QACN;YACE,MAAM,EAAE,cAAc;YACtB,IAAI,EAAE,gBAAgB,CAAC,eAAe;YACtC,IAAI,EAAE,qFAAqF;YAC3F,QAAQ,EACN,uLAAuL;SAC1L;KACO;IACV,KAAK,EAAE,WAAW;IAClB,MAAM,EAAE,YAAY;
|
|
1
|
+
{"version":3,"file":"brapi-dataframe-query.tool.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/brapi-dataframe-query.tool.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH,OAAO,EAAgB,IAAI,EAAE,CAAC,EAAE,MAAM,wBAAwB,CAAC;AAC/D,OAAO,EACL,mBAAmB,EAEnB,gBAAgB,GAEjB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,gBAAgB,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAC;AAC3E,OAAO,EAEL,eAAe,EACf,4BAA4B,GAC7B,MAAM,mCAAmC,CAAC;AAU3C,MAAM,kBAAkB,GAAiC,IAAI,GAAG,CAAkB;IAChF,GAAG,MAAM,CAAC,MAAM,CAAC,gBAAgB,CAAC;IAClC,4BAA4B;CAC7B,CAAC,CAAC;AAEH,SAAS,oBAAoB,CAAC,GAAY;IACxC,IAAI,CAAC,CAAC,GAAG,YAAY,QAAQ,CAAC;QAAE,OAAO;IACvC,IAAI,GAAG,CAAC,IAAI,KAAK,gBAAgB,CAAC,eAAe;QAAE,OAAO;IA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<{
|
|
20
20
|
name: z.ZodString;
|
|
21
21
|
type: z.ZodEnum<{
|
|
22
|
-
string: "string";
|
|
23
|
-
number: "number";
|
|
24
22
|
boolean: "boolean";
|
|
25
23
|
date: "date";
|
|
26
24
|
integer: "integer";
|
|
27
|
-
"string[]": "string[]";
|
|
28
25
|
"integer[]": "integer[]";
|
|
26
|
+
number: "number";
|
|
27
|
+
string: "string";
|
|
28
|
+
"string[]": "string[]";
|
|
29
29
|
}>;
|
|
30
30
|
description: z.ZodString;
|
|
31
31
|
example: z.ZodString;
|
|
@@ -33,9 +33,9 @@ export declare const brapiDescribeFilters: import("@cyanheads/mcp-ts-core").Tool
|
|
|
33
33
|
specReference: z.ZodOptional<z.ZodString>;
|
|
34
34
|
availableEndpoints: z.ZodArray<z.ZodString>;
|
|
35
35
|
}, z.core.$strip>, readonly [{
|
|
36
|
-
readonly reason:
|
|
36
|
+
readonly reason: 'unknown_endpoint';
|
|
37
37
|
readonly code: JsonRpcErrorCode.NotFound;
|
|
38
|
-
readonly when:
|
|
39
|
-
readonly recovery:
|
|
38
|
+
readonly when: 'No filter catalog is registered for the requested endpoint';
|
|
39
|
+
readonly recovery: 'Pick an endpoint from data.availableEndpoints — same set as the input enum (studies, germplasm, observations, variables, images, variants, locations).';
|
|
40
40
|
}], undefined>;
|
|
41
41
|
//# sourceMappingURL=brapi-describe-filters.tool.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"brapi-describe-filters.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/brapi-describe-filters.tool.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAgBjE,eAAO,MAAM,oBAAoB
|
|
1
|
+
{"version":3,"file":"brapi-describe-filters.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/brapi-describe-filters.tool.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAgBjE,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;qBAMnB,kBAAkB;;mBAEpB,4DAA4D;uBAEhE,wJAAwJ;cAiE9J,CAAC"}
|
|
@@ -34,18 +34,18 @@ export declare const brapiExportGenotypeMatrix: import("@cyanheads/mcp-ts-core")
|
|
|
34
34
|
germplasmDbIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
35
35
|
variantSetDbId: z.ZodString;
|
|
36
36
|
format: z.ZodEnum<{
|
|
37
|
+
"matrix-json": "matrix-json";
|
|
37
38
|
plink: "plink";
|
|
38
39
|
"vcf-lite": "vcf-lite";
|
|
39
|
-
"matrix-json": "matrix-json";
|
|
40
40
|
}>;
|
|
41
41
|
maxCalls: z.ZodOptional<z.ZodNumber>;
|
|
42
42
|
maxColumns: z.ZodOptional<z.ZodNumber>;
|
|
43
43
|
}, z.core.$strip>, z.ZodObject<{
|
|
44
44
|
alias: z.ZodString;
|
|
45
45
|
format: z.ZodEnum<{
|
|
46
|
+
"matrix-json": "matrix-json";
|
|
46
47
|
plink: "plink";
|
|
47
48
|
"vcf-lite": "vcf-lite";
|
|
48
|
-
"matrix-json": "matrix-json";
|
|
49
49
|
}>;
|
|
50
50
|
rowCount: z.ZodNumber;
|
|
51
51
|
columnCount: z.ZodNumber;
|
|
@@ -73,19 +73,19 @@ export declare const brapiExportGenotypeMatrix: import("@cyanheads/mcp-ts-core")
|
|
|
73
73
|
truncated: z.ZodBoolean;
|
|
74
74
|
warnings: z.ZodArray<z.ZodString>;
|
|
75
75
|
}, z.core.$strip>, readonly [{
|
|
76
|
-
readonly reason:
|
|
76
|
+
readonly reason: 'unknown_alias';
|
|
77
77
|
readonly code: JsonRpcErrorCode.NotFound;
|
|
78
|
-
readonly when:
|
|
79
|
-
readonly recovery:
|
|
78
|
+
readonly when: 'No connection has been registered under the requested alias';
|
|
79
|
+
readonly recovery: 'Run brapi_connect with this alias (or omit `alias` to use the default connection) before calling brapi_export_genotype_matrix.';
|
|
80
80
|
}, {
|
|
81
|
-
readonly reason:
|
|
81
|
+
readonly reason: 'no_filters';
|
|
82
82
|
readonly code: JsonRpcErrorCode.ValidationError;
|
|
83
|
-
readonly when:
|
|
84
|
-
readonly recovery:
|
|
83
|
+
readonly when: 'No variantSetDbId was provided';
|
|
84
|
+
readonly recovery: 'Provide variantSetDbId before retrying — unfiltered genotype-call pulls are too expensive.';
|
|
85
85
|
}, {
|
|
86
|
-
readonly reason:
|
|
86
|
+
readonly reason: 'search_endpoint_disabled';
|
|
87
87
|
readonly code: JsonRpcErrorCode.ValidationError;
|
|
88
|
-
readonly when:
|
|
89
|
-
readonly recovery:
|
|
88
|
+
readonly when: 'The active dialect declares POST /search/calls as known-dead on this server';
|
|
89
|
+
readonly recovery: 'Connect to a different BrAPI server that exposes a working /search/calls route — genotype-call workflows are not viable here.';
|
|
90
90
|
}], undefined>;
|
|
91
91
|
//# sourceMappingURL=brapi-export-genotype-matrix.tool.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"brapi-export-genotype-matrix.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/brapi-export-genotype-matrix.tool.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AAGH,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAiHjE,eAAO,MAAM,yBAAyB
|
|
1
|
+
{"version":3,"file":"brapi-export-genotype-matrix.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/brapi-export-genotype-matrix.tool.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AAGH,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAiHjE,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAMxB,eAAe;;mBAEjB,6DAA6D;uBAEjE,gIAAgI;;qBAG1H,YAAY;;mBAEd,gCAAgC;uBAEpC,4FAA4F;;qBAGtF,0BAA0B;;mBAE5B,6EAA6E;uBAEjF,+HAA+H;cAiQrI,CAAC"}
|
|
@@ -21,10 +21,10 @@ export declare const brapiFindGenotypeCalls: import("@cyanheads/mcp-ts-core").To
|
|
|
21
21
|
callSetDbIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
22
22
|
variantDbIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
23
23
|
callFormat: z.ZodOptional<z.ZodEnum<{
|
|
24
|
+
DARTSEQ: "DARTSEQ";
|
|
25
|
+
FLAPJACK: "FLAPJACK";
|
|
24
26
|
JSON: "JSON";
|
|
25
27
|
VCF: "VCF";
|
|
26
|
-
FLAPJACK: "FLAPJACK";
|
|
27
|
-
DARTSEQ: "DARTSEQ";
|
|
28
28
|
}>>;
|
|
29
29
|
loadLimit: z.ZodOptional<z.ZodNumber>;
|
|
30
30
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -66,20 +66,20 @@ export declare const brapiFindGenotypeCalls: import("@cyanheads/mcp-ts-core").To
|
|
|
66
66
|
}, z.core.$strip>>;
|
|
67
67
|
truncated: z.ZodBoolean;
|
|
68
68
|
}, z.core.$strip>, readonly [{
|
|
69
|
-
readonly reason:
|
|
69
|
+
readonly reason: 'unknown_alias';
|
|
70
70
|
readonly code: JsonRpcErrorCode.NotFound;
|
|
71
|
-
readonly when:
|
|
72
|
-
readonly recovery:
|
|
71
|
+
readonly when: 'No connection has been registered under the requested alias';
|
|
72
|
+
readonly recovery: 'Run brapi_connect with this alias (or omit `alias` to use the default connection) before calling brapi_find_genotype_calls.';
|
|
73
73
|
}, {
|
|
74
|
-
readonly reason:
|
|
74
|
+
readonly reason: 'no_filters';
|
|
75
75
|
readonly code: JsonRpcErrorCode.ValidationError;
|
|
76
|
-
readonly when:
|
|
77
|
-
readonly recovery:
|
|
76
|
+
readonly when: 'No variant set, germplasm, call set, or variant filter was provided';
|
|
77
|
+
readonly recovery: 'Provide variantSetDbId or germplasmDbIds before retrying — unfiltered pulls are too expensive.';
|
|
78
78
|
}, {
|
|
79
|
-
readonly reason:
|
|
79
|
+
readonly reason: 'search_endpoint_disabled';
|
|
80
80
|
readonly code: JsonRpcErrorCode.ValidationError;
|
|
81
|
-
readonly when:
|
|
82
|
-
readonly recovery:
|
|
81
|
+
readonly when: 'The active dialect declares POST /search/calls as known-dead on this server';
|
|
82
|
+
readonly recovery: 'Connect to a different BrAPI server that exposes a working /search/calls route — genotype-call workflows are not viable here.';
|
|
83
83
|
}], {
|
|
84
84
|
readonly totalCount: z.ZodNumber;
|
|
85
85
|
readonly returnedCount: z.ZodNumber;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"brapi-find-genotype-calls.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/brapi-find-genotype-calls.tool.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAsB,CAAC,EAAE,MAAM,wBAAwB,CAAC;AAC/D,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAgHjE,eAAO,MAAM,sBAAsB
|
|
1
|
+
{"version":3,"file":"brapi-find-genotype-calls.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/brapi-find-genotype-calls.tool.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAsB,CAAC,EAAE,MAAM,wBAAwB,CAAC;AAC/D,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAgHjE,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAMrB,eAAe;;mBAEjB,6DAA6D;uBAEjE,6HAA6H;;qBAGvH,YAAY;;mBAEd,qEAAqE;uBAEzE,gGAAgG;;qBAG1F,0BAA0B;;mBAE5B,6EAA6E;uBAEjF,+HAA+H;;;;;;;EAiPrI,CAAC"}
|
|
@@ -66,15 +66,15 @@ export declare const brapiFindGermplasm: import("@cyanheads/mcp-ts-core").ToolDe
|
|
|
66
66
|
totalCount: z.ZodOptional<z.ZodNumber>;
|
|
67
67
|
}, z.core.$strip>>;
|
|
68
68
|
}, z.core.$strip>, readonly [{
|
|
69
|
-
readonly reason:
|
|
69
|
+
readonly reason: 'unknown_alias';
|
|
70
70
|
readonly code: JsonRpcErrorCode.NotFound;
|
|
71
|
-
readonly when:
|
|
72
|
-
readonly recovery:
|
|
71
|
+
readonly when: 'No connection has been registered under the requested alias';
|
|
72
|
+
readonly recovery: 'Run brapi_connect with this alias (or omit `alias` to use the default connection) before calling brapi_find_germplasm.';
|
|
73
73
|
}, {
|
|
74
|
-
readonly reason:
|
|
74
|
+
readonly reason: 'all_filters_dropped';
|
|
75
75
|
readonly code: JsonRpcErrorCode.ValidationError;
|
|
76
|
-
readonly when:
|
|
77
|
-
readonly recovery:
|
|
76
|
+
readonly when: 'The active dialect dropped every filter the agent supplied — the upstream server does not honor any of the requested scope filters on this endpoint, so the call would silently widen to the unfiltered baseline.';
|
|
77
|
+
readonly recovery: 'Drop the unsupported filters and rescope by names, germplasmDbIds, germplasmPUIs, accessionNumbers, crops, synonyms, genus, or species — these filter paths are honored on the active dialect.';
|
|
78
78
|
}], {
|
|
79
79
|
readonly totalCount: z.ZodNumber;
|
|
80
80
|
readonly returnedCount: z.ZodNumber;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"brapi-find-germplasm.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/brapi-find-germplasm.tool.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAmIjE,eAAO,MAAM,kBAAkB
|
|
1
|
+
{"version":3,"file":"brapi-find-germplasm.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/brapi-find-germplasm.tool.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAmIjE,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAMjB,eAAe;;mBAEjB,6DAA6D;uBAEjE,wHAAwH;;qBAGlH,qBAAqB;;mBAEvB,mNAAmN;uBAEvN,gMAAgM;;;;;;;;EA2VtM,CAAC"}
|
|
@@ -59,15 +59,15 @@ export declare const brapiFindImages: import("@cyanheads/mcp-ts-core").ToolDefin
|
|
|
59
59
|
totalCount: z.ZodOptional<z.ZodNumber>;
|
|
60
60
|
}, z.core.$strip>>;
|
|
61
61
|
}, z.core.$strip>, readonly [{
|
|
62
|
-
readonly reason:
|
|
62
|
+
readonly reason: 'unknown_alias';
|
|
63
63
|
readonly code: JsonRpcErrorCode.NotFound;
|
|
64
|
-
readonly when:
|
|
65
|
-
readonly recovery:
|
|
64
|
+
readonly when: 'No connection has been registered under the requested alias';
|
|
65
|
+
readonly recovery: 'Run brapi_connect with this alias (or omit `alias` to use the default connection) before calling brapi_find_images.';
|
|
66
66
|
}, {
|
|
67
|
-
readonly reason:
|
|
67
|
+
readonly reason: 'all_filters_dropped';
|
|
68
68
|
readonly code: JsonRpcErrorCode.ValidationError;
|
|
69
|
-
readonly when:
|
|
70
|
-
readonly recovery:
|
|
69
|
+
readonly when: 'The active dialect dropped every filter the agent supplied — the upstream server does not honor any of the requested scope filters on this endpoint, so the call would silently widen to the unfiltered baseline.';
|
|
70
|
+
readonly recovery: 'Drop the unsupported filters and rescope by images, observationUnits, observations, studies, descriptiveOntologyTerms, imageFileNames, or mimeTypes — these filter paths are honored on the active dialect.';
|
|
71
71
|
}], {
|
|
72
72
|
readonly totalCount: z.ZodNumber;
|
|
73
73
|
readonly returnedCount: z.ZodNumber;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"brapi-find-images.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/brapi-find-images.tool.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AA4HjE,eAAO,MAAM,eAAe
|
|
1
|
+
{"version":3,"file":"brapi-find-images.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/brapi-find-images.tool.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AA4HjE,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAMd,eAAe;;mBAEjB,6DAA6D;uBAEjE,qHAAqH;;qBAG/G,qBAAqB;;mBAEvB,mNAAmN;uBAEvN,6MAA6M;;;;;;;;EAmRnN,CAAC"}
|
|
@@ -63,15 +63,15 @@ export declare const brapiFindLocations: import("@cyanheads/mcp-ts-core").ToolDe
|
|
|
63
63
|
swapped: "swapped";
|
|
64
64
|
}>;
|
|
65
65
|
}, z.core.$strip>, readonly [{
|
|
66
|
-
readonly reason:
|
|
66
|
+
readonly reason: 'unknown_alias';
|
|
67
67
|
readonly code: JsonRpcErrorCode.NotFound;
|
|
68
|
-
readonly when:
|
|
69
|
-
readonly recovery:
|
|
68
|
+
readonly when: 'No connection has been registered under the requested alias';
|
|
69
|
+
readonly recovery: 'Run brapi_connect with this alias (or omit `alias` to use the default connection) before calling brapi_find_locations.';
|
|
70
70
|
}, {
|
|
71
|
-
readonly reason:
|
|
71
|
+
readonly reason: 'all_filters_dropped';
|
|
72
72
|
readonly code: JsonRpcErrorCode.ValidationError;
|
|
73
|
-
readonly when:
|
|
74
|
-
readonly recovery:
|
|
73
|
+
readonly when: 'The active dialect dropped every filter the agent supplied — the upstream server does not honor any of the requested scope filters on this endpoint, so the call would silently widen to the unfiltered baseline.';
|
|
74
|
+
readonly recovery: 'Drop the unsupported filters and rescope by locations, locationNames, countryCodes, locationTypes, abbreviations, or bbox — these filter paths are honored on the active dialect.';
|
|
75
75
|
}], {
|
|
76
76
|
readonly totalCount: z.ZodNumber;
|
|
77
77
|
readonly returnedCount: z.ZodNumber;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"brapi-find-locations.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/brapi-find-locations.tool.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAkHjE,eAAO,MAAM,kBAAkB
|
|
1
|
+
{"version":3,"file":"brapi-find-locations.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/brapi-find-locations.tool.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAkHjE,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAMjB,eAAe;;mBAEjB,6DAA6D;uBAEjE,wHAAwH;;qBAGlH,qBAAqB;;mBAEvB,mNAAmN;uBAEvN,mLAAmL;;;;;;;;EAkXzL,CAAC"}
|
|
@@ -63,15 +63,15 @@ export declare const brapiFindObservations: import("@cyanheads/mcp-ts-core").Too
|
|
|
63
63
|
totalCount: z.ZodOptional<z.ZodNumber>;
|
|
64
64
|
}, z.core.$strip>>;
|
|
65
65
|
}, z.core.$strip>, readonly [{
|
|
66
|
-
readonly reason:
|
|
66
|
+
readonly reason: 'unknown_alias';
|
|
67
67
|
readonly code: JsonRpcErrorCode.NotFound;
|
|
68
|
-
readonly when:
|
|
69
|
-
readonly recovery:
|
|
68
|
+
readonly when: 'No connection has been registered under the requested alias';
|
|
69
|
+
readonly recovery: 'Run brapi_connect with this alias (or omit `alias` to use the default connection) before calling brapi_find_observations.';
|
|
70
70
|
}, {
|
|
71
|
-
readonly reason:
|
|
71
|
+
readonly reason: 'all_filters_dropped';
|
|
72
72
|
readonly code: JsonRpcErrorCode.ValidationError;
|
|
73
|
-
readonly when:
|
|
74
|
-
readonly recovery:
|
|
73
|
+
readonly when: 'The active dialect dropped every filter the agent supplied — the upstream server does not honor any of the requested scope filters on this endpoint, so the call would silently widen to the unfiltered baseline.';
|
|
74
|
+
readonly recovery: 'Drop the unsupported filters and rescope by germplasm, variables, observationUnits, observations, seasons, programs, or trials — these filter paths are honored on the active dialect.';
|
|
75
75
|
}], {
|
|
76
76
|
readonly totalCount: z.ZodNumber;
|
|
77
77
|
readonly returnedCount: z.ZodNumber;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"brapi-find-observations.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/brapi-find-observations.tool.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAsB,CAAC,EAAE,MAAM,wBAAwB,CAAC;AAC/D,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AA+JjE,eAAO,MAAM,qBAAqB
|
|
1
|
+
{"version":3,"file":"brapi-find-observations.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/brapi-find-observations.tool.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAsB,CAAC,EAAE,MAAM,wBAAwB,CAAC;AAC/D,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AA+JjE,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAMpB,eAAe;;mBAEjB,6DAA6D;uBAEjE,2HAA2H;;qBAGrH,qBAAqB;;mBAEvB,mNAAmN;uBAEvN,wLAAwL;;;;;;;;EAiW9L,CAAC"}
|
|
@@ -62,15 +62,15 @@ export declare const brapiFindStudies: import("@cyanheads/mcp-ts-core").ToolDefi
|
|
|
62
62
|
totalCount: z.ZodOptional<z.ZodNumber>;
|
|
63
63
|
}, z.core.$strip>>;
|
|
64
64
|
}, z.core.$strip>, readonly [{
|
|
65
|
-
readonly reason:
|
|
65
|
+
readonly reason: 'unknown_alias';
|
|
66
66
|
readonly code: JsonRpcErrorCode.NotFound;
|
|
67
|
-
readonly when:
|
|
68
|
-
readonly recovery:
|
|
67
|
+
readonly when: 'No connection has been registered under the requested alias';
|
|
68
|
+
readonly recovery: 'Run brapi_connect with this alias (or omit `alias` to use the default connection) before calling brapi_find_studies.';
|
|
69
69
|
}, {
|
|
70
|
-
readonly reason:
|
|
70
|
+
readonly reason: 'all_filters_dropped';
|
|
71
71
|
readonly code: JsonRpcErrorCode.ValidationError;
|
|
72
|
-
readonly when:
|
|
73
|
-
readonly recovery:
|
|
72
|
+
readonly when: 'The active dialect dropped every filter the agent supplied — the upstream server does not honor any of the requested scope filters on this endpoint, so the call would silently widen to the unfiltered baseline.';
|
|
73
|
+
readonly recovery: 'Drop the unsupported filters and rescope by crop, trialTypes, seasons, programs, trials, studyNames, or active — these filter paths are honored on the active dialect.';
|
|
74
74
|
}], {
|
|
75
75
|
readonly totalCount: z.ZodNumber;
|
|
76
76
|
readonly returnedCount: z.ZodNumber;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"brapi-find-studies.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/brapi-find-studies.tool.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAyHjE,eAAO,MAAM,gBAAgB
|
|
1
|
+
{"version":3,"file":"brapi-find-studies.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/brapi-find-studies.tool.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAyHjE,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAMf,eAAe;;mBAEjB,6DAA6D;uBAEjE,sHAAsH;;qBAGhH,qBAAqB;;mBAEvB,mNAAmN;uBAEvN,wKAAwK;;;;;;;;EAqR9K,CAAC"}
|
|
@@ -63,8 +63,8 @@ export declare const brapiFindVariables: import("@cyanheads/mcp-ts-core").ToolDe
|
|
|
63
63
|
synonyms: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
64
64
|
ontologyDbId: z.ZodOptional<z.ZodString>;
|
|
65
65
|
source: z.ZodEnum<{
|
|
66
|
-
puiMatch: "puiMatch";
|
|
67
66
|
nameMatch: "nameMatch";
|
|
67
|
+
puiMatch: "puiMatch";
|
|
68
68
|
synonymMatch: "synonymMatch";
|
|
69
69
|
traitClassMatch: "traitClassMatch";
|
|
70
70
|
}>;
|
|
@@ -81,15 +81,15 @@ export declare const brapiFindVariables: import("@cyanheads/mcp-ts-core").ToolDe
|
|
|
81
81
|
totalCount: z.ZodOptional<z.ZodNumber>;
|
|
82
82
|
}, z.core.$strip>>;
|
|
83
83
|
}, z.core.$strip>, readonly [{
|
|
84
|
-
readonly reason:
|
|
84
|
+
readonly reason: 'unknown_alias';
|
|
85
85
|
readonly code: JsonRpcErrorCode.NotFound;
|
|
86
|
-
readonly when:
|
|
87
|
-
readonly recovery:
|
|
86
|
+
readonly when: 'No connection has been registered under the requested alias';
|
|
87
|
+
readonly recovery: 'Run brapi_connect with this alias (or omit `alias` to use the default connection) before calling brapi_find_variables.';
|
|
88
88
|
}, {
|
|
89
|
-
readonly reason:
|
|
89
|
+
readonly reason: 'all_filters_dropped';
|
|
90
90
|
readonly code: JsonRpcErrorCode.ValidationError;
|
|
91
|
-
readonly when:
|
|
92
|
-
readonly recovery:
|
|
91
|
+
readonly when: 'The active dialect dropped every filter the agent supplied — the upstream server does not honor any of the requested scope filters on this endpoint, so the call would silently widen to the unfiltered baseline.';
|
|
92
|
+
readonly recovery: 'Drop the unsupported filters and rescope by variables, traitClasses, ontologyDbIds, methodDbIds, scaleDbIds, or text — these filter paths are honored on the active dialect.';
|
|
93
93
|
}], {
|
|
94
94
|
readonly totalCount: z.ZodNumber;
|
|
95
95
|
readonly returnedCount: z.ZodNumber;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"brapi-find-variables.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/brapi-find-variables.tool.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAsKjE,eAAO,MAAM,kBAAkB
|
|
1
|
+
{"version":3,"file":"brapi-find-variables.tool.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/brapi-find-variables.tool.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAQ,CAAC,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAsKjE,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAMjB,eAAe;;mBAEjB,6DAA6D;uBAEjE,wHAAwH;;qBAGlH,qBAAqB;;mBAEvB,mNAAmN;uBAEvN,8KAA8K;;;;;;;;EAuVpL,CAAC"}
|