Skip to content

Commit af620d5

Browse files
committed
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.540.1
1 parent 161d384 commit af620d5

25 files changed

+293
-65
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
.speakeasy/temp/
2+
.DS_Store
13
/mcp-server
24
/bin
35
/.eslintcache

.speakeasy/gen.lock

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
lockVersion: 2.0.0
22
id: 521af75f-d011-41f9-a5ff-9f8033773118
33
management:
4-
docChecksum: 80bdf0b395520d76da9a1e1e2896dae0
4+
docChecksum: c6d39eab8ec81d4b1959535a4bb31655
55
docVersion: 0.4.0
6-
speakeasyVersion: 1.514.0
7-
generationVersion: 2.546.0
8-
releaseVersion: 2.4.0-beta
9-
configChecksum: ef5d56dcfd4f4ba9e07e1a535f410421
6+
speakeasyVersion: 1.540.1
7+
generationVersion: 2.593.4
8+
releaseVersion: 2.4.0-beta.1
9+
configChecksum: 4302f4ba38521fca04724ec3f8ff9cce
1010
repoURL: https://github.com/speakeasy-api/speakeasy-code-samples-ts.git
1111
installationURL: https://github.com/speakeasy-api/speakeasy-code-samples-ts
1212
published: true
1313
features:
1414
typescript:
1515
additionalDependencies: 0.1.0
16-
core: 3.21.3
16+
core: 3.21.6
1717
deepObjectParams: 0.1.0
1818
defaultEnabledRetries: 0.1.0
1919
devContainers: 2.90.0
@@ -25,9 +25,9 @@ features:
2525
globalServerURLs: 2.82.4
2626
globals: 2.82.2
2727
groups: 2.81.2
28-
mcpServer: 0.6.0
28+
mcpServer: 0.9.2
2929
nameOverrides: 2.81.2
30-
reactQueryHooks: 0.2.2
30+
reactQueryHooks: 0.2.3
3131
responseFormat: 0.2.3
3232
retries: 2.83.0
3333
sdkHooks: 0.2.0
@@ -84,6 +84,7 @@ generatedFiles:
8484
- src/mcp-server/console-logger.ts
8585
- src/mcp-server/extensions.ts
8686
- src/mcp-server/mcp-server.ts
87+
- src/mcp-server/prompts.ts
8788
- src/mcp-server/resources.ts
8889
- src/mcp-server/scopes.ts
8990
- src/mcp-server/server.ts
@@ -130,7 +131,7 @@ examples:
130131
languages: ["python", "javascript"]
131132
responses:
132133
2XX:
133-
application/json: {"snippets": [{"path": "/sbin", "method": "<value>", "operationId": "<id>", "language": "php,", "code": "<value>"}, {"path": "/root", "method": "<value>", "operationId": "<id>", "language": "unity,", "code": "<value>"}]}
134+
application/json: {"snippets": [{"path": "/sbin", "method": "<value>", "operationId": "<id>", "language": "<value>", "code": "<value>"}, {"path": "/root", "method": "<value>", "operationId": "<id>", "language": "<value>", "code": "<value>"}]}
134135
4XX:
135136
application/json: {"message": "<value>", "status_code": 521235}
136137
default:
@@ -143,5 +144,5 @@ examples:
143144
responses:
144145
2XX:
145146
application/json: {"snippets": [{"path": "/pet/{id}", "method": "get", "operationId": "getPetById", "language": "typescript", "code": "import { Petstore } from \"petstore-sdk\";\n\nconst petstore = new Petstore({\n apiKey: \"<YOUR_API_KEY_HERE>\",\n});\n\nasync function run() {\n const result = await petstore.pet.getById({\n id: 137396,\n });\n\n // Handle the result\n console.log(result);\n}\n\nrun();"}]}
146-
examplesVersion: 1.0.0
147+
examplesVersion: 1.0.1
147148
generatedTests: {}

.speakeasy/gen.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,12 @@ generation:
1313
parameterOrderingFeb2024: false
1414
requestResponseComponentNamesFeb2024: false
1515
securityFeb2025: false
16+
sharedErrorComponentsApr2025: false
1617
auth:
1718
oAuth2ClientCredentialsEnabled: false
1819
oAuth2PasswordEnabled: false
1920
typescript:
20-
version: 2.4.0-beta
21+
version: 2.4.0-beta.1
2122
additionalDependencies:
2223
dependencies:
2324
'@emotion/css': ^11.13.5

.speakeasy/workflow.lock

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
speakeasyVersion: 1.514.0
1+
speakeasyVersion: 1.540.1
22
sources:
33
speakeasy-OAS:
44
sourceNamespace: speakeasy-oas
5-
sourceRevisionDigest: sha256:c95b7bde7a889f8d6461e405347f2dac28defaaf6a36cc19709b4ce29f4eaefb
6-
sourceBlobDigest: sha256:706c912b2e5755fdaff8d2a95ca3ce6fb1fff777a7aa49a8afcb0b909cc22892
5+
sourceRevisionDigest: sha256:1f08b666eab3bbbcaa8d4ba7f1aa9b3770f1e348fd11836f8990bff50156c1a0
6+
sourceBlobDigest: sha256:34233f17403a8b224167c40125e2030a63a4e10c4736cd62cc937a10f3c0cd7a
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1741642416
9+
- speakeasy-sdk-regen-1744416331
1010
- 0.4.0
1111
targets:
1212
code_samples_typescript_sdk:
1313
source: speakeasy-OAS
1414
sourceNamespace: speakeasy-oas
15-
sourceRevisionDigest: sha256:c95b7bde7a889f8d6461e405347f2dac28defaaf6a36cc19709b4ce29f4eaefb
16-
sourceBlobDigest: sha256:706c912b2e5755fdaff8d2a95ca3ce6fb1fff777a7aa49a8afcb0b909cc22892
15+
sourceRevisionDigest: sha256:1f08b666eab3bbbcaa8d4ba7f1aa9b3770f1e348fd11836f8990bff50156c1a0
16+
sourceBlobDigest: sha256:34233f17403a8b224167c40125e2030a63a4e10c4736cd62cc937a10f3c0cd7a
1717
codeSamplesNamespace: speakeasy-oas-typescript-code-samples
18-
codeSamplesRevisionDigest: sha256:73a780b60ccc00d5344b505208070173d62dfcb9013e97f8f123e322230d6afe
18+
codeSamplesRevisionDigest: sha256:9491f6ed10357fd1524b60618970de7f5f2e9cbbebe0e600dd6074c9fd454eca
1919
workflow:
2020
workflowVersion: 1.0.0
2121
speakeasyVersion: latest

README.md

Lines changed: 41 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ yarn add @tanstack/react-query react react-dom
103103
This SDK is also an installable MCP server where the various SDK methods are
104104
exposed as tools that can be invoked by AI applications.
105105

106-
> Node.js v20 or greater is required to run the MCP server.
106+
> Node.js v20 or greater is required to run the MCP server from npm.
107107
108108
<details>
109109
<summary>Claude installation steps</summary>
@@ -132,17 +132,51 @@ Add the following server definition to your `claude_desktop_config.json` file:
132132
<details>
133133
<summary>Cursor installation steps</summary>
134134

135-
Go to `Cursor Settings > Features > MCP Servers > Add new MCP server` and use the following settings:
135+
Create a `.cursor/mcp.json` file in your project root with the following content:
136136

137-
- Name: SpeakeasyCodeSamples
138-
- Type: `command`
139-
- Command:
140-
```sh
141-
npx -y --package @speakeasyapi/code-samples -- mcp start --api-key ... --registry-url ...
137+
```json
138+
{
139+
"mcpServers": {
140+
"SpeakeasyCodeSamples": {
141+
"command": "npx",
142+
"args": [
143+
"-y", "--package", "@speakeasyapi/code-samples",
144+
"--",
145+
"mcp", "start",
146+
"--api-key", "...",
147+
"--registry-url", "..."
148+
]
149+
}
150+
}
151+
}
142152
```
143153

144154
</details>
145155

156+
You can also run MCP servers as a standalone binary with no additional dependencies. You must pull these binaries from available Github releases:
157+
158+
```bash
159+
curl -L -o mcp-server \
160+
https://github.com/{org}/{repo}/releases/download/{tag}/mcp-server-bun-darwin-arm64 && \
161+
chmod +x mcp-server
162+
```
163+
164+
If the repo is a private repo you must add your Github PAT to download a release `-H "Authorization: Bearer {GITHUB_PAT}"`.
165+
166+
167+
```json
168+
{
169+
"mcpServers": {
170+
"Todos": {
171+
"command": "./DOWNLOAD/PATH/mcp-server",
172+
"args": [
173+
"start"
174+
]
175+
}
176+
}
177+
}
178+
```
179+
146180
For a full list of server arguments, run:
147181

148182
```sh

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,4 +132,14 @@ Based on:
132132
### Generated
133133
- [typescript v2.4.0-beta] .
134134
### Releases
135-
- [NPM v2.4.0-beta] https://www.npmjs.com/package/@speakeasyapi/code-samples/v/2.4.0-beta - .
135+
- [NPM v2.4.0-beta] https://www.npmjs.com/package/@speakeasyapi/code-samples/v/2.4.0-beta - .
136+
137+
## 2025-04-30 00:05:27
138+
### Changes
139+
Based on:
140+
- OpenAPI Doc
141+
- Speakeasy CLI 1.540.1 (2.593.4) https://github.com/speakeasy-api/speakeasy
142+
### Generated
143+
- [typescript v2.4.0-beta.1] .
144+
### Releases
145+
- [NPM v2.4.0-beta.1] https://www.npmjs.com/package/@speakeasyapi/code-samples/v/2.4.0-beta.1 - .

docs/models/components/httpmethod.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
```typescript
66
import { HttpMethod } from "@speakeasyapi/code-samples/models/components";
77

8-
let value: HttpMethod = "delete";
8+
let value: HttpMethod = "options";
99
```
1010

1111
## Values

docs/models/components/usagesnippet.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import { UsageSnippet } from "@speakeasyapi/code-samples/models/components";
77

88
let value: UsageSnippet = {
9-
path: "/usr/bin",
9+
path: "/private/tmp",
1010
method: "<value>",
1111
operationId: "<id>",
1212
language: "<value>",

docs/models/components/usagesnippets.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { UsageSnippets } from "@speakeasyapi/code-samples/models/components";
88
let value: UsageSnippets = {
99
snippets: [
1010
{
11-
path: "/root",
11+
path: "/Library",
1212
method: "<value>",
1313
operationId: "<id>",
1414
language: "<value>",

docs/models/operations/methodpaths.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
import { MethodPaths } from "@speakeasyapi/code-samples/models/operations";
77

88
let value: MethodPaths = {
9-
method: "delete",
10-
path: "/opt/sbin",
9+
method: "put",
10+
path: "/rescue",
1111
};
1212
```
1313

0 commit comments

Comments
 (0)