@cyanheads/brapi-mcp-server 0.7.12 → 0.7.13
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/AGENTS.md +453 -0
- package/CLAUDE.md +8 -2
- package/README.md +453 -136
- package/changelog/0.7.x/0.7.13.md +38 -0
- package/changelog/template.md +7 -7
- package/dist/index.js +7 -0
- package/dist/index.js.map +1 -1
- package/dist/mcp-server/resources/definitions/brapi-calls.resource.d.ts +1 -0
- 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 -0
- package/dist/mcp-server/resources/definitions/brapi-calls.resource.js.map +1 -1
- package/dist/mcp-server/resources/definitions/brapi-germplasm.resource.d.ts +1 -0
- 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 -0
- package/dist/mcp-server/resources/definitions/brapi-germplasm.resource.js.map +1 -1
- package/dist/mcp-server/resources/definitions/brapi-server-info.resource.d.ts +1 -0
- 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 -0
- package/dist/mcp-server/resources/definitions/brapi-server-info.resource.js.map +1 -1
- package/dist/mcp-server/resources/definitions/brapi-study.resource.d.ts +1 -0
- 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 -0
- package/dist/mcp-server/resources/definitions/brapi-study.resource.js.map +1 -1
- package/dist/mcp-server/resources/definitions/brapi-variable.resource.d.ts +1 -0
- 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 -0
- package/dist/mcp-server/resources/definitions/brapi-variable.resource.js.map +1 -1
- package/dist/mcp-server/tools/definitions/brapi-build-phenotype-matrix.tool.d.ts +2 -0
- 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 +2 -0
- package/dist/mcp-server/tools/definitions/brapi-build-phenotype-matrix.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/brapi-dataframe-export.tool.d.ts +1 -0
- package/dist/mcp-server/tools/definitions/brapi-dataframe-export.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/brapi-dataframe-export.tool.js +1 -0
- package/dist/mcp-server/tools/definitions/brapi-dataframe-export.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/brapi-export-genotype-matrix.tool.d.ts +1 -0
- package/dist/mcp-server/tools/definitions/brapi-export-genotype-matrix.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/brapi-export-genotype-matrix.tool.js +1 -0
- package/dist/mcp-server/tools/definitions/brapi-export-genotype-matrix.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/brapi-find-genotype-calls.tool.d.ts +1 -0
- package/dist/mcp-server/tools/definitions/brapi-find-genotype-calls.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/brapi-find-genotype-calls.tool.js +1 -0
- package/dist/mcp-server/tools/definitions/brapi-find-genotype-calls.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/brapi-find-germplasm.tool.d.ts +2 -0
- package/dist/mcp-server/tools/definitions/brapi-find-germplasm.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/brapi-find-germplasm.tool.js +2 -0
- package/dist/mcp-server/tools/definitions/brapi-find-germplasm.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/brapi-find-images.tool.d.ts +2 -0
- package/dist/mcp-server/tools/definitions/brapi-find-images.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/brapi-find-images.tool.js +2 -0
- package/dist/mcp-server/tools/definitions/brapi-find-images.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/brapi-find-locations.tool.d.ts +2 -0
- package/dist/mcp-server/tools/definitions/brapi-find-locations.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/brapi-find-locations.tool.js +2 -0
- package/dist/mcp-server/tools/definitions/brapi-find-locations.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/brapi-find-observations.tool.d.ts +2 -0
- package/dist/mcp-server/tools/definitions/brapi-find-observations.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/brapi-find-observations.tool.js +2 -0
- package/dist/mcp-server/tools/definitions/brapi-find-observations.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/brapi-find-studies.tool.d.ts +2 -0
- package/dist/mcp-server/tools/definitions/brapi-find-studies.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/brapi-find-studies.tool.js +2 -0
- package/dist/mcp-server/tools/definitions/brapi-find-studies.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/brapi-find-variables.tool.d.ts +2 -0
- package/dist/mcp-server/tools/definitions/brapi-find-variables.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/brapi-find-variables.tool.js +2 -0
- package/dist/mcp-server/tools/definitions/brapi-find-variables.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/brapi-find-variants.tool.d.ts +2 -0
- package/dist/mcp-server/tools/definitions/brapi-find-variants.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/brapi-find-variants.tool.js +2 -0
- package/dist/mcp-server/tools/definitions/brapi-find-variants.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/brapi-germplasm-performance.tool.d.ts +1 -0
- package/dist/mcp-server/tools/definitions/brapi-germplasm-performance.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/brapi-germplasm-performance.tool.js +1 -0
- package/dist/mcp-server/tools/definitions/brapi-germplasm-performance.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/brapi-get-germplasm.tool.d.ts +1 -0
- package/dist/mcp-server/tools/definitions/brapi-get-germplasm.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/brapi-get-germplasm.tool.js +1 -0
- package/dist/mcp-server/tools/definitions/brapi-get-germplasm.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/brapi-get-image.tool.d.ts +1 -0
- package/dist/mcp-server/tools/definitions/brapi-get-image.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/brapi-get-image.tool.js +1 -0
- package/dist/mcp-server/tools/definitions/brapi-get-image.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/brapi-get-study.tool.d.ts +1 -0
- package/dist/mcp-server/tools/definitions/brapi-get-study.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/brapi-get-study.tool.js +1 -0
- package/dist/mcp-server/tools/definitions/brapi-get-study.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/brapi-raw-get.tool.d.ts +1 -0
- package/dist/mcp-server/tools/definitions/brapi-raw-get.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/brapi-raw-get.tool.js +1 -0
- package/dist/mcp-server/tools/definitions/brapi-raw-get.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/brapi-raw-search.tool.d.ts +1 -0
- package/dist/mcp-server/tools/definitions/brapi-raw-search.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/brapi-raw-search.tool.js +1 -0
- package/dist/mcp-server/tools/definitions/brapi-raw-search.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/brapi-server-info.tool.d.ts +1 -0
- package/dist/mcp-server/tools/definitions/brapi-server-info.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/brapi-server-info.tool.js +1 -0
- package/dist/mcp-server/tools/definitions/brapi-server-info.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/brapi-submit-observations.tool.d.ts +1 -0
- 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 +1 -0
- 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 +1 -0
- package/dist/mcp-server/tools/definitions/brapi-walk-pedigree.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/brapi-walk-pedigree.tool.js +1 -0
- package/dist/mcp-server/tools/definitions/brapi-walk-pedigree.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/index.d.ts +28 -0
- package/dist/mcp-server/tools/definitions/index.d.ts.map +1 -1
- package/dist/services/brapi-client/brapi-client.d.ts +7 -0
- package/dist/services/brapi-client/brapi-client.d.ts.map +1 -1
- package/dist/services/brapi-client/brapi-client.js +16 -7
- package/dist/services/brapi-client/brapi-client.js.map +1 -1
- package/manifest.json +1 -1
- package/package.json +18 -7
- package/server.json +9 -3
|
@@ -107,6 +107,7 @@ export declare const readOnlyToolDefinitions: (import("@cyanheads/mcp-ts-core").
|
|
|
107
107
|
readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.NotFound;
|
|
108
108
|
readonly when: 'No connection has been registered under the requested alias';
|
|
109
109
|
readonly recovery: 'Run brapi_connect with this alias (or omit `alias` to use the default connection) before calling brapi_get_study.';
|
|
110
|
+
readonly thrownBy: 'service';
|
|
110
111
|
}, {
|
|
111
112
|
readonly reason: 'study_not_found';
|
|
112
113
|
readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.NotFound;
|
|
@@ -160,6 +161,7 @@ export declare const readOnlyToolDefinitions: (import("@cyanheads/mcp-ts-core").
|
|
|
160
161
|
readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.NotFound;
|
|
161
162
|
readonly when: 'No connection has been registered under the requested alias';
|
|
162
163
|
readonly recovery: 'Run brapi_connect with this alias (or omit `alias` to use the default connection) before calling brapi_export_genotype_matrix.';
|
|
164
|
+
readonly thrownBy: 'service';
|
|
163
165
|
}, {
|
|
164
166
|
readonly reason: 'no_filters';
|
|
165
167
|
readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.ValidationError;
|
|
@@ -228,11 +230,13 @@ export declare const readOnlyToolDefinitions: (import("@cyanheads/mcp-ts-core").
|
|
|
228
230
|
readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.NotFound;
|
|
229
231
|
readonly when: 'No connection has been registered under the requested alias';
|
|
230
232
|
readonly recovery: 'Run brapi_connect with this alias (or omit `alias` to use the default connection) before calling brapi_find_locations.';
|
|
233
|
+
readonly thrownBy: 'service';
|
|
231
234
|
}, {
|
|
232
235
|
readonly reason: 'all_filters_dropped';
|
|
233
236
|
readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.ValidationError;
|
|
234
237
|
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.';
|
|
235
238
|
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.';
|
|
239
|
+
readonly thrownBy: 'service';
|
|
236
240
|
}], {
|
|
237
241
|
readonly totalCount: import("zod").ZodNumber;
|
|
238
242
|
readonly returnedCount: import("zod").ZodNumber;
|
|
@@ -289,11 +293,13 @@ export declare const readOnlyToolDefinitions: (import("@cyanheads/mcp-ts-core").
|
|
|
289
293
|
readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.NotFound;
|
|
290
294
|
readonly when: 'No connection has been registered under the requested alias';
|
|
291
295
|
readonly recovery: 'Run brapi_connect with this alias (or omit `alias` to use the default connection) before calling brapi_find_variants.';
|
|
296
|
+
readonly thrownBy: 'service';
|
|
292
297
|
}, {
|
|
293
298
|
readonly reason: 'all_filters_dropped';
|
|
294
299
|
readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.ValidationError;
|
|
295
300
|
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.';
|
|
296
301
|
readonly recovery: 'Drop the unsupported filters and rescope by variants, variantSets, references, or referenceName + start/end — these filter paths are honored on the active dialect.';
|
|
302
|
+
readonly thrownBy: 'service';
|
|
297
303
|
}], {
|
|
298
304
|
readonly totalCount: import("zod").ZodNumber;
|
|
299
305
|
readonly returnedCount: import("zod").ZodNumber;
|
|
@@ -336,6 +342,7 @@ export declare const readOnlyToolDefinitions: (import("@cyanheads/mcp-ts-core").
|
|
|
336
342
|
readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.NotFound;
|
|
337
343
|
readonly when: 'No connection has been registered under the requested alias';
|
|
338
344
|
readonly recovery: 'Run brapi_connect with this alias (or omit `alias` to use the default connection) before calling brapi_raw_get.';
|
|
345
|
+
readonly thrownBy: 'service';
|
|
339
346
|
}, {
|
|
340
347
|
readonly reason: 'cross_origin_path';
|
|
341
348
|
readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.ValidationError;
|
|
@@ -482,11 +489,13 @@ export declare const readOnlyToolDefinitions: (import("@cyanheads/mcp-ts-core").
|
|
|
482
489
|
readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.NotFound;
|
|
483
490
|
readonly when: 'No connection has been registered under the requested alias';
|
|
484
491
|
readonly recovery: 'Run brapi_connect with this alias (or omit `alias` to use the default connection) before calling brapi_build_phenotype_matrix.';
|
|
492
|
+
readonly thrownBy: 'service';
|
|
485
493
|
}, {
|
|
486
494
|
readonly reason: 'all_filters_dropped';
|
|
487
495
|
readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.ValidationError;
|
|
488
496
|
readonly when: 'The active dialect dropped every filter supplied — the call would silently widen to the unfiltered baseline';
|
|
489
497
|
readonly recovery: 'Drop unsupported filters or use studies / germplasm / variables to scope the query to supported filter paths on the active dialect.';
|
|
498
|
+
readonly thrownBy: 'service';
|
|
490
499
|
}, {
|
|
491
500
|
readonly reason: 'no_observation_path';
|
|
492
501
|
readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.ServiceUnavailable;
|
|
@@ -563,6 +572,7 @@ export declare const readOnlyToolDefinitions: (import("@cyanheads/mcp-ts-core").
|
|
|
563
572
|
readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.NotFound;
|
|
564
573
|
readonly when: 'No connection has been registered under the requested alias';
|
|
565
574
|
readonly recovery: 'Run brapi_connect with this alias (or omit `alias` to use the default connection) before calling brapi_server_info.';
|
|
575
|
+
readonly thrownBy: 'service';
|
|
566
576
|
}], undefined> | import("@cyanheads/mcp-ts-core").ToolDefinition<import("zod").ZodObject<{
|
|
567
577
|
alias: import("zod").ZodOptional<import("zod").ZodString>;
|
|
568
578
|
crop: import("zod").ZodOptional<import("zod").ZodString>;
|
|
@@ -620,11 +630,13 @@ export declare const readOnlyToolDefinitions: (import("@cyanheads/mcp-ts-core").
|
|
|
620
630
|
readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.NotFound;
|
|
621
631
|
readonly when: 'No connection has been registered under the requested alias';
|
|
622
632
|
readonly recovery: 'Run brapi_connect with this alias (or omit `alias` to use the default connection) before calling brapi_find_studies.';
|
|
633
|
+
readonly thrownBy: 'service';
|
|
623
634
|
}, {
|
|
624
635
|
readonly reason: 'all_filters_dropped';
|
|
625
636
|
readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.ValidationError;
|
|
626
637
|
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.';
|
|
627
638
|
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.';
|
|
639
|
+
readonly thrownBy: 'service';
|
|
628
640
|
}], {
|
|
629
641
|
readonly totalCount: import("zod").ZodNumber;
|
|
630
642
|
readonly returnedCount: import("zod").ZodNumber;
|
|
@@ -694,11 +706,13 @@ export declare const readOnlyToolDefinitions: (import("@cyanheads/mcp-ts-core").
|
|
|
694
706
|
readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.NotFound;
|
|
695
707
|
readonly when: 'No connection has been registered under the requested alias';
|
|
696
708
|
readonly recovery: 'Run brapi_connect with this alias (or omit `alias` to use the default connection) before calling brapi_find_germplasm.';
|
|
709
|
+
readonly thrownBy: 'service';
|
|
697
710
|
}, {
|
|
698
711
|
readonly reason: 'all_filters_dropped';
|
|
699
712
|
readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.ValidationError;
|
|
700
713
|
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.';
|
|
701
714
|
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.';
|
|
715
|
+
readonly thrownBy: 'service';
|
|
702
716
|
}], {
|
|
703
717
|
readonly totalCount: import("zod").ZodNumber;
|
|
704
718
|
readonly returnedCount: import("zod").ZodNumber;
|
|
@@ -753,6 +767,7 @@ export declare const readOnlyToolDefinitions: (import("@cyanheads/mcp-ts-core").
|
|
|
753
767
|
readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.NotFound;
|
|
754
768
|
readonly when: 'No connection has been registered under the requested alias';
|
|
755
769
|
readonly recovery: 'Run brapi_connect with this alias (or omit `alias` to use the default connection) before calling brapi_get_germplasm.';
|
|
770
|
+
readonly thrownBy: 'service';
|
|
756
771
|
}, {
|
|
757
772
|
readonly reason: 'germplasm_not_found';
|
|
758
773
|
readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.NotFound;
|
|
@@ -831,6 +846,7 @@ export declare const readOnlyToolDefinitions: (import("@cyanheads/mcp-ts-core").
|
|
|
831
846
|
readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.NotFound;
|
|
832
847
|
readonly when: 'No connection has been registered under the requested alias';
|
|
833
848
|
readonly recovery: 'Run brapi_connect with this alias (or omit `alias` to use the default connection) before calling brapi_walk_pedigree.';
|
|
849
|
+
readonly thrownBy: 'service';
|
|
834
850
|
}], undefined> | import("@cyanheads/mcp-ts-core").ToolDefinition<import("zod").ZodObject<{
|
|
835
851
|
alias: import("zod").ZodOptional<import("zod").ZodString>;
|
|
836
852
|
germplasmDbId: import("zod").ZodString;
|
|
@@ -861,6 +877,7 @@ export declare const readOnlyToolDefinitions: (import("@cyanheads/mcp-ts-core").
|
|
|
861
877
|
readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.NotFound;
|
|
862
878
|
readonly when: 'No connection has been registered under the requested alias';
|
|
863
879
|
readonly recovery: 'Run brapi_connect with this alias (or omit `alias` to use the default connection) before calling brapi_germplasm_performance.';
|
|
880
|
+
readonly thrownBy: 'service';
|
|
864
881
|
}, {
|
|
865
882
|
readonly reason: 'germplasm_not_found';
|
|
866
883
|
readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.NotFound;
|
|
@@ -942,11 +959,13 @@ export declare const readOnlyToolDefinitions: (import("@cyanheads/mcp-ts-core").
|
|
|
942
959
|
readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.NotFound;
|
|
943
960
|
readonly when: 'No connection has been registered under the requested alias';
|
|
944
961
|
readonly recovery: 'Run brapi_connect with this alias (or omit `alias` to use the default connection) before calling brapi_find_variables.';
|
|
962
|
+
readonly thrownBy: 'service';
|
|
945
963
|
}, {
|
|
946
964
|
readonly reason: 'all_filters_dropped';
|
|
947
965
|
readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.ValidationError;
|
|
948
966
|
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.';
|
|
949
967
|
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.';
|
|
968
|
+
readonly thrownBy: 'service';
|
|
950
969
|
}], {
|
|
951
970
|
readonly totalCount: import("zod").ZodNumber;
|
|
952
971
|
readonly returnedCount: import("zod").ZodNumber;
|
|
@@ -1012,11 +1031,13 @@ export declare const readOnlyToolDefinitions: (import("@cyanheads/mcp-ts-core").
|
|
|
1012
1031
|
readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.NotFound;
|
|
1013
1032
|
readonly when: 'No connection has been registered under the requested alias';
|
|
1014
1033
|
readonly recovery: 'Run brapi_connect with this alias (or omit `alias` to use the default connection) before calling brapi_find_observations.';
|
|
1034
|
+
readonly thrownBy: 'service';
|
|
1015
1035
|
}, {
|
|
1016
1036
|
readonly reason: 'all_filters_dropped';
|
|
1017
1037
|
readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.ValidationError;
|
|
1018
1038
|
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.';
|
|
1019
1039
|
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.';
|
|
1040
|
+
readonly thrownBy: 'service';
|
|
1020
1041
|
}], {
|
|
1021
1042
|
readonly totalCount: import("zod").ZodNumber;
|
|
1022
1043
|
readonly returnedCount: import("zod").ZodNumber;
|
|
@@ -1079,11 +1100,13 @@ export declare const readOnlyToolDefinitions: (import("@cyanheads/mcp-ts-core").
|
|
|
1079
1100
|
readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.NotFound;
|
|
1080
1101
|
readonly when: 'No connection has been registered under the requested alias';
|
|
1081
1102
|
readonly recovery: 'Run brapi_connect with this alias (or omit `alias` to use the default connection) before calling brapi_find_images.';
|
|
1103
|
+
readonly thrownBy: 'service';
|
|
1082
1104
|
}, {
|
|
1083
1105
|
readonly reason: 'all_filters_dropped';
|
|
1084
1106
|
readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.ValidationError;
|
|
1085
1107
|
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.';
|
|
1086
1108
|
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.';
|
|
1109
|
+
readonly thrownBy: 'service';
|
|
1087
1110
|
}], {
|
|
1088
1111
|
readonly totalCount: import("zod").ZodNumber;
|
|
1089
1112
|
readonly returnedCount: import("zod").ZodNumber;
|
|
@@ -1135,6 +1158,7 @@ export declare const readOnlyToolDefinitions: (import("@cyanheads/mcp-ts-core").
|
|
|
1135
1158
|
readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.NotFound;
|
|
1136
1159
|
readonly when: 'No connection has been registered under the requested alias';
|
|
1137
1160
|
readonly recovery: 'Run brapi_connect with this alias (or omit `alias` to use the default connection) before calling brapi_get_image.';
|
|
1161
|
+
readonly thrownBy: 'service';
|
|
1138
1162
|
}, {
|
|
1139
1163
|
readonly reason: 'images_unsupported';
|
|
1140
1164
|
readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.NotFound;
|
|
@@ -1197,6 +1221,7 @@ export declare const readOnlyToolDefinitions: (import("@cyanheads/mcp-ts-core").
|
|
|
1197
1221
|
readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.NotFound;
|
|
1198
1222
|
readonly when: 'No connection has been registered under the requested alias';
|
|
1199
1223
|
readonly recovery: 'Run brapi_connect with this alias (or omit `alias` to use the default connection) before calling brapi_find_genotype_calls.';
|
|
1224
|
+
readonly thrownBy: 'service';
|
|
1200
1225
|
}, {
|
|
1201
1226
|
readonly reason: 'no_filters';
|
|
1202
1227
|
readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.ValidationError;
|
|
@@ -1300,6 +1325,7 @@ export declare const readOnlyToolDefinitions: (import("@cyanheads/mcp-ts-core").
|
|
|
1300
1325
|
readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.NotFound;
|
|
1301
1326
|
readonly when: 'No connection has been registered under the requested alias';
|
|
1302
1327
|
readonly recovery: 'Run brapi_connect with this alias (or omit `alias` to use the default connection) before calling brapi_raw_search.';
|
|
1328
|
+
readonly thrownBy: 'service';
|
|
1303
1329
|
}, {
|
|
1304
1330
|
readonly reason: 'search_endpoint_disabled';
|
|
1305
1331
|
readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.ValidationError;
|
|
@@ -1364,6 +1390,7 @@ export declare const exportToolDefinitions: import("@cyanheads/mcp-ts-core").Too
|
|
|
1364
1390
|
readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.ValidationError;
|
|
1365
1391
|
readonly when: 'filename contains path separators or traversal segments';
|
|
1366
1392
|
readonly recovery: 'Provide a filename without "/", "\\", or ".." — leave it unset to use the default.';
|
|
1393
|
+
readonly thrownBy: 'service';
|
|
1367
1394
|
}, {
|
|
1368
1395
|
readonly reason: 'mutually_exclusive_projection';
|
|
1369
1396
|
readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.ValidationError;
|
|
@@ -1449,6 +1476,7 @@ export declare const writeToolDefinitions: import("@cyanheads/mcp-ts-core").Tool
|
|
|
1449
1476
|
readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.NotFound;
|
|
1450
1477
|
readonly when: 'No connection has been registered under the requested alias';
|
|
1451
1478
|
readonly recovery: 'Run brapi_connect with this alias (or omit `alias` to use the default connection) before calling brapi_submit_observations.';
|
|
1479
|
+
readonly thrownBy: 'service';
|
|
1452
1480
|
}, {
|
|
1453
1481
|
readonly reason: 'observations_unsupported';
|
|
1454
1482
|
readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.ValidationError;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AA4BH;;;;GAIG;AACH,eAAO,MAAM,uBAAuB
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/mcp-server/tools/definitions/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AA4BH;;;;GAIG;AACH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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baseUrl: string, noun: string, searchResultsDbId: string, ctx: Context, options?: BrapiRequestOptions): Promise<BrapiEnvelope<T>>;
|
|
75
|
+
/**
|
|
76
|
+
* `init.signal` lets a `withRetry` caller pass the per-attempt
|
|
77
|
+
* `RetryAttempt.signal` — `AbortSignal.any` over the caller abort and the
|
|
78
|
+
* retry deadline clock — so an expiry firing mid-attempt aborts the request
|
|
79
|
+
* already in flight instead of overshooting it. Callers outside a retry
|
|
80
|
+
* ladder omit it and fall back to the caller signal.
|
|
81
|
+
*/
|
|
75
82
|
private doFetch;
|
|
76
83
|
private buildUrl;
|
|
77
84
|
private buildHeaders;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"brapi-client.d.ts","sourceRoot":"","sources":["../../../src/services/brapi-client/brapi-client.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AACtD,OAAO,EAGL,QAAQ,EAQT,MAAM,+BAA+B,CAAC;AACvC,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAE5E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,KAAK,EACV,cAAc,EACd,aAAa,EACb,mBAAmB,EAEnB,cAAc,EACf,MAAM,YAAY,CAAC;AAGpB;;;GAGG;AACH,MAAM,MAAM,OAAO,GAAG,CACpB,GAAG,EAAE,MAAM,GAAG,GAAG,EACjB,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE,OAAO,EAChB,OAAO,CAAC,EAAE,uBAAuB,KAC9B,OAAO,CAAC,QAAQ,CAAC,CAAC;AAKvB,qBAAa,WAAW;IAEpB,OAAO,CAAC,QAAQ,CAAC,YAAY;IAC7B,OAAO,CAAC,QAAQ,CAAC,OAAO;IAF1B,YACmB,YAAY,EAAE,YAAY,EAC1B,OAAO,GAAE,OAAwB,EAChD;IAEJ;;;;;;;;OAQG;IACG,GAA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E,mBAAwB,GAChC,OAAO,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,CAE3B;IAED;;;OAGG;IACH,GAAG,CAAC,CAAC,EACH,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,OAAO,EACb,GAAG,EAAE,OAAO,EACZ,OAAO,GAAE,mBAAwB,GAChC,OAAO,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,CAE3B;IAED,OAAO,CAAC,QAAQ;IAoChB;;;;OAIG;IACG,gBAAgB,CAAC,CAAC,EACtB,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,MAAM,EACZ,iBAAiB,EAAE,MAAM,EACzB,GAAG,EAAE,OAAO,EACZ,OAAO,GAAE,mBAAwB,GAChC,OAAO,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,CAqC3B;IAED;;;;;;OAMG;YACW,OAAO;IAuBrB,OAAO,CAAC,QAAQ;IAiBhB,OAAO,CAAC,YAAY;YAQN,aAAa;CAyB5B;AAoGD;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,OAAO,GAAG,GAAG,IAAI,QAAQ,CAQjE;AAoCD,wBAAgB,eAAe,CAAC,YAAY,EAAE,YAAY,EAAE,OAAO,CAAC,EAAE,OAAO,GAAG,IAAI,CAEnF;AAED,wBAAgB,cAAc,IAAI,WAAW,CAK5C;AAED,yEAAyE;AACzE,wBAAgB,gBAAgB,IAAI,IAAI,CAEvC"}
|
|
@@ -30,8 +30,8 @@ export class BrapiClient {
|
|
|
30
30
|
*/
|
|
31
31
|
async get(baseUrl, path, ctx, options = {}) {
|
|
32
32
|
const params = applyDialectToParams(path, options);
|
|
33
|
-
return await withRetry(async () => {
|
|
34
|
-
const response = await this.doFetch(this.buildUrl(baseUrl, path, params), ctx, { method: 'GET', headers: this.buildHeaders(options.auth) }, options.timeoutMs, options.singleton === true);
|
|
33
|
+
return await withRetry(async ({ signal }) => {
|
|
34
|
+
const response = await this.doFetch(this.buildUrl(baseUrl, path, params), ctx, { method: 'GET', headers: this.buildHeaders(options.auth), signal }, options.timeoutMs, options.singleton === true);
|
|
35
35
|
return this.parseEnvelope(response);
|
|
36
36
|
}, {
|
|
37
37
|
operation: `brapi.get ${path}`,
|
|
@@ -47,10 +47,10 @@ export class BrapiClient {
|
|
|
47
47
|
* overrides the default `image/*`.
|
|
48
48
|
*/
|
|
49
49
|
getBinary(baseUrl, path, ctx, options = {}) {
|
|
50
|
-
return withRetry(async () => {
|
|
50
|
+
return withRetry(async ({ signal }) => {
|
|
51
51
|
const headers = this.buildHeaders(options.auth);
|
|
52
52
|
headers.Accept = options.accept ?? 'image/*';
|
|
53
|
-
const response = await this.doFetch(this.buildUrl(baseUrl, path, options.params), ctx, { method: 'GET', headers }, options.timeoutMs);
|
|
53
|
+
const response = await this.doFetch(this.buildUrl(baseUrl, path, options.params), ctx, { method: 'GET', headers, signal }, options.timeoutMs);
|
|
54
54
|
const buffer = await response.arrayBuffer();
|
|
55
55
|
const contentType = response.headers.get('Content-Type') ?? 'application/octet-stream';
|
|
56
56
|
return { bytes: new Uint8Array(buffer), contentType };
|
|
@@ -81,7 +81,7 @@ export class BrapiClient {
|
|
|
81
81
|
* `searchResultsDbId` the caller must poll via `getSearchResults`.
|
|
82
82
|
*/
|
|
83
83
|
postSearch(baseUrl, noun, body, ctx, options = {}) {
|
|
84
|
-
return withRetry(async () => {
|
|
84
|
+
return withRetry(async ({ signal }) => {
|
|
85
85
|
const response = await this.doFetch(this.buildUrl(baseUrl, `/search/${noun}`), ctx, {
|
|
86
86
|
method: 'POST',
|
|
87
87
|
headers: {
|
|
@@ -89,6 +89,7 @@ export class BrapiClient {
|
|
|
89
89
|
'Content-Type': 'application/json',
|
|
90
90
|
},
|
|
91
91
|
body: JSON.stringify(body),
|
|
92
|
+
signal,
|
|
92
93
|
}, options.timeoutMs);
|
|
93
94
|
const envelope = await this.parseEnvelope(response);
|
|
94
95
|
const asyncId = extractAsyncId(envelope);
|
|
@@ -120,7 +121,7 @@ export class BrapiClient {
|
|
|
120
121
|
return this.sendJson('PUT', baseUrl, path, body, ctx, options);
|
|
121
122
|
}
|
|
122
123
|
sendJson(method, baseUrl, path, body, ctx, options = {}) {
|
|
123
|
-
return withRetry(async () => {
|
|
124
|
+
return withRetry(async ({ signal }) => {
|
|
124
125
|
const response = await this.doFetch(this.buildUrl(baseUrl, path, options.params), ctx, {
|
|
125
126
|
method,
|
|
126
127
|
headers: {
|
|
@@ -128,6 +129,7 @@ export class BrapiClient {
|
|
|
128
129
|
'Content-Type': 'application/json',
|
|
129
130
|
},
|
|
130
131
|
body: JSON.stringify(body),
|
|
132
|
+
signal,
|
|
131
133
|
}, options.timeoutMs);
|
|
132
134
|
return this.parseEnvelope(response);
|
|
133
135
|
}, {
|
|
@@ -166,11 +168,18 @@ export class BrapiClient {
|
|
|
166
168
|
return this.parseEnvelope(response);
|
|
167
169
|
}
|
|
168
170
|
}
|
|
171
|
+
/**
|
|
172
|
+
* `init.signal` lets a `withRetry` caller pass the per-attempt
|
|
173
|
+
* `RetryAttempt.signal` — `AbortSignal.any` over the caller abort and the
|
|
174
|
+
* retry deadline clock — so an expiry firing mid-attempt aborts the request
|
|
175
|
+
* already in flight instead of overshooting it. Callers outside a retry
|
|
176
|
+
* ladder omit it and fall back to the caller signal.
|
|
177
|
+
*/
|
|
169
178
|
async doFetch(url, ctx, init, timeoutMs, singleton = false) {
|
|
170
179
|
try {
|
|
171
180
|
return await this.fetcher(url, timeoutMs ?? this.serverConfig.requestTimeoutMs, ctx, {
|
|
172
181
|
...init,
|
|
173
|
-
signal: ctx.signal,
|
|
182
|
+
signal: init.signal ?? ctx.signal,
|
|
174
183
|
rejectPrivateIPs: !this.serverConfig.allowPrivateIps,
|
|
175
184
|
// Every singleton caller catches the not-found and reports it as an
|
|
176
185
|
// absent record, so a 404 here is an outcome, not an incident — log it
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"brapi-client.js","sourceRoot":"","sources":["../../../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OAAO,EAAE,OAAO,CAAC,CAAC;YACjD,OAAO,EAAE,CAAC;QACZ,CAAC,EAAE,EAAE,CAAC,CAAC;QACP,MAAM,OAAO,GAAG,GAAG,EAAE;YACnB,YAAY,CAAC,KAAK,CAAC,CAAC;YACpB,MAAM,CAAC,gBAAgB,CAAC,yBAAyB,CAAC,CAAC,CAAC;QACtD,CAAC,CAAC;QACF,GAAG,CAAC,MAAM,CAAC,gBAAgB,CAAC,OAAO,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC;IAChE,CAAC,CAAC,CAAC;AACL,CAAC;AAED,IAAI,OAAgC,CAAC;AAErC,MAAM,UAAU,eAAe,CAAC,YAA0B,EAAE,OAAiB;IAC3E,OAAO,GAAG,IAAI,WAAW,CAAC,YAAY,EAAE,OAAO,CAAC,CAAC;AACnD,CAAC;AAED,MAAM,UAAU,cAAc;IAC5B,IAAI,CAAC,OAAO,EAAE,CAAC;QACb,MAAM,IAAI,KAAK,CAAC,iEAAiE,CAAC,CAAC;IACrF,CAAC;IACD,OAAO,OAAO,CAAC;AACjB,CAAC;AAED,yEAAyE;AACzE,MAAM,UAAU,gBAAgB;IAC9B,OAAO,GAAG,SAAS,CAAC;AACtB,CAAC"}
|
|
1
|
+
{"version":3,"file":"brapi-client.js","sourceRoot":"","sources":["../../../src/services/brapi-client/brapi-client.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAGH,OAAO,EACL,SAAS,EACT,gBAAgB,EAChB,QAAQ,EACR,QAAQ,EACR,WAAW,EACX,gBAAgB,EAChB,kBAAkB,EAClB,OAAO,EACP,YAAY,EACZ,eAAe,GAChB,MAAM,+BAA+B,CAAC;AAEvC,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAS3E,OAAO,EAAE,0BAA0B,EAAE,MAAM,YAAY,CAAC;AAaxD,MAAM,cAAc,GAAY,CAAC,GAAG,EAAE,SAAS,EAAE,OAAO,EA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CAAC;QACtD,CAAC,CAAC;QACF,GAAG,CAAC,MAAM,CAAC,gBAAgB,CAAC,OAAO,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC;IAChE,CAAC,CAAC,CAAC;AACL,CAAC;AAED,IAAI,OAAgC,CAAC;AAErC,MAAM,UAAU,eAAe,CAAC,YAA0B,EAAE,OAAiB;IAC3E,OAAO,GAAG,IAAI,WAAW,CAAC,YAAY,EAAE,OAAO,CAAC,CAAC;AACnD,CAAC;AAED,MAAM,UAAU,cAAc;IAC5B,IAAI,CAAC,OAAO,EAAE,CAAC;QACb,MAAM,IAAI,KAAK,CAAC,iEAAiE,CAAC,CAAC;IACrF,CAAC;IACD,OAAO,OAAO,CAAC;AACjB,CAAC;AAED,yEAAyE;AACzE,MAAM,UAAU,gBAAgB;IAC9B,OAAO,GAAG,SAAS,CAAC;AACtB,CAAC"}
|
package/manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cyanheads/brapi-mcp-server",
|
|
3
3
|
"mcpName": "io.github.cyanheads/brapi-mcp-server",
|
|
4
|
-
"version": "0.7.
|
|
4
|
+
"version": "0.7.13",
|
|
5
5
|
"description": "A collaborative BrAPI v2.1 workspace for multi-agent research via MCP. Search studies, germplasm, genotypes, & more - across Breedbase, T3, Sweetpotatobase, & any BrAPI v2-compliant server.",
|
|
6
6
|
"author": "Casey Hand <casey@caseyjhand.com> (https://caseyjhand.com)",
|
|
7
7
|
"type": "module",
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
"README.md",
|
|
17
17
|
"LICENSE",
|
|
18
18
|
"CLAUDE.md",
|
|
19
|
+
"AGENTS.md",
|
|
19
20
|
"Dockerfile",
|
|
20
21
|
"manifest.json",
|
|
21
22
|
"server.json"
|
|
@@ -72,6 +73,16 @@
|
|
|
72
73
|
"bugs": {
|
|
73
74
|
"url": "https://github.com/cyanheads/brapi-mcp-server/issues"
|
|
74
75
|
},
|
|
76
|
+
"funding": [
|
|
77
|
+
{
|
|
78
|
+
"type": "github",
|
|
79
|
+
"url": "https://github.com/sponsors/cyanheads"
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"type": "buy_me_a_coffee",
|
|
83
|
+
"url": "https://www.buymeacoffee.com/cyanheads"
|
|
84
|
+
}
|
|
85
|
+
],
|
|
75
86
|
"license": "Apache-2.0",
|
|
76
87
|
"engines": {
|
|
77
88
|
"node": ">=24.0.0",
|
|
@@ -82,19 +93,19 @@
|
|
|
82
93
|
"access": "public"
|
|
83
94
|
},
|
|
84
95
|
"dependencies": {
|
|
85
|
-
"@cyanheads/mcp-ts-core": "^0.13.
|
|
86
|
-
"@duckdb/node-api": "^1.5.5-r.
|
|
96
|
+
"@cyanheads/mcp-ts-core": "^0.13.6",
|
|
97
|
+
"@duckdb/node-api": "^1.5.5-r.5",
|
|
87
98
|
"pino-pretty": "^13.1.3",
|
|
88
|
-
"zod": "^4.6.
|
|
99
|
+
"zod": "^4.6.5"
|
|
89
100
|
},
|
|
90
101
|
"devDependencies": {
|
|
91
|
-
"@biomejs/biome": "^2.5.
|
|
102
|
+
"@biomejs/biome": "^2.5.14",
|
|
92
103
|
"@socketsecurity/bun-security-scanner": "^1.1.2",
|
|
93
104
|
"@types/node": "^26.5.1",
|
|
94
105
|
"depcheck": "^1.4.7",
|
|
95
106
|
"ignore": "^7.0.9",
|
|
96
|
-
"tsc-alias": "^1.9.
|
|
107
|
+
"tsc-alias": "^1.9.5",
|
|
97
108
|
"typescript": "^7.0.2",
|
|
98
|
-
"vitest": "^5.0.
|
|
109
|
+
"vitest": "^5.0.1"
|
|
99
110
|
}
|
|
100
111
|
}
|
package/server.json
CHANGED
|
@@ -6,14 +6,14 @@
|
|
|
6
6
|
"url": "https://github.com/cyanheads/brapi-mcp-server",
|
|
7
7
|
"source": "github"
|
|
8
8
|
},
|
|
9
|
-
"version": "0.7.
|
|
9
|
+
"version": "0.7.13",
|
|
10
10
|
"packages": [
|
|
11
11
|
{
|
|
12
12
|
"registryType": "npm",
|
|
13
13
|
"registryBaseUrl": "https://registry.npmjs.org",
|
|
14
14
|
"identifier": "@cyanheads/brapi-mcp-server",
|
|
15
15
|
"runtimeHint": "bun",
|
|
16
|
-
"version": "0.7.
|
|
16
|
+
"version": "0.7.13",
|
|
17
17
|
"packageArguments": [
|
|
18
18
|
{ "type": "positional", "value": "run" },
|
|
19
19
|
{ "type": "positional", "value": "start:stdio" }
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"registryBaseUrl": "https://registry.npmjs.org",
|
|
57
57
|
"identifier": "@cyanheads/brapi-mcp-server",
|
|
58
58
|
"runtimeHint": "bun",
|
|
59
|
-
"version": "0.7.
|
|
59
|
+
"version": "0.7.13",
|
|
60
60
|
"packageArguments": [
|
|
61
61
|
{ "type": "positional", "value": "run" },
|
|
62
62
|
{ "type": "positional", "value": "start:http" }
|
|
@@ -123,5 +123,11 @@
|
|
|
123
123
|
"url": "http://localhost:3010/mcp"
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
|
+
],
|
|
127
|
+
"remotes": [
|
|
128
|
+
{
|
|
129
|
+
"type": "streamable-http",
|
|
130
|
+
"url": "https://brapi.caseyjhand.com/mcp"
|
|
131
|
+
}
|
|
126
132
|
]
|
|
127
133
|
}
|