@typeship-ax/mcp 0.9.1 → 0.19.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.
Files changed (68) hide show
  1. package/AGENTS.md +10 -4
  2. package/README.md +16 -5
  3. package/api.json +6055 -645
  4. package/api.md +5225 -567
  5. package/dist/core/http.d.ts +3 -2
  6. package/dist/core/http.d.ts.map +1 -1
  7. package/dist/core/http.js +18 -6
  8. package/dist/errors.d.ts +17 -10
  9. package/dist/errors.d.ts.map +1 -1
  10. package/dist/errors.js +24 -15
  11. package/dist/index.d.ts +7 -3
  12. package/dist/index.d.ts.map +1 -1
  13. package/dist/index.js +9 -5
  14. package/dist/mcp-protocol.d.ts +10 -6
  15. package/dist/mcp-protocol.d.ts.map +1 -1
  16. package/dist/mcp-protocol.js +108 -37
  17. package/dist/mcp.d.ts.map +1 -1
  18. package/dist/mcp.js +36 -17
  19. package/dist/ops.d.ts +4 -0
  20. package/dist/ops.d.ts.map +1 -1
  21. package/dist/ops.js +45 -31
  22. package/dist/resources/account.d.ts +4 -4
  23. package/dist/resources/account.d.ts.map +1 -1
  24. package/dist/resources/account.js +10 -5
  25. package/dist/resources/api-keys.d.ts +40 -14
  26. package/dist/resources/api-keys.d.ts.map +1 -1
  27. package/dist/resources/api-keys.js +45 -13
  28. package/dist/resources/definition-revisions.d.ts +35 -18
  29. package/dist/resources/definition-revisions.d.ts.map +1 -1
  30. package/dist/resources/definition-revisions.js +43 -15
  31. package/dist/resources/definitions.d.ts +21 -6
  32. package/dist/resources/definitions.d.ts.map +1 -1
  33. package/dist/resources/definitions.js +16 -3
  34. package/dist/resources/generate.d.ts +44 -15
  35. package/dist/resources/generate.d.ts.map +1 -1
  36. package/dist/resources/generate.js +55 -13
  37. package/dist/resources/generations.d.ts +14 -6
  38. package/dist/resources/generations.d.ts.map +1 -1
  39. package/dist/resources/generations.js +26 -5
  40. package/dist/resources/projects.d.ts +106 -53
  41. package/dist/resources/projects.d.ts.map +1 -1
  42. package/dist/resources/projects.js +78 -31
  43. package/dist/resources/targets.d.ts +285 -22
  44. package/dist/resources/targets.d.ts.map +1 -1
  45. package/dist/resources/targets.js +408 -10
  46. package/dist/schemas.d.ts.map +1 -1
  47. package/dist/schemas.js +138 -73
  48. package/dist/types.d.ts +2162 -134
  49. package/dist/types.d.ts.map +1 -1
  50. package/dist/types.js +99 -2
  51. package/package.json +3 -3
  52. package/server.json +3 -3
  53. package/src/core/http.ts +17 -6
  54. package/src/errors.ts +25 -15
  55. package/src/index.ts +9 -5
  56. package/src/mcp-protocol.ts +93 -36
  57. package/src/mcp.ts +32 -15
  58. package/src/ops.ts +49 -31
  59. package/src/resources/account.ts +11 -4
  60. package/src/resources/api-keys.ts +84 -13
  61. package/src/resources/definition-revisions.ts +74 -16
  62. package/src/resources/definitions.ts +28 -4
  63. package/src/resources/generate.ts +78 -13
  64. package/src/resources/generations.ts +31 -4
  65. package/src/resources/projects.ts +141 -39
  66. package/src/resources/targets.ts +756 -13
  67. package/src/schemas.ts +138 -73
  68. package/src/types.ts +2372 -189
package/AGENTS.md CHANGED
@@ -1,9 +1,9 @@
1
1
  # typeship — agent context
2
2
 
3
- This package contains the generated MCP server for **typeship** (API v1.0.0, package v0.9.1).
3
+ This package contains the generated MCP server for **typeship** (API v1.0.0, package v0.19.0).
4
4
 
5
5
  Resolve an OpenAPI or GraphQL Definition, diagnose it, and keep every
6
- selected SDK, CLI, and MCP Target current.
6
+ selected CLI, MCP, and SDK Target current.
7
7
 
8
8
  Every operation but one requires a bearer credential: an organization
9
9
  API key from the console, or an OAuth access token carrying the operation's
@@ -12,9 +12,14 @@ consent. OAuth grants cannot switch organizations after consent. A browser
12
12
  session is not a credential for this API. The exception is POST /generate,
13
13
  which works anonymously with the free plan's limits.
14
14
 
15
+ Examples use Parcel, a fictional delivery service. Replace its domains,
16
+ repository names, and resource identifiers with your own. The hosted
17
+ petstore Definition is a runnable sample.
18
+
15
19
  ## Ground rules
16
- - Typeship owns the files it generates. Change the API definition, generation settings, or definition patches, then regenerate those files. Repository delivery preserves files outside its generated-file ownership manifest; preserving a file does not add it to the package's exports, build, or tests.
17
- - Zero runtime dependencies; the program runs on Node.js 18+ and platform `fetch`.
20
+ - Maintaining this package: when its repository receives reviewed regeneration pull requests, committed customizations are preserved and edits that overlap a generated change stop for review. Regenerating into a directory replaces its files.
21
+ - A custom file ships only when the package manifest, exports, build, and tests include it. Add a package check for every custom build or test step.
22
+ - Zero runtime dependencies; the program runs on Node.js 20+ and platform `fetch`.
18
23
  - `api.md` is the tool and schema reference; `api.json` is the machine-readable operation, schema, safety, and example contract. Read them before guessing.
19
24
  - Start with the local build or installation instructions in `README.md`. Generation does not publish a registry package.
20
25
 
@@ -22,6 +27,7 @@ which works anonymously with the free plan's limits.
22
27
  - Bearer token: set the `TYPESHIP_TOKEN` environment variable.
23
28
 
24
29
  ## MCP server
30
+ - Use the README's MCP connection instructions. MCP `2025-11-25` and `2026-07-28` are selected automatically; no client protocol flags are required.
25
31
  - Build the package and configure your MCP client to run `node` with the absolute path to `dist/mcp.js`. After publishing, you can use `npx -y --package @typeship-ax/mcp typeship-mcp`. Set the package's auth environment variables in that client; `--read-only` prevents write tools.
26
32
  - This package exposes the compact `search_docs`, `read_docs`, and `execute` surface. Find an operation, read its complete contract, then call `execute` with its name and `arguments`; destructive operations return `CONFIRMATION_REQUIRED` until repeated with `confirm: true`. Operation names are not directly callable tools in this mode.
27
33
  - Tool arguments are checked against the schema before any request (unknown or mistyped arguments are one `isError` result with per-argument issues); pass `fields` (dotted paths) to keep only the result keys you need; errors carry `code` and `next_steps`.
package/README.md CHANGED
@@ -2,9 +2,9 @@
2
2
 
3
3
  MCP server for typeship. [API reference](./api.md)
4
4
 
5
- Generated from the OpenAPI spec by [typeship](https://typeship.dev). Change the spec or generation settings, then regenerate; generated files are not hand-edited.
5
+ Generated from the OpenAPI spec by [typeship](https://typeship.dev).
6
6
 
7
- - **Zero runtime dependencies** — built on the platform `fetch` in Node 18+
7
+ - **Zero runtime dependencies** — built on the platform `fetch` in Node 20+
8
8
  - **Agent-ready MCP** — schema-derived tools, argument validation, read-only mode, and bounded results
9
9
 
10
10
  ## Build from source
@@ -16,7 +16,7 @@ npm install
16
16
  npm run build
17
17
  ```
18
18
 
19
- Requires Node.js 18+. The package is ESM.
19
+ Requires Node.js 20+. The package is ESM.
20
20
 
21
21
  To run the local MCP server, configure your MCP client with `node` and the absolute path to `dist/mcp.js`, as shown below. The server communicates over stdio.
22
22
 
@@ -25,16 +25,20 @@ To run the local MCP server, configure your MCP client with `node` and the absol
25
25
  Generation does not publish a package. Before using the registry command below, confirm `name` and `version` in `package.json`, publish under a name you control, and verify that release is available on npm.
26
26
 
27
27
  ```sh
28
- npm install --global @typeship-ax/mcp@0.9.1
28
+ npm install --global @typeship-ax/mcp@0.19.0
29
29
  ```
30
30
 
31
+ ## MCP client requirements
32
+
33
+ Connect with your client's default settings. This server supports MCP `2025-11-25` and `2026-07-28` automatically; no protocol environment variables are required. After registering it, run `claude mcp list` to verify a Claude Code connection.
34
+
31
35
  ## Connect after publishing
32
36
 
33
37
  The npm connections below require `@typeship-ax/mcp` to be published under your package identity. To use downloaded source before publishing, use the local configuration in the next section. Hosted connections require a deployed server.
34
38
 
35
39
  Authentication: provide `TYPESHIP_TOKEN` through the MCP client's environment or secret settings. Keep credential values out of URLs and command arguments.
36
40
 
37
- > **Cursor:** Cursor 3.2 is not supported: it opens with the legacy initialize handshake, while this server speaks MCP 2026-07-28.
41
+ For Cursor, merge a local or remote server entry from this README into `mcpServers` in `.cursor/mcp.json`, then enable the server in Cursor’s MCP settings.
38
42
 
39
43
  ### Local
40
44
 
@@ -82,6 +86,13 @@ A zero-dependency stdio server exposing a compact discovery surface: `search_doc
82
86
 
83
87
  Replace the path with the absolute path to this package's built `dist/mcp.js`.
84
88
 
89
+ For Claude Code, you can register the local build from the shell configured above:
90
+
91
+ ```sh
92
+ claude mcp add --transport stdio typeship -- node /absolute/path/to/package/dist/mcp.js
93
+ claude mcp list
94
+ ```
95
+
85
96
  Replace the credential placeholder using the MCP client's secret storage when it has one. The local server reads `TYPESHIP_TOKEN` from its environment; credentials never belong in command arguments. If you also generated the CLI, its `typeship login` command stores credentials the local MCP server can reuse.
86
97
 
87
98
  Tool input schemas are derived from the OpenAPI spec, so agents see real parameter types and required fields. Arguments are checked before anything reaches the API (unknown or mistyped ones come back as one `isError` result, nothing is dropped), every tool takes `fields` to keep only the result keys it needs, and errors carry a stable `code` and `next_steps`.