clinicaltrialsgov-mcp-server 2.8.1 → 2.8.2

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/README.md CHANGED
@@ -7,7 +7,7 @@
7
7
 
8
8
  <div align="center">
9
9
 
10
- [![npm](https://img.shields.io/npm/v/clinicaltrialsgov-mcp-server?style=flat-square&logo=npm&logoColor=white)](https://www.npmjs.com/package/clinicaltrialsgov-mcp-server) [![Docker](https://img.shields.io/badge/Docker-ghcr.io-2496ED?style=flat-square&logo=docker&logoColor=white)](https://github.com/users/cyanheads/packages/container/package/clinicaltrialsgov-mcp-server) [![Version](https://img.shields.io/badge/Version-2.8.1-blue.svg?style=flat-square)](./CHANGELOG.md) [![MCP SDK](https://img.shields.io/badge/MCP%20SDK-^1.29.0-green.svg?style=flat-square)](https://modelcontextprotocol.io/) [![License](https://img.shields.io/badge/License-Apache%202.0-orange.svg?style=flat-square)](./LICENSE) [![TypeScript](https://img.shields.io/badge/TypeScript-^6.0-3178C6.svg?style=flat-square)](https://www.typescriptlang.org/) [![Bun](https://img.shields.io/badge/Bun-v1.3.14-blueviolet.svg?style=flat-square)](https://bun.sh/)
10
+ [![npm](https://img.shields.io/npm/v/clinicaltrialsgov-mcp-server?style=flat-square&logo=npm&logoColor=white)](https://www.npmjs.com/package/clinicaltrialsgov-mcp-server) [![Docker](https://img.shields.io/badge/Docker-ghcr.io-2496ED?style=flat-square&logo=docker&logoColor=white)](https://github.com/users/cyanheads/packages/container/package/clinicaltrialsgov-mcp-server) [![Version](https://img.shields.io/badge/Version-2.8.2-blue.svg?style=flat-square)](./CHANGELOG.md) [![MCP SDK](https://img.shields.io/badge/MCP%20SDK-^1.29.0-green.svg?style=flat-square)](https://modelcontextprotocol.io/) [![License](https://img.shields.io/badge/License-Apache%202.0-orange.svg?style=flat-square)](./LICENSE) [![TypeScript](https://img.shields.io/badge/TypeScript-^6.0-3178C6.svg?style=flat-square)](https://www.typescriptlang.org/) [![Bun](https://img.shields.io/badge/Bun-v1.3.14-blueviolet.svg?style=flat-square)](https://bun.sh/)
11
11
 
12
12
  </div>
13
13
 
@@ -32,7 +32,7 @@ export declare const getFieldDefinitions: import("@cyanheads/mcp-ts-core").ToolD
32
32
  readonly reason: "path_not_found";
33
33
  readonly code: JsonRpcErrorCode.NotFound;
34
34
  readonly when: "The dot-notation path does not match any node in the field tree.";
35
- readonly recovery: "Call clinicaltrials_get_field_definitions with `query` (e.g., \"phase\", \"enrollment\") to find the field path by concept, or omit both arguments for a top-level overview.";
35
+ readonly recovery: "Call clinicaltrials_get_field_definitions with mode=\"search\" and query=\"phase\" (or \"enrollment\") to find a path by concept, or mode=\"overview\" for the top-level sections.";
36
36
  }, {
37
37
  readonly reason: "rate_limited";
38
38
  readonly code: JsonRpcErrorCode.RateLimited;
@@ -12,7 +12,7 @@ export declare const RECOVERY_HINTS: {
12
12
  readonly field_invalid: "Call clinicaltrials_get_field_definitions to browse the field tree; use PascalCase piece names like OverallStatus, Phase, or StudyType.";
13
13
  readonly enum_invalid: "Call clinicaltrials_get_field_values with fields=[\"OverallStatus\"] or fields=[\"Phase\"] to see the valid enum values the filter accepts.";
14
14
  readonly query_parse_error: "Field-scoped search uses advancedFilter with AREA[FieldName]value (call clinicaltrials_get_field_definitions to look up the right FieldName); free-text fields (query, conditionQuery, etc.) take plain words plus AND, OR, NOT — `[ ]` are reserved (advancedFilter AREA[] only); `( )` group sub-expressions and are safe when matched; `,` acts as AND.";
15
- readonly path_not_found: "Call clinicaltrials_get_field_definitions with `query` (e.g., \"phase\", \"enrollment\") to find the field path by concept, or omit both arguments for a top-level overview.";
15
+ readonly path_not_found: "Call clinicaltrials_get_field_definitions with mode=\"search\" and query=\"phase\" (or \"enrollment\") to find a path by concept, or mode=\"overview\" for the top-level sections.";
16
16
  readonly rate_limited: "ClinicalTrials.gov rate-limited the request after several retries; wait about a minute before trying again.";
17
17
  };
18
18
  //# sourceMappingURL=recovery-hints.d.ts.map
@@ -12,7 +12,7 @@ export const RECOVERY_HINTS = {
12
12
  field_invalid: 'Call clinicaltrials_get_field_definitions to browse the field tree; use PascalCase piece names like OverallStatus, Phase, or StudyType.',
13
13
  enum_invalid: 'Call clinicaltrials_get_field_values with fields=["OverallStatus"] or fields=["Phase"] to see the valid enum values the filter accepts.',
14
14
  query_parse_error: 'Field-scoped search uses advancedFilter with AREA[FieldName]value (call clinicaltrials_get_field_definitions to look up the right FieldName); free-text fields (query, conditionQuery, etc.) take plain words plus AND, OR, NOT — `[ ]` are reserved (advancedFilter AREA[] only); `( )` group sub-expressions and are safe when matched; `,` acts as AND.',
15
- path_not_found: 'Call clinicaltrials_get_field_definitions with `query` (e.g., "phase", "enrollment") to find the field path by concept, or omit both arguments for a top-level overview.',
15
+ path_not_found: 'Call clinicaltrials_get_field_definitions with mode="search" and query="phase" (or "enrollment") to find a path by concept, or mode="overview" for the top-level sections.',
16
16
  rate_limited: 'ClinicalTrials.gov rate-limited the request after several retries; wait about a minute before trying again.',
17
17
  };
18
18
  //# sourceMappingURL=recovery-hints.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"recovery-hints.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/utils/recovery-hints.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,eAAe,EACb,+GAA+G;IACjH,aAAa,EACX,6HAA6H;IAC/H,aAAa,EACX,yIAAyI;IAC3I,YAAY,EACV,yIAAyI;IAC3I,iBAAiB,EACf,4VAA4V;IAC9V,cAAc,EACZ,0KAA0K;IAC5K,YAAY,EACV,6GAA6G;CACvG,CAAC"}
1
+ {"version":3,"file":"recovery-hints.js","sourceRoot":"","sources":["../../../../src/mcp-server/tools/utils/recovery-hints.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,eAAe,EACb,+GAA+G;IACjH,aAAa,EACX,6HAA6H;IAC/H,aAAa,EACX,yIAAyI;IAC3I,YAAY,EACV,yIAAyI;IAC3I,iBAAiB,EACf,4VAA4V;IAC9V,cAAc,EACZ,4KAA4K;IAC9K,YAAY,EACV,6GAA6G;CACvG,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clinicaltrialsgov-mcp-server",
3
- "version": "2.8.1",
3
+ "version": "2.8.2",
4
4
  "mcpName": "io.github.cyanheads/clinicaltrialsgov-mcp-server",
5
5
  "description": "Search ClinicalTrials.gov trials, retrieve study details and results, and match patients to eligible trials via MCP. STDIO or Streamable HTTP.",
6
6
  "main": "dist/index.js",