@mongodb-js/mcp-types 3.0.0-prerelease.4 → 3.0.0-prerelease.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,28 +1,19 @@
1
1
  /**
2
- * Atlas cluster connection info containing details about the connected Atlas cluster.
3
- * When provided, indicates the connection is to an Atlas cluster.
2
+ * The Atlas cluster a connection entry addresses. Supplying it when creating the
3
+ * entry marks the connection as an Atlas one: it drives cluster attribution on
4
+ * tool telemetry, the `atlas` host type, and lets `pause-resume-cluster` find
5
+ * the connections to the cluster it just paused. A host that establishes the
6
+ * connection with its own credentials (X.509, a pre-provisioned user, a proxy)
7
+ * still knows which cluster it connected to and should supply this.
4
8
  *
5
- * The cluster's projectId, name and id are required. A host that establishes the
6
- * connection without minting a temporary database user — via its own credential
7
- * issuance, X.509, a pre-provisioned user, a proxy — still knows which cluster it
8
- * connected to and needs to be able to specify it: this field is what marks a
9
- * connection as pointing at Atlas, and leaving it unset prevents cluster
10
- * attribution on tool telemetry, the `atlas` host type, and the ability of
11
- * `pause-resume-cluster` to find connections to the cluster it just paused.
12
- * Hosts that only know the cluster name should resolve the id through the Atlas
13
- * API before connecting.
9
+ * `clusterId` should be resolved through the Atlas API before connecting; it is
10
+ * optional only because a registry can know which cluster a handle addresses
11
+ * before the handle has dialed and resolved the id.
14
12
  */
15
13
  export type AtlasClusterConnectionInfo = {
16
- /** Which Atlas cluster this connection points at. */
17
14
  projectId: string;
18
15
  clusterName: string;
19
- clusterId: string;
20
- /**
21
- * The temporary database user backing the connection. Set only by
22
- * `connect-cluster`, which also schedules its deletion; absent when the
23
- * host supplied its own credentials.
24
- */
25
- username?: string;
16
+ clusterId?: string;
26
17
  /** The cluster's tier, set when the host resolved it. */
27
18
  instanceType?: "FREE" | "FLEX" | "DEDICATED";
28
19
  };
@@ -41,6 +32,5 @@ export type ConnectionStringInfo = {
41
32
  export type SupportedConnectionState = {
42
33
  tag: string;
43
34
  connectionStringInfo?: ConnectionStringInfo;
44
- connectedAtlasCluster?: AtlasClusterConnectionInfo;
45
35
  };
46
36
  //# sourceMappingURL=connection.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"connection.d.ts","sourceRoot":"","sources":["../src/connection.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AACH,MAAM,MAAM,0BAA0B,GAAG;IACrC,qDAAqD;IACrD,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAElB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,yDAAyD;IACzD,YAAY,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,WAAW,CAAC;CAChD,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG;IAC/B,QAAQ,EAAE,OAAO,GAAG,MAAM,GAAG,UAAU,GAAG,gBAAgB,GAAG,kBAAkB,GAAG,OAAO,GAAG,SAAS,CAAC;IACtG,QAAQ,EAAE,SAAS,GAAG,OAAO,GAAG,OAAO,GAAG,aAAa,GAAG,OAAO,CAAC;CACrE,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,wBAAwB,GAAG;IACnC,GAAG,EAAE,MAAM,CAAC;IACZ,oBAAoB,CAAC,EAAE,oBAAoB,CAAC;IAC5C,qBAAqB,CAAC,EAAE,0BAA0B,CAAC;CACtD,CAAC"}
1
+ {"version":3,"file":"connection.d.ts","sourceRoot":"","sources":["../src/connection.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,MAAM,MAAM,0BAA0B,GAAG;IACrC,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,yDAAyD;IACzD,YAAY,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,WAAW,CAAC;CAChD,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG;IAC/B,QAAQ,EAAE,OAAO,GAAG,MAAM,GAAG,UAAU,GAAG,gBAAgB,GAAG,kBAAkB,GAAG,OAAO,GAAG,SAAS,CAAC;IACtG,QAAQ,EAAE,SAAS,GAAG,OAAO,GAAG,OAAO,GAAG,aAAa,GAAG,OAAO,CAAC;CACrE,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,wBAAwB,GAAG;IACnC,GAAG,EAAE,MAAM,CAAC;IACZ,oBAAoB,CAAC,EAAE,oBAAoB,CAAC;CAC/C,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mongodb-js/mcp-types",
3
3
  "description": "Shared TypeScript types and interfaces for MongoDB MCP server packages",
4
- "version": "3.0.0-prerelease.4",
4
+ "version": "3.0.0-prerelease.5",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",
7
7
  "author": "MongoDB <info@mongodb.com>",