@postman/sdk-config 0.17.0 → 0.19.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@postman/sdk-config",
3
- "version": "0.17.0",
3
+ "version": "0.19.1",
4
4
  "description": "Shared SDK configuration contracts and transformations for Postman SDK generation",
5
5
  "license": "UNLICENSED",
6
6
  "sideEffects": false,
@@ -65,7 +65,7 @@
65
65
  "test:watch": "vitest",
66
66
  "typecheck": "tsc --noEmit",
67
67
  "check": "npm run format:check && npm run lint && npm run typecheck && npm test && npm run build && npm run test:exports",
68
- "prepublishOnly": "npm run check"
68
+ "prepack": "npm run build"
69
69
  },
70
70
  "dependencies": {
71
71
  "semver": "^7.7.4",
@@ -241,6 +241,28 @@ target must have an effective output either from that baseline or from its own `
241
241
  migration writes output directly on each target because repositories and publication registries are
242
242
  properties of the generated language artifact.
243
243
 
244
+ ## Hosted MCP servers and the MCP base URL
245
+
246
+ A `language: mcp` target's own `output` block accepts `delivery: hosted` with a `slug`, which deploys
247
+ the generated MCP server to Fern-hosted infrastructure. It is the equivalent of `output.location:
248
+ fern-hosted` in `generators.yml`. It exists only on the `mcp` target; root `output` and other
249
+ languages reject it. The generation service still builds a download for a hosted target; the CLI
250
+ makes the deployment from that build, so `hosted` is never part of the request sent to the service.
251
+ The slug may be an environment expression that the CLI resolves.
252
+
253
+ ```yaml
254
+ targets:
255
+ - language: mcp
256
+ output:
257
+ delivery: hosted
258
+ slug: petstore
259
+ ```
260
+
261
+ Fern migration maps `output.location: fern-hosted` and its `slug` to this output. An MCP generator's
262
+ `baseUrl`, the base URL of the API its tools call, moves to `api.baseUrl`, which is shared by every
263
+ target, so it is migrated only when MCP is the only language in the generator group. Otherwise it
264
+ is reported in `unsupportedFields`.
265
+
244
266
  ## CLI distribution and npm publication
245
267
 
246
268
  A `language: cli` target's own `output` block accepts `distribution`, which publishes the generated