UNPKG

@postman/postman-mcp-server

Version:

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)

351 lines (350 loc) • 9.44 kB
const full = [ 'createCollection', 'deleteCollection', 'generateCollection', 'getCollection', 'getCollections', 'patchCollection', 'putCollection', 'getCollectionTags', 'updateCollectionTags', 'getCollectionUpdatesTasks', 'syncCollectionWithSpec', 'syncSpecWithCollection', 'generateSpecFromCollection', 'getGeneratedCollectionSpecs', 'getSpecCollections', 'getCollectionForks', 'getSourceCollectionStatus', 'getCollectionsForkedByUser', 'pullCollectionChanges', 'createCollectionFork', 'mergeCollectionFork', 'asyncMergePullCollectionFork', 'asyncMergePullCollectionTaskStatus', 'getCollectionRoles', 'updateCollectionRoles', 'getCollectionPullRequests', 'createCollectionPullRequest', 'getPullRequest', 'updatePullRequest', 'reviewPullRequest', 'createCollectionFolder', 'deleteCollectionFolder', 'getCollectionFolder', 'updateCollectionFolder', 'transferCollectionFolders', 'createCollectionRequest', 'deleteCollectionRequest', 'getCollectionRequest', 'updateCollectionRequest', 'transferCollectionRequests', 'createCollectionResponse', 'deleteCollectionResponse', 'getCollectionResponse', 'updateCollectionResponse', 'transferCollectionResponses', 'runCollection', 'createCollectionComment', 'deleteCollectionComment', 'getCollectionComments', 'updateCollectionComment', 'createFolderComment', 'deleteFolderComment', 'getFolderComments', 'updateFolderComment', 'createRequestComment', 'deleteRequestComment', 'getRequestComments', 'updateRequestComment', 'createResponseComment', 'deleteResponseComment', 'getResponseComments', 'updateResponseComment', 'resolveCommentThread', 'createEnvironment', 'deleteEnvironment', 'getEnvironment', 'getEnvironments', 'patchEnvironment', 'putEnvironment', 'getEnvironmentForks', 'forkEnvironment', 'mergeEnvironmentFork', 'pullEnvironment', 'createMock', 'deleteMock', 'getMock', 'getMocks', 'updateMock', 'publishMock', 'unpublishMock', 'createMockServerResponse', 'deleteMockServerResponse', 'getMockServerResponse', 'getMockServerResponses', 'updateMockServerResponse', 'createMonitor', 'deleteMonitor', 'getMonitor', 'getMonitors', 'updateMonitor', 'runMonitor', 'listMonitorExecutions', 'listRunsForExecution', 'getMonitorRunResults', 'createPackage', 'deletePackage', 'getPackage', 'getPackages', 'updatePackage', 'getApiCatalogDiscoveryServices', 'postApiCatalogDiscoveryServices', 'getApiCatalogDiscoveryService', 'getApiCatalogServices', 'getApiCatalogService', 'getApiCatalogServiceEndpoints', 'getApiCatalogServiceMonitorRuns', 'getApiCatalogServiceSpecificationLints', 'getApiCatalogServiceCiRuns', 'getApiCatalogSystemEnvironments', 'createApiCatalogSystemEnvironment', 'getApiCatalogSystemEnvironment', 'updateApiCatalogSystemEnvironment', 'getApiCatalogSystemEnvironmentAssociations', 'addApiCatalogSystemEnvironmentAssociations', 'removeApiCatalogSystemEnvironmentAssociations', 'getAllRulesets', 'createRuleset', 'getRuleset', 'updateRuleset', 'deleteRuleset', 'getRulesetAssignments', 'createRulesetAssignment', 'deleteRulesetAssignment', 'getAllGovernanceGroups', 'createGovernanceGroup', 'updateGovernanceGroup', 'deleteGovernanceGroup', 'getGovernanceGroupAssignments', 'getGovernanceGroupWorkspaces', 'updateGovernanceGroupWorkspaces', 'getAllCustomFunctions', 'createCustomFunction', 'getCustomFunction', 'updateCustomFunction', 'deleteCustomFunction', 'createComponent', 'getAllComponents', 'getComponent', 'updateComponent', 'getComponentDraft', 'updateComponentDraft', 'createComponentVersion', 'getComponentVersions', 'getComponentVersion', 'createSpec', 'deleteSpec', 'getSpec', 'getAllSpecs', 'getSpecDefinition', 'updateSpecProperties', 'createSpecFile', 'getSpecFile', 'getSpecFiles', 'updateSpecFile', 'updateSpecSyncOptions', 'getSpecVersionTags', 'createSpecVersionTag', 'getSpecVersionTag', 'createWorkspace', 'deleteWorkspace', 'getWorkspace', 'getWorkspaces', 'updateWorkspace', 'getWorkspaceGlobalVariables', 'updateWorkspaceGlobalVariables', 'getWorkspaceTags', 'updateWorkspaceTags', 'getWorkspaceActivityFeed', 'transferWorkspaceElement', 'transferWorkspaceToTeam', 'managePartnerWorkspaceInvites', 'getAllWorkspaceRoles', 'getWorkspaceRoles', 'updateWorkspaceRoles', 'getWorkspaceUpdates', 'createWorkspaceUpdate', 'getWorkspaceUpdate', 'patchWorkspaceUpdate', 'deleteWorkspaceUpdate', 'listPrivateNetworkWorkspaces', 'listPrivateNetworkAddRequests', 'removeWorkspaceFromPrivateNetwork', 'addWorkspaceToPrivateNetwork', 'respondPrivateNetworkAddRequest', 'publishDocumentation', 'unpublishDocumentation', 'getAsyncSpecTaskStatus', 'getStatusOfAnAsyncApiTask', 'detectedSecretsQueries', 'getDetectedSecretsLocations', 'updateDetectedSecretResolutions', 'getSecretTypes', 'getAuditLogs', 'getAuditLogEventActions', 'getSdks', 'createSdk', 'getSdk', 'deleteSdk', 'getSdkDownloadUrl', 'getSdkGitConnections', 'createSdkGitConnection', 'getSdkGitConnection', 'updateSdkGitConnection', 'getSdkGitConnectionPullRequests', 'getTeams', 'getTeam', 'createTeam', 'getTeamSettings', 'updateTeamSettings', 'getTeamAccessRequests', 'createAccessRequest', 'approveDenyAccessRequest', 'manageTeamMemberRoles', 'removeTeamMembers', 'getAuthenticatedUser', 'getTeamUsers', 'getTeamUser', 'getTaggedEntities', 'getGroups', 'getGroup', 'getCodeGenerationInstructions', 'getPostmanContextOverview', 'getApiDiscoveryInstructions', 'getInstalledApiMaintenanceInstructions', 'duplicateCollection', 'getDuplicateCollectionTaskStatus', 'deleteSpecFile', 'getEnabledTools', 'searchPostmanElements', 'searchLearningCenter', 'getAnalyticsData', 'getAnalyticsMetadata', 'submitContextGraphAsk', 'getContextGraphAsk', ]; const minimal = [ 'createCollection', 'createEnvironment', 'createMock', 'createSpec', 'createSpecFile', 'createWorkspace', 'generateCollection', 'generateSpecFromCollection', 'getAllSpecs', 'getAuthenticatedUser', 'getCollection', 'getCollections', 'getEnvironment', 'getEnvironments', 'getGeneratedCollectionSpecs', 'getMock', 'getMocks', 'getSpec', 'getSpecCollections', 'getSpecDefinition', 'getSpecFile', 'getSpecFiles', 'getTaggedEntities', 'getWorkspace', 'getWorkspaces', 'publishMock', 'putCollection', 'putEnvironment', 'syncCollectionWithSpec', 'syncSpecWithCollection', 'updateMock', 'updateSpecFile', 'updateSpecProperties', 'updateWorkspace', 'createCollectionRequest', 'createCollectionResponse', 'duplicateCollection', 'getDuplicateCollectionTaskStatus', 'runCollection', 'getEnabledTools', 'updateCollectionRequest', 'searchPostmanElements', ]; const code = [ 'getCodeGenerationInstructions', 'getPostmanContextOverview', 'getApiDiscoveryInstructions', 'getInstalledApiMaintenanceInstructions', 'getWorkspace', 'getWorkspaces', 'searchPostmanElements', 'getCollectionRequest', 'getCollectionResponse', 'getCollectionFolder', 'getAuthenticatedUser', 'getCollection', 'getEnvironment', 'getEnvironments', 'getCollectionContext', 'getFolderContext', 'getRequestContext', 'getResponseContext', 'getRequestCodeContext', 'getEnvironmentContext', 'getWorkspacesContext', 'getWorkspaceContext', 'getWorkspaceEnvironmentsContext', ]; const learn = ['searchLearningCenter']; const contextGraph = ['submitContextGraphAsk', 'getContextGraphAsk']; const excludedFromGeneration = [ 'runCollection', 'getEnabledTools', 'listMonitorExecutions', 'listRunsForExecution', 'getMonitorRunResults', 'getCodeGenerationInstructions', 'getPostmanContextOverview', 'getApiDiscoveryInstructions', 'getInstalledApiMaintenanceInstructions', 'getCollectionMap', 'getCollection', 'searchPostmanElements', 'searchPostmanElementsInPublicNetwork', 'searchPostmanElementsInPrivateNetwork', 'searchLearningCenter', 'getCollectionContext', 'getFolderContext', 'getRequestContext', 'getResponseContext', 'getRequestCodeContext', 'getEnvironmentContext', 'getWorkspacesContext', 'getWorkspaceContext', 'getWorkspaceEnvironmentsContext', ]; const subtools = { getCollection: { orchestrator: 'getCollection', subtools: ['getCollection', 'getCollectionMap'], }, }; const templated = ['getCollections', 'getWorkspaces']; export const enabledResources = { full, minimal, code, learn, contextGraph, excludedFromGeneration, subtools, templated, };