Skip to content

Commit 983f225

Browse files
committed
chore: v2.12.0
1 parent b361515 commit 983f225

14 files changed

Lines changed: 86 additions & 83 deletions

File tree

dist/package.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/src/index.js

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

dist/src/telemetry/client.js

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

dist/src/telemetry/session.js

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

manifest-code.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"manifest_version": "0.2",
3-
"version": "2.11.2",
3+
"version": "2.12.0",
44
"name": "postman-mcp-server-code",
55
"display_name": "Postman MCP Server (Code)",
66
"description": "Search for APIs and generate client code from Postman collections.",

manifest-full.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"manifest_version": "0.2",
3-
"version": "2.11.2",
3+
"version": "2.12.0",
44
"name": "postman-mcp-server-full",
55
"display_name": "Postman MCP Server (Full)",
66
"description": "Connect your AI to your APIs on Postman.",

manifest-minimal.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"manifest_version": "0.2",
3-
"version": "2.11.2",
3+
"version": "2.12.0",
44
"name": "postman-mcp-server-minimal",
55
"display_name": "Postman MCP Server (Minimal)",
66
"description": "Connect your AI to your APIs on Postman.",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@postman/postman-mcp-server",
3-
"version": "2.11.2",
3+
"version": "2.12.0",
44
"description": "Postman MCP Server — connect AI agents (Claude Code, Cursor, VS Code Copilot, Gemini CLI) to your Postman collections, specifications, and environments via Model Context Protocol (MCP)",
55
"mcpName": "com.postman/postman-mcp-server",
66
"main": "dist/src/index.js",

server.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@
66
"url": "https://github.com/postmanlabs/postman-mcp-server",
77
"source": "github"
88
},
9-
"version": "2.11.2",
9+
"version": "2.12.0",
1010
"packages": [
1111
{
1212
"registryType": "npm",
1313
"identifier": "@postman/postman-mcp-server",
14-
"version": "2.11.2",
14+
"version": "2.12.0",
1515
"transport": {
1616
"type": "stdio"
1717
},
@@ -26,8 +26,8 @@
2626
},
2727
{
2828
"registryType": "mcpb",
29-
"identifier": "https://github.com/postmanlabs/postman-mcp-server/releases/download/v2.11.2/postman-mcp-server-minimal.mcpb",
30-
"fileSha256": "e8aa64e13b894c8933932c1c975c54095718e002bf866932759d040b4268499d",
29+
"identifier": "https://github.com/postmanlabs/postman-mcp-server/releases/download/v2.12.0/postman-mcp-server-minimal.mcpb",
30+
"fileSha256": "ddffc6558f262e10f4794108427d219ff507402bfe9b1db94cb0b0d441a27737",
3131
"transport": {
3232
"type": "stdio"
3333
},
@@ -42,8 +42,8 @@
4242
},
4343
{
4444
"registryType": "mcpb",
45-
"identifier": "https://github.com/postmanlabs/postman-mcp-server/releases/download/v2.11.2/postman-mcp-server-full.mcpb",
46-
"fileSha256": "e7838e78524b68dc9e44b2d6f116f144e98f141e892ce2c63205764a002794ee",
45+
"identifier": "https://github.com/postmanlabs/postman-mcp-server/releases/download/v2.12.0/postman-mcp-server-full.mcpb",
46+
"fileSha256": "15733e75b0b988aa986ee6c32dddb17a1e292651377125ec2d96bd829b03652d",
4747
"transport": {
4848
"type": "stdio"
4949
},
@@ -58,8 +58,8 @@
5858
},
5959
{
6060
"registryType": "mcpb",
61-
"identifier": "https://github.com/postmanlabs/postman-mcp-server/releases/download/v2.11.2/postman-mcp-server-code.mcpb",
62-
"fileSha256": "2498add02598c5f05fbea1d395649257ddfefdb55a9d0d6b466afbba2b662b70",
61+
"identifier": "https://github.com/postmanlabs/postman-mcp-server/releases/download/v2.12.0/postman-mcp-server-code.mcpb",
62+
"fileSha256": "0155769a5fd196fd983407563e4bdf6bd4d653ff7be2563939b99adc71510e84",
6363
"transport": {
6464
"type": "stdio"
6565
},

src/index.ts

Lines changed: 41 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,13 @@ import { createProgressReporter, type ProgressReporter } from './tools/utils/pro
2323
import { env } from './env.js';
2424
import { createTemplateRenderer } from './tools/utils/templateRenderer.js';
2525
import { createErrorTemplateRenderer } from './tools/utils/errorTemplateRenderer.js';
26-
import { createTelemetryClient, detectPaginationUsed, parseTelemetryFlag, TelemetrySession, type ITelemetryClient } from './telemetry/index.js';
26+
import {
27+
createTelemetryClient,
28+
detectPaginationUsed,
29+
parseTelemetryFlag,
30+
TelemetrySession,
31+
type ITelemetryClient,
32+
} from './telemetry/index.js';
2733
import { generateSrvTrace } from './telemetry/srvTrace.js';
2834

2935
const SUPPORTED_REGIONS = {
@@ -206,16 +212,20 @@ async function run() {
206212
.sort(toolSorter);
207213

208214
// Determine region for telemetry
209-
const region: 'us' | 'eu' = (regionIndex !== -1 && regionIndex + 1 < args.length && isValidRegion(args[regionIndex + 1]))
210-
? args[regionIndex + 1] as 'us' | 'eu'
211-
: 'us';
215+
const region: 'us' | 'eu' =
216+
regionIndex !== -1 && regionIndex + 1 < args.length && isValidRegion(args[regionIndex + 1])
217+
? (args[regionIndex + 1] as 'us' | 'eu')
218+
: 'us';
212219

213220
// Telemetry is OFF by default for the open-source STDIO server. Users must
214221
// opt in explicitly with POSTMAN_MCP_TELEMETRY=true; any other value (or
215222
// unset) keeps telemetry disabled.
216223
const telemetryEnabled = parseTelemetryFlag(process.env.POSTMAN_MCP_TELEMETRY) ?? false;
217224
if (telemetryEnabled) {
218-
log('info', 'Telemetry enabled (POSTMAN_MCP_TELEMETRY=true). Set POSTMAN_MCP_TELEMETRY=false to disable.');
225+
log(
226+
'info',
227+
'Telemetry enabled (POSTMAN_MCP_TELEMETRY=true). Set POSTMAN_MCP_TELEMETRY=false to disable.'
228+
);
219229
}
220230
const telemetry: ITelemetryClient = createTelemetryClient({
221231
telemetryEnabled,
@@ -356,12 +366,14 @@ async function run() {
356366
authMethod: 'api_key',
357367
paginationUsed,
358368
srvTraceId,
359-
meta: extra?._meta ? {
360-
trigger: (extra._meta as any).trigger ?? '',
361-
conversation_id: (extra._meta as any).conversation_id ?? '',
362-
task_type: (extra._meta as any).task_type ?? '',
363-
model_name: (extra._meta as any).model_name ?? '',
364-
} : undefined,
369+
meta: extra?._meta
370+
? {
371+
trigger: (extra._meta as any).trigger ?? '',
372+
conversation_id: (extra._meta as any).conversation_id ?? '',
373+
task_type: (extra._meta as any).task_type ?? '',
374+
model_name: (extra._meta as any).model_name ?? '',
375+
}
376+
: undefined,
365377
metaRaw,
366378
});
367379

@@ -380,12 +392,14 @@ async function run() {
380392
logBoth(server, 'error', `Tool invocation failed: ${toolName}: ${errMsg}`, { toolName });
381393

382394
const errDurationMs = Date.now() - start;
383-
const errorMeta = extra?._meta ? {
384-
trigger: (extra._meta as any).trigger ?? '',
385-
conversation_id: (extra._meta as any).conversation_id ?? '',
386-
task_type: (extra._meta as any).task_type ?? '',
387-
model_name: (extra._meta as any).model_name ?? '',
388-
} : undefined;
395+
const errorMeta = extra?._meta
396+
? {
397+
trigger: (extra._meta as any).trigger ?? '',
398+
conversation_id: (extra._meta as any).conversation_id ?? '',
399+
task_type: (extra._meta as any).task_type ?? '',
400+
model_name: (extra._meta as any).model_name ?? '',
401+
}
402+
: undefined;
389403

390404
if (error instanceof McpError) {
391405
const httpStatus = (error.data as Record<string, unknown>)?.httpStatus;
@@ -401,13 +415,16 @@ async function run() {
401415
paginationUsed,
402416
srvTraceId,
403417
errorType: 'tool',
404-
errorCode: typeof httpStatus === 'number' && (httpStatus === 401 || httpStatus === 403)
405-
? 'AUTH_ERROR'
406-
: typeof httpStatus === 'number' && httpStatus === 429
407-
? 'RATE_LIMITED'
408-
: 'UPSTREAM_ERROR',
409-
errorStage: typeof httpStatus === 'number' && (httpStatus === 401 || httpStatus === 403)
410-
? 'auth' : 'upstream',
418+
errorCode:
419+
typeof httpStatus === 'number' && (httpStatus === 401 || httpStatus === 403)
420+
? 'AUTH_ERROR'
421+
: typeof httpStatus === 'number' && httpStatus === 429
422+
? 'RATE_LIMITED'
423+
: 'UPSTREAM_ERROR',
424+
errorStage:
425+
typeof httpStatus === 'number' && (httpStatus === 401 || httpStatus === 403)
426+
? 'auth'
427+
: 'upstream',
411428
errorUpstream: 'postman-api',
412429
rateLimited: typeof httpStatus === 'number' && httpStatus === 429,
413430
meta: errorMeta,

0 commit comments

Comments
 (0)