Skip to content

Commit 0abe577

Browse files
stainless-app[bot]jsanford8mmcc
authored
release: 12.0.1 (#590)
* chore: mention unit type in timeout docs * chore: update readme to remove manually running * fix: set name of MCP server to just mux * fix(client): don't send `Content-Type` for bodyless methods * don't do content-type on get requests (#591) * update readme to include latest tag (#592) * release: 12.0.1 --------- Co-authored-by: stainless-app[bot] <142633134+stainless-app[bot]@users.noreply.github.com> Co-authored-by: Justin Sanford <[email protected]> Co-authored-by: Matthew McClure <[email protected]>
1 parent 48ea1b5 commit 0abe577

File tree

9 files changed

+30
-22
lines changed

9 files changed

+30
-22
lines changed

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "12.0.0"
2+
".": "12.0.1"
33
}

CHANGELOG.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,20 @@
11
# Changelog
22

3+
## 12.0.1 (2025-07-03)
4+
5+
Full Changelog: [v12.0.0...v12.0.1](https://github.com/muxinc/mux-node-sdk/compare/v12.0.0...v12.0.1)
6+
7+
### Bug Fixes
8+
9+
* **client:** don't send `Content-Type` for bodyless methods ([b12e006](https://github.com/muxinc/mux-node-sdk/commit/b12e00652be1cbfd89c8568166a788d410ce5e70))
10+
* set name of MCP server to just mux ([8219d6b](https://github.com/muxinc/mux-node-sdk/commit/8219d6ba84c263b8dac9e1ae5c8b5c7dd96d17f3))
11+
12+
13+
### Chores
14+
15+
* mention unit type in timeout docs ([f715c2a](https://github.com/muxinc/mux-node-sdk/commit/f715c2a120f8b1e44aea47212ec32fdee05cc33f))
16+
* update readme to remove manually running ([fb006cc](https://github.com/muxinc/mux-node-sdk/commit/fb006cc5c93c6e29f9b269c31c824a9783b45f47))
17+
318
## 12.0.0 (2025-07-02)
419

520
Full Changelog: [v11.1.0...v12.0.0](https://github.com/muxinc/mux-node-sdk/compare/v11.1.0...v12.0.0)

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@mux/mux-node",
3-
"version": "12.0.0",
3+
"version": "12.0.1",
44
"description": "The official TypeScript library for the Mux API",
55
"author": "Mux <[email protected]>",
66
"types": "dist/index.d.ts",

packages/mcp-server/README.md

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,6 @@
22

33
## Installation
44

5-
### Direct invocation
6-
7-
You can run the MCP Server directly via `npx`:
8-
9-
```sh
10-
export MUX_TOKEN_ID="my token id"
11-
export MUX_TOKEN_SECRET="my secret"
12-
export MUX_WEBHOOK_SECRET="My Webhook Secret"
13-
export MUX_SIGNING_KEY="My Jwt Signing Key"
14-
export MUX_PRIVATE_KEY="My Jwt Private Key"
15-
npx -y @mux/mcp@latest
16-
```
17-
185
### Via MCP Client
196

207
There is a partial list of existing clients at [modelcontextprotocol.io](https://modelcontextprotocol.io/clients). If you already
@@ -25,9 +12,9 @@ For clients with a configuration JSON, it might look something like this:
2512
```json
2613
{
2714
"mcpServers": {
28-
"mux_mux_node_api": {
15+
"mux": {
2916
"command": "npx",
30-
"args": ["-y", "@mux/mcp", "--client=claude", "--tools=dynamic"],
17+
"args": ["-y", "@mux/mcp@latest", "--client=claude", "--tools=dynamic"],
3118
"env": {
3219
"MUX_TOKEN_ID": "my token id",
3320
"MUX_TOKEN_SECRET": "my secret",

packages/mcp-server/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@mux/mcp",
3-
"version": "12.0.0",
3+
"version": "12.0.1",
44
"description": "The official MCP Server for the Mux API",
55
"author": "Mux <[email protected]>",
66
"types": "dist/index.d.ts",

packages/mcp-server/src/server.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ export { endpoints } from './tools';
2525
// Create server instance
2626
export const server = new McpServer(
2727
{
28-
name: 'mux_mux_node_api',
29-
version: '12.0.0',
28+
name: 'mux',
29+
version: '12.0.1',
3030
},
3131
{
3232
capabilities: {

src/core.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ export abstract class APIClient {
217217
protected defaultHeaders(opts: FinalRequestOptions): Headers {
218218
return {
219219
Accept: 'application/json',
220-
'Content-Type': 'application/json',
220+
...(['head', 'get'].includes(opts.method) ? {} : { 'Content-Type': 'application/json' }),
221221
'User-Agent': this.getUserAgent(),
222222
...getPlatformHeaders(),
223223
...this.authHeaders(opts),
@@ -356,6 +356,10 @@ export abstract class APIClient {
356356
applyHeadersMut(reqHeaders, defaultHeaders);
357357
applyHeadersMut(reqHeaders, headers);
358358

359+
if (options.method === 'get') {
360+
delete reqHeaders['content-type'];
361+
}
362+
359363
// let builtin fetch set the Content-Type for multipart bodies
360364
if (isMultipartBody(options.body) && shimsKind !== 'node') {
361365
delete reqHeaders['content-type'];

src/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ export interface ClientOptions {
5757
*
5858
* Note that request timeouts are retried by default, so in a worst-case scenario you may wait
5959
* much longer than this timeout before the promise succeeds or fails.
60+
*
61+
* @unit milliseconds
6062
*/
6163
timeout?: number | undefined;
6264

src/version.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export const VERSION = '12.0.0'; // x-release-please-version
1+
export const VERSION = '12.0.1'; // x-release-please-version

0 commit comments

Comments
 (0)