@typeship-ax/mcp 0.19.0 → 0.20.0
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 +3 -3
- package/README.md +1 -1
- package/api.json +7440 -6316
- package/api.md +7856 -6638
- package/dist/api-identity.d.ts.map +1 -1
- package/dist/api-identity.js +6 -1
- package/dist/core/http.d.ts +26 -14
- package/dist/core/http.d.ts.map +1 -1
- package/dist/core/http.js +90 -19
- package/dist/core/pagination.d.ts +8 -8
- package/dist/core/pagination.d.ts.map +1 -1
- package/dist/core/pagination.js +7 -16
- package/dist/errors.d.ts +4 -4
- package/dist/errors.d.ts.map +1 -1
- package/dist/errors.js +7 -7
- package/dist/index.d.ts +33 -19
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +37 -17
- package/dist/mcp-protocol.js +2 -2
- package/dist/mcp.d.ts.map +1 -1
- package/dist/mcp.js +6 -5
- package/dist/ops.d.ts +1 -1
- package/dist/ops.d.ts.map +1 -1
- package/dist/ops.js +39 -42
- package/dist/resources/api-keys.d.ts +10 -10
- package/dist/resources/api-keys.d.ts.map +1 -1
- package/dist/resources/api-keys.js +6 -6
- package/dist/resources/deliveries.d.ts +46 -0
- package/dist/resources/deliveries.d.ts.map +1 -0
- package/dist/resources/deliveries.js +70 -0
- package/dist/resources/drafts.d.ts +155 -0
- package/dist/resources/drafts.d.ts.map +1 -0
- package/dist/resources/drafts.js +230 -0
- package/dist/resources/files.d.ts +23 -0
- package/dist/resources/files.d.ts.map +1 -0
- package/dist/resources/files.js +38 -0
- package/dist/resources/generate.d.ts +14 -14
- package/dist/resources/generate.d.ts.map +1 -1
- package/dist/resources/generate.js +7 -7
- package/dist/resources/generations.d.ts +65 -21
- package/dist/resources/generations.d.ts.map +1 -1
- package/dist/resources/generations.js +67 -20
- package/dist/resources/organization.d.ts +18 -0
- package/dist/resources/organization.d.ts.map +1 -0
- package/dist/resources/{account.js → organization.js} +10 -10
- package/dist/resources/projects.d.ts +36 -126
- package/dist/resources/projects.d.ts.map +1 -1
- package/dist/resources/projects.js +21 -171
- package/dist/resources/publications.d.ts +46 -0
- package/dist/resources/publications.d.ts.map +1 -0
- package/dist/resources/publications.js +70 -0
- package/dist/resources/releases.d.ts +66 -0
- package/dist/resources/releases.d.ts.map +1 -0
- package/dist/resources/releases.js +101 -0
- package/dist/resources/spec-revisions.d.ts +85 -0
- package/dist/resources/spec-revisions.d.ts.map +1 -0
- package/dist/resources/spec-revisions.js +116 -0
- package/dist/resources/specs.d.ts +72 -0
- package/dist/resources/specs.d.ts.map +1 -0
- package/dist/resources/specs.js +107 -0
- package/dist/resources/targets.d.ts +42 -262
- package/dist/resources/targets.d.ts.map +1 -1
- package/dist/resources/targets.js +28 -407
- package/dist/schemas.d.ts.map +1 -1
- package/dist/schemas.js +143 -149
- package/dist/types.d.ts +1281 -1611
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +44 -49
- package/package.json +1 -1
- package/server.json +2 -2
- package/src/api-identity.ts +6 -2
- package/src/core/http.ts +89 -24
- package/src/core/pagination.ts +13 -23
- package/src/errors.ts +7 -7
- package/src/index.ts +41 -23
- package/src/mcp-protocol.ts +2 -2
- package/src/mcp.ts +7 -6
- package/src/ops.ts +40 -43
- package/src/resources/api-keys.ts +13 -16
- package/src/resources/deliveries.ts +139 -0
- package/src/resources/drafts.ts +422 -0
- package/src/resources/files.ts +68 -0
- package/src/resources/generate.ts +16 -19
- package/src/resources/generations.ts +146 -35
- package/src/resources/{account.ts → organization.ts} +14 -14
- package/src/resources/projects.ts +42 -337
- package/src/resources/publications.ts +139 -0
- package/src/resources/releases.ts +199 -0
- package/src/resources/spec-revisions.ts +237 -0
- package/src/resources/specs.ts +200 -0
- package/src/resources/targets.ts +57 -760
- package/src/schemas.ts +143 -149
- package/src/types.ts +1357 -1692
- package/dist/resources/account.d.ts +0 -18
- package/dist/resources/account.d.ts.map +0 -1
- package/dist/resources/definition-revisions.d.ts +0 -75
- package/dist/resources/definition-revisions.d.ts.map +0 -1
- package/dist/resources/definition-revisions.js +0 -142
- package/dist/resources/definitions.d.ts +0 -50
- package/dist/resources/definitions.d.ts.map +0 -1
- package/dist/resources/definitions.js +0 -73
- package/src/resources/definition-revisions.ts +0 -265
- package/src/resources/definitions.ts +0 -146
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAGL,KAAK,SAAS,EAEd,KAAK,UAAU,EACf,KAAK,cAAc,EAEpB,MAAM,gBAAgB,CAAC;AAGxB,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAGL,KAAK,SAAS,EAEd,KAAK,UAAU,EACf,KAAK,cAAc,EAEpB,MAAM,gBAAgB,CAAC;AAGxB,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AACtE,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AACnE,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,EAAE,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A+B,CAAC;AAC9C,cAAc,wBAAwB,CAAC;AACvC,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,sBAAsB,CAAC;AACrC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,yBAAyB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -4,19 +4,24 @@ import { HttpCore, formatDebugEvent, bearerAuth, } from "./core/http.js";
|
|
|
4
4
|
import { DEFS, SCHEMAS } from "./schemas.js";
|
|
5
5
|
import { GenerateResource } from "./resources/generate.js";
|
|
6
6
|
import { ProjectsResource } from "./resources/projects.js";
|
|
7
|
-
import {
|
|
7
|
+
import { SpecsResource } from "./resources/specs.js";
|
|
8
|
+
import { SpecRevisionsResource } from "./resources/spec-revisions.js";
|
|
8
9
|
import { TargetsResource } from "./resources/targets.js";
|
|
10
|
+
import { DraftsResource } from "./resources/drafts.js";
|
|
11
|
+
import { ReleasesResource } from "./resources/releases.js";
|
|
12
|
+
import { DeliveriesResource } from "./resources/deliveries.js";
|
|
13
|
+
import { PublicationsResource } from "./resources/publications.js";
|
|
9
14
|
import { GenerationsResource } from "./resources/generations.js";
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
15
|
+
import { FilesResource } from "./resources/files.js";
|
|
16
|
+
import { OrganizationResource } from "./resources/organization.js";
|
|
12
17
|
import { ApiKeysResource } from "./resources/api-keys.js";
|
|
13
18
|
/** This package's version, also sent as the `User-Agent`. */
|
|
14
|
-
export const VERSION = "0.
|
|
15
|
-
const USER_AGENT = "@typeship-ax/mcp/0.
|
|
19
|
+
export const VERSION = "0.20.0";
|
|
20
|
+
const USER_AGENT = "@typeship-ax/mcp/0.20.0";
|
|
16
21
|
/**
|
|
17
|
-
* typeship — v0.
|
|
22
|
+
* typeship — v0.20.0
|
|
18
23
|
*
|
|
19
|
-
* Resolve an OpenAPI or GraphQL
|
|
24
|
+
* Resolve an OpenAPI or GraphQL Spec, diagnose it, and keep every
|
|
20
25
|
* selected CLI, MCP, and SDK Target current.
|
|
21
26
|
*
|
|
22
27
|
* Every operation but one requires a bearer credential: an organization
|
|
@@ -28,16 +33,21 @@ const USER_AGENT = "@typeship-ax/mcp/0.19.0";
|
|
|
28
33
|
*
|
|
29
34
|
* Examples use Parcel, a fictional delivery service. Replace its domains,
|
|
30
35
|
* repository names, and resource identifiers with your own. The hosted
|
|
31
|
-
* petstore
|
|
36
|
+
* petstore Spec is a runnable sample.
|
|
32
37
|
*/
|
|
33
38
|
export class TypeshipClient {
|
|
34
39
|
generate;
|
|
35
40
|
projects;
|
|
36
|
-
|
|
41
|
+
specs;
|
|
42
|
+
specRevisions;
|
|
37
43
|
targets;
|
|
44
|
+
drafts;
|
|
45
|
+
releases;
|
|
46
|
+
deliveries;
|
|
47
|
+
publications;
|
|
38
48
|
generations;
|
|
39
|
-
|
|
40
|
-
|
|
49
|
+
files;
|
|
50
|
+
organization;
|
|
41
51
|
apiKeys;
|
|
42
52
|
constructor(options = {}) {
|
|
43
53
|
// Identifies this package to the API (ignored by browsers, which
|
|
@@ -94,11 +104,16 @@ export class TypeshipClient {
|
|
|
94
104
|
});
|
|
95
105
|
this.generate = new GenerateResource(core);
|
|
96
106
|
this.projects = new ProjectsResource(core);
|
|
97
|
-
this.
|
|
107
|
+
this.specs = new SpecsResource(core);
|
|
108
|
+
this.specRevisions = new SpecRevisionsResource(core);
|
|
98
109
|
this.targets = new TargetsResource(core);
|
|
110
|
+
this.drafts = new DraftsResource(core);
|
|
111
|
+
this.releases = new ReleasesResource(core);
|
|
112
|
+
this.deliveries = new DeliveriesResource(core);
|
|
113
|
+
this.publications = new PublicationsResource(core);
|
|
99
114
|
this.generations = new GenerationsResource(core);
|
|
100
|
-
this.
|
|
101
|
-
this.
|
|
115
|
+
this.files = new FilesResource(core);
|
|
116
|
+
this.organization = new OrganizationResource(core);
|
|
102
117
|
this.apiKeys = new ApiKeysResource(core);
|
|
103
118
|
}
|
|
104
119
|
}
|
|
@@ -108,9 +123,14 @@ export { formatDebugEvent, } from "./core/http.js";
|
|
|
108
123
|
export { Page, PagePromise } from "./core/pagination.js";
|
|
109
124
|
export * from "./resources/generate.js";
|
|
110
125
|
export * from "./resources/projects.js";
|
|
111
|
-
export * from "./resources/
|
|
126
|
+
export * from "./resources/specs.js";
|
|
127
|
+
export * from "./resources/spec-revisions.js";
|
|
112
128
|
export * from "./resources/targets.js";
|
|
129
|
+
export * from "./resources/drafts.js";
|
|
130
|
+
export * from "./resources/releases.js";
|
|
131
|
+
export * from "./resources/deliveries.js";
|
|
132
|
+
export * from "./resources/publications.js";
|
|
113
133
|
export * from "./resources/generations.js";
|
|
114
|
-
export * from "./resources/
|
|
115
|
-
export * from "./resources/
|
|
134
|
+
export * from "./resources/files.js";
|
|
135
|
+
export * from "./resources/organization.js";
|
|
116
136
|
export * from "./resources/api-keys.js";
|
package/dist/mcp-protocol.js
CHANGED
|
@@ -1392,8 +1392,8 @@ function omittedPlanLimit(ops, requested) {
|
|
|
1392
1392
|
error: "PlanLimitError",
|
|
1393
1393
|
code: "PLAN_LIMIT",
|
|
1394
1394
|
message: requested
|
|
1395
|
-
? "The operation " + requested + " exists in the
|
|
1396
|
-
: "Matching operations exist in the
|
|
1395
|
+
? "The operation " + requested + " exists in the Spec but was omitted from this generated package by its plan limit."
|
|
1396
|
+
: "Matching operations exist in the Spec but were omitted from this generated package by its plan limit.",
|
|
1397
1397
|
omitted_operations: ops.map((op) => ({ tool: op.tool, method: op.httpMethod, path: op.path })),
|
|
1398
1398
|
next_steps: ["Upgrade at https://typeship.dev/pricing and regenerate the package without the operation cap.", "Do not invent or retry an omitted operation against this generated package."],
|
|
1399
1399
|
};
|
package/dist/mcp.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mcp.d.ts","sourceRoot":"","sources":["../src/mcp.ts"],"names":[],"mappings":";AAuBA,OAAO,EAAoC,KAAK,aAAa,EAAmB,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"mcp.d.ts","sourceRoot":"","sources":["../src/mcp.ts"],"names":[],"mappings":";AAuBA,OAAO,EAAoC,KAAK,aAAa,EAAmB,MAAM,YAAY,CAAC;AAenG,OAAO,EAA8C,KAAK,6BAA6B,EAAE,KAAK,kCAAkC,EAAE,KAAK,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACpL,YAAY,EAAE,6BAA6B,EAAE,kCAAkC,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAC9H,OAAO,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AA6V3D,MAAM,WAAW,cAAc;IAC7B,aAAa,CAAC,EAAE,6BAA6B,CAAC;IAC9C;kFAC8E;IAC9E,aAAa,CAAC,EAAE,kCAAkC,CAAC;IACnD;;;;iFAI6E;IAC7E,cAAc,CAAC,SAAS,EAAE,YAAY,GAAG,aAAa,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC;CACjF;AAED,+EAA+E;AAC/E,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,cAAc,GAAG,CAAC,OAAO,EAAE,OAAO,KAAK,OAAO,CAAC,QAAQ,CAAC,CAMjG;AAED;+EAC+E;AAC/E,wBAAsB,UAAU,CAAC,QAAQ,EAAE,OAAO,GAAG,OAAO,CAAC,QAAQ,CAAC,CAErE"}
|
package/dist/mcp.js
CHANGED
|
@@ -21,6 +21,7 @@ import { homedir, tmpdir } from "node:os";
|
|
|
21
21
|
import { basename, join } from "node:path";
|
|
22
22
|
import { fileURLToPath } from "node:url";
|
|
23
23
|
import { TypeshipClient, formatDebugEvent } from "./index.js";
|
|
24
|
+
import { asApiResult } from "./core/http.js";
|
|
24
25
|
import { GLOBALS, OMITTED_OPS, OPS, buildArgs } from "./ops.js";
|
|
25
26
|
import { DEFAULT_MAX_RESULT_CHARS, SUPPORTED_PROTOCOL_VERSIONS, McpAccountLinkRequired, argumentsError, asJsonRpc, binaryOutcome, callSharedTool, checkRequestHeaders, createStdioRpcHandler, dataOutcome, errorOutcome, handleRpc, isRpcOutcome, pageOutcome, parseIncludeList, prepareCall, resolveReferences, serverInstructions, takeCancelled, textError, toolDefinitions, visibleOps, } from "./mcp-protocol.js";
|
|
26
27
|
import { fetchDocsText } from "./docs.js";
|
|
@@ -33,7 +34,7 @@ export { McpAccountLinkRequired } from "./mcp-protocol.js";
|
|
|
33
34
|
const BIN = "typeship";
|
|
34
35
|
const PKG_NAME = "@typeship-ax/mcp";
|
|
35
36
|
const SERVER_NAME = "typeship-mcp";
|
|
36
|
-
const SERVER_VERSION = "0.
|
|
37
|
+
const SERVER_VERSION = "0.20.0";
|
|
37
38
|
/** The MCP client's announced name (clientInfo in request _meta), for the User-Agent. */
|
|
38
39
|
let MCP_CLIENT_NAME = null;
|
|
39
40
|
function noteClientInfo(message) {
|
|
@@ -56,7 +57,7 @@ const TOOL_MODE = "meta";
|
|
|
56
57
|
/** Project-supplied guidance appended to the server instructions. */
|
|
57
58
|
const CUSTOM_INSTRUCTIONS = null;
|
|
58
59
|
/** The tool that returns the caller (the CLI's whoami target), named in the instructions. */
|
|
59
|
-
const IDENTITY_TOOL =
|
|
60
|
+
const IDENTITY_TOOL = null;
|
|
60
61
|
/** Surface switches: reads only, and/or a subset of resources or tools.
|
|
61
62
|
* Flags win over the environment. */
|
|
62
63
|
const ARGV = process.argv.slice(2);
|
|
@@ -212,15 +213,15 @@ async function callOperationRaw(op, rawArgs, remote, client) {
|
|
|
212
213
|
const shape = { fields, maxChars, pagination: op.pagination, args };
|
|
213
214
|
try {
|
|
214
215
|
const target = client[op.resource];
|
|
215
|
-
let result = await target[op.method](...callArgs);
|
|
216
|
+
let result = await asApiResult(target[op.method](...callArgs));
|
|
216
217
|
if (!result.ok)
|
|
217
218
|
return errorOutcome(result.error, errorContext);
|
|
218
|
-
if (op.httpMethod === "POST" && op.path === "/projects/{project_id}/
|
|
219
|
+
if (op.httpMethod === "POST" && op.path === "/projects/{project_id}/generate") {
|
|
219
220
|
const batch = result.data;
|
|
220
221
|
const generations = client.generations;
|
|
221
222
|
const completed = [];
|
|
222
223
|
for (const generation of batch.data) {
|
|
223
|
-
const waited = await generations.wait(generation.id);
|
|
224
|
+
const waited = await asApiResult(generations.wait(generation.id));
|
|
224
225
|
if (!waited.ok)
|
|
225
226
|
return errorOutcome(waited.error, errorContext);
|
|
226
227
|
completed.push(waited.data);
|
package/dist/ops.d.ts
CHANGED
|
@@ -113,7 +113,7 @@ export interface OpSpec {
|
|
|
113
113
|
fileBundleProperty?: string;
|
|
114
114
|
}
|
|
115
115
|
export declare const OPS: OpSpec[];
|
|
116
|
-
/** Operations present in the API
|
|
116
|
+
/** Operations present in the API Spec but omitted by this
|
|
117
117
|
* generation's operation cap. Kept deliberately small: enough for honest
|
|
118
118
|
* discovery and PLAN_LIMIT errors, never enough to call an absent method. */
|
|
119
119
|
export type OmittedOpSpec = Pick<OpSpec, "resource" | "method" | "command" | "commandAlias" | "tool" | "httpMethod" | "path" | "summary" | "description" | "toolDescription" | "paginated" | "select" | "safety" | "auth" | "security" | "params" | "inputSchema">;
|
package/dist/ops.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ops.d.ts","sourceRoot":"","sources":["../src/ops.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,SAAS;IACxB,4DAA4D;IAC5D,IAAI,EAAE,MAAM,CAAC;IACb,2CAA2C;IAC3C,IAAI,EAAE,MAAM,CAAC;IACb,+CAA+C;IAC/C,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,CAAC;IAC3C;;;uDAGmD;IACnD,IAAI,EAAE,QAAQ,GAAG,QAAQ,GAAG,SAAS,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,GAAG,MAAM,CAAC;IAC7E,QAAQ,EAAE,OAAO,CAAC;IAClB,8DAA8D;IAC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