Skip to content

Commit a1384c2

Browse files
Merge pull request #1 from speakeasy-api/speakeasy-sdk-regen-1742493224
chore: 🐝 Update SDK - Generate 0.1.0
2 parents 54b881d + 726eb4c commit a1384c2

File tree

13 files changed

+93
-29
lines changed

13 files changed

+93
-29
lines changed

.devcontainer/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11

2+
<div align="center">
3+
<a href="https://codespaces.new/speakeasy-api/hubspot-typescript.git/tree/main"><img src="https://github.com/codespaces/badge.svg" /></a>
4+
</div>
5+
<br>
6+
27
> **Remember to shutdown a GitHub Codespace when it is not in use!**
38
49
# Dev Containers Quick Start

.speakeasy/gen.lock

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,12 @@ id: f81a812c-4cc0-49fc-86b0-dcfbc85954e3
33
management:
44
docChecksum: 430e7d604ea696a88d6b34a8e18c9ff8
55
docVersion: v3
6-
speakeasyVersion: 1.519.0
7-
generationVersion: 2.552.1
8-
releaseVersion: 0.0.17
9-
configChecksum: df6a1d1247f12e6cdb18b8638baa2378
6+
speakeasyVersion: 1.521.1
7+
generationVersion: 2.558.5
8+
releaseVersion: 0.1.0
9+
configChecksum: ced1f77351976ac9d8b161d9f27f05f8
10+
repoURL: https://github.com/speakeasy-api/hubspot-typescript.git
11+
installationURL: https://github.com/speakeasy-api/hubspot-typescript
1012
published: true
1113
features:
1214
typescript:
@@ -22,7 +24,7 @@ features:
2224
globalSecurityCallbacks: 0.1.0
2325
globalSecurityFlattening: 0.1.0
2426
globalServerURLs: 2.82.4
25-
mcpServer: 0.8.0
27+
mcpServer: 0.9.0
2628
nullables: 0.1.1
2729
responseFormat: 0.2.3
2830
retries: 2.83.0

.speakeasy/gen.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ generation:
1818
oAuth2ClientCredentialsEnabled: true
1919
oAuth2PasswordEnabled: true
2020
typescript:
21-
version: 0.0.17
21+
version: 0.1.0
2222
additionalDependencies:
2323
dependencies: {}
2424
devDependencies: {}

.speakeasy/workflow.lock

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
speakeasyVersion: 1.519.0
1+
speakeasyVersion: 1.521.1
22
sources:
33
CRM:
44
sourceNamespace: crm
@@ -9,19 +9,20 @@ sources:
99
- v3
1010
HubspotCRM:
1111
sourceNamespace: hubspot-crm
12-
sourceRevisionDigest: sha256:f8a7043d0b30d9a945a488dae13b8d0f570210f50a21545ba74051d928dfbbdc
12+
sourceRevisionDigest: sha256:068f049648f508cd2c1f0b3f74fdec83a2920b10763541b84a05644ba5fac7f9
1313
sourceBlobDigest: sha256:fd3bb26f0d19170b271fae7398ffb1b2dbe48799b6e7c4dee95ec5c58302f332
1414
tags:
1515
- latest
16+
- speakeasy-sdk-regen-1742493224
1617
- v3
1718
targets:
1819
hubspot:
1920
source: HubspotCRM
2021
sourceNamespace: hubspot-crm
21-
sourceRevisionDigest: sha256:f8a7043d0b30d9a945a488dae13b8d0f570210f50a21545ba74051d928dfbbdc
22+
sourceRevisionDigest: sha256:068f049648f508cd2c1f0b3f74fdec83a2920b10763541b84a05644ba5fac7f9
2223
sourceBlobDigest: sha256:fd3bb26f0d19170b271fae7398ffb1b2dbe48799b6e7c4dee95ec5c58302f332
2324
codeSamplesNamespace: hubspot-crm-typescript-code-samples
24-
codeSamplesRevisionDigest: sha256:d14133faad231e4d6bcd98830e8eb14378f8254264fef40e257dbf1db20bdf20
25+
codeSamplesRevisionDigest: sha256:d61859db7b587ca10a3a1abaff25b520db3c9e1e3f8cfde32e27cd069c6e5a2a
2526
workflow:
2627
workflowVersion: 1.0.0
2728
speakeasyVersion: latest

README.md

Lines changed: 40 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ yarn add mcp-hubspot zod
8282
This SDK is also an installable MCP server where the various SDK methods are
8383
exposed as tools that can be invoked by AI applications.
8484

85-
> Node.js v20 or greater is required to run the MCP server.
85+
> Node.js v20 or greater is required to run the MCP server from npm.
8686
8787
<details>
8888
<summary>Claude installation steps</summary>
@@ -110,17 +110,50 @@ Add the following server definition to your `claude_desktop_config.json` file:
110110
<details>
111111
<summary>Cursor installation steps</summary>
112112

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

115-
- Name: Hubspot
116-
- Type: `command`
117-
- Command:
118-
```sh
119-
npx -y --package mcp-hubspot -- mcp start --hubspot-token ...
115+
```json
116+
{
117+
"mcpServers": {
118+
"Hubspot": {
119+
"command": "npx",
120+
"args": [
121+
"-y", "--package", "mcp-hubspot",
122+
"--",
123+
"mcp", "start",
124+
"--hubspot-token", "..."
125+
]
126+
}
127+
}
128+
}
120129
```
121130

122131
</details>
123132

133+
You can also run MCP servers as a standalone binary with no additional dependencies. You must pull these binaries from available Github releases:
134+
135+
```bash
136+
curl -L -o mcp-server \
137+
https://github.com/{org}/{repo}/releases/download/{tag}/mcp-server-bun-darwin-arm64 && \
138+
chmod +x mcp-server
139+
```
140+
141+
If the repo is a private repo you must add your Github PAT to download a release `-H "Authorization: Bearer {GITHUB_PAT}"`.
142+
143+
144+
```json
145+
{
146+
"mcpServers": {
147+
"Todos": {
148+
"command": "./DOWNLOAD/PATH/mcp-server",
149+
"args": [
150+
"start"
151+
]
152+
}
153+
}
154+
}
155+
```
156+
124157
For a full list of server arguments, run:
125158

126159
```sh

RELEASES.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
2+
3+
## 2025-03-20 17:53:28
4+
### Changes
5+
Based on:
6+
- OpenAPI Doc
7+
- Speakeasy CLI 1.521.1 (2.558.5) https://github.com/speakeasy-api/speakeasy
8+
### Generated
9+
- [typescript v0.1.0] .
10+
### Releases
11+
- [NPM v0.1.0] https://www.npmjs.com/package/mcp-hubspot/v/0.1.0 - .

jsr.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
{
44
"name": "mcp-hubspot",
5-
"version": "0.0.17",
5+
"version": "0.1.0",
66
"exports": {
77
".": "./src/index.ts",
88
"./models/errors": "./src/models/errors/index.ts",

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "mcp-hubspot",
3-
"version": "0.0.17",
3+
"version": "0.1.0",
44
"author": "speakeasyapi",
55
"type": "module",
66
"bin": {
@@ -22,6 +22,10 @@
2222
}
2323
},
2424
"sideEffects": false,
25+
"repository": {
26+
"type": "git",
27+
"url": "https://github.com/speakeasy-api/hubspot-typescript.git"
28+
},
2529
"scripts": {
2630
"lint": "eslint --cache --max-warnings=0 src",
2731
"build:mcp": "bun src/mcp-server/build.mts",

src/lib/config.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
5454
export const SDK_METADATA = {
5555
language: "typescript",
5656
openapiDocVersion: "v3",
57-
sdkVersion: "0.0.17",
58-
genVersion: "2.552.1",
59-
userAgent: "speakeasy-sdk/typescript 0.0.17 2.552.1 v3 mcp-hubspot",
57+
sdkVersion: "0.1.0",
58+
genVersion: "2.558.5",
59+
userAgent: "speakeasy-sdk/typescript 0.1.0 2.558.5 v3 mcp-hubspot",
6060
} as const;

src/lib/security.ts

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
import * as components from "../models/components/index.js";
66
import { env } from "./env.js";
7+
78
type OAuth2PasswordFlow = {
89
username: string;
910
password?: string | undefined;
@@ -85,7 +86,9 @@ type SecurityInputOAuth2ClientCredentials = {
8586
value:
8687
| { clientID?: string | undefined; clientSecret?: string | undefined }
8788
| null
89+
| string
8890
| undefined;
91+
fieldName?: string;
8992
};
9093

9194
type SecurityInputOAuth2PasswordCredentials = {
@@ -94,13 +97,13 @@ type SecurityInputOAuth2PasswordCredentials = {
9497
| string
9598
| null
9699
| undefined;
97-
fieldName: string;
100+
fieldName?: string;
98101
};
99102

100103
type SecurityInputCustom = {
101104
type: "http:custom";
102105
value: any | null | undefined;
103-
fieldName: string;
106+
fieldName?: string;
104107
};
105108

106109
export type SecurityInput =
@@ -137,6 +140,9 @@ export function resolveSecurity(
137140
typeof o.value === "string" && !!o.value
138141
);
139142
} else if (o.type === "oauth2:client_credentials") {
143+
if (typeof o.value == "string") {
144+
return !!o.value;
145+
}
140146
return o.value.clientID != null || o.value.clientSecret != null;
141147
} else if (typeof o.value === "string") {
142148
return !!o.value;
@@ -225,7 +231,9 @@ function applyBearer(
225231
value = `Bearer ${value}`;
226232
}
227233

228-
state.headers[spec.fieldName] = value;
234+
if (spec.fieldName !== undefined) {
235+
state.headers[spec.fieldName] = value;
236+
}
229237
}
230238

231239
export function resolveGlobalSecurity(

src/mcp-server/mcp-server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const routes = buildRouteMap({
1919
export const app = buildApplication(routes, {
2020
name: "mcp",
2121
versionInfo: {
22-
currentVersion: "0.0.17",
22+
currentVersion: "0.1.0",
2323
},
2424
});
2525

src/mcp-server/server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export function createMCPServer(deps: {
3636
}) {
3737
const server = new McpServer({
3838
name: "Hubspot",
39-
version: "0.0.17",
39+
version: "0.1.0",
4040
});
4141

4242
const client = new HubspotCore({

0 commit comments

Comments
 (0)