@postman/postman-mcp-server 2.1.3 → 2.1.4-alpha.2

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.
package/README.md CHANGED
@@ -60,10 +60,10 @@ Configure the extension to use the **postman-api-mcp** server, a local STDIO-bas
60
60
 
61
61
  ### Claude integration
62
62
 
63
- To integrate the MCP server with Claude, check the latest [Postman MCP server release](https://github.com/postmanlabs/postman-mcp-server/releases) and download one of the available `.dxt` files:
63
+ To integrate the MCP server with Claude, check the latest [Postman MCP server release](https://github.com/postmanlabs/postman-mcp-server/releases) and download one of the following `.dxt` files:
64
64
 
65
- - **postman-api-mcp-minimal.dxt** - Contains 37 essential tools for basic Postman operations
66
- - **postman-api-mcp-full.dxt** - Contains all 106+ tools for comprehensive Postman functionality
65
+ - **postman-api-mcp-minimal.dxt** - Contains 37 essential tools for basic Postman operations.
66
+ - **postman-api-mcp-full.dxt** - Contains all 106+ tools for comprehensive Postman functionality.
67
67
 
68
68
  For more information, see Anthropic's [Claude Desktop Extensions](https://www.anthropic.com/engineering/desktop-extensions) documentation.
69
69
 
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@postman/postman-mcp-server",
3
- "version": "2.1.3",
3
+ "version": "2.1.4-alpha.2",
4
4
  "description": "A simple MCP server to operate on the Postman API",
5
5
  "main": "dist/src/index.js",
6
6
  "type": "module",
@@ -149,7 +149,9 @@ const minimal = [
149
149
  'createCollectionResponse',
150
150
  'duplicateCollection',
151
151
  ];
152
+ const excludedFromGeneration = ['createCollection', 'putCollection'];
152
153
  export const enabledResources = {
153
154
  full,
154
155
  minimal,
156
+ excludedFromGeneration,
155
157
  };
package/dist/src/index.js CHANGED
@@ -2,7 +2,7 @@
2
2
  import dotenv from 'dotenv';
3
3
  import { Server } from '@modelcontextprotocol/sdk/server/index.js';
4
4
  import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js';
5
- import { CallToolRequestSchema, ErrorCode, ListToolsRequestSchema, McpError, } from '@modelcontextprotocol/sdk/types.js';
5
+ import { CallToolRequestSchema, ErrorCode, isInitializeRequest, ListToolsRequestSchema, McpError, } from '@modelcontextprotocol/sdk/types.js';
6
6
  import zodToJsonSchema from 'zod-to-json-schema';
7
7
  import packageJson from '../package.json' with { type: 'json' };
8
8
  import { readdir } from 'node:fs/promises';
@@ -75,6 +75,7 @@ const SERVER_NAME = packageJson.name;
75
75
  const APP_VERSION = packageJson.version;
76
76
  export const USER_AGENT = `${SERVER_NAME}/${APP_VERSION}`;
77
77
  let currentApiKey = undefined;
78
+ let clientInfo = undefined;
78
79
  const allGeneratedTools = await loadAllTools();
79
80
  log('info', 'Server initialization starting', {
80
81
  serverName: SERVER_NAME,
@@ -115,7 +116,10 @@ async function run() {
115
116
  }
116
117
  const result = await tool.handler(args, {
117
118
  apiKey: currentApiKey,
118
- headers: extra.requestInfo?.headers,
119
+ headers: {
120
+ ...extra.requestInfo?.headers,
121
+ 'user-agent': clientInfo?.name,
122
+ },
119
123
  });
120
124
  const durationMs = Date.now() - start;
121
125
  log('info', `Tool invocation completed: ${toolName} (${durationMs}ms)`, {
@@ -151,6 +155,12 @@ async function run() {
151
155
  }
152
156
  log('info', 'Starting stdio transport');
153
157
  const transport = new StdioServerTransport();
158
+ transport.onmessage = (message) => {
159
+ if (isInitializeRequest(message)) {
160
+ clientInfo = message.params.clientInfo;
161
+ log('debug', '📥 Received MCP initialize request', { clientInfo });
162
+ }
163
+ };
154
164
  await server.connect(transport);
155
165
  logBoth(server, 'info', `Server connected and ready: ${SERVER_NAME}@${APP_VERSION} with ${tools.length} tools (${useFull ? 'full' : 'minimal'})`);
156
166
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@postman/postman-mcp-server",
3
- "version": "2.1.3",
3
+ "version": "2.1.4-alpha.2",
4
4
  "description": "A simple MCP server to operate on the Postman API",
5
5
  "main": "dist/src/index.js",
6
6
  "type": "module",