← Files PostmanARCHIVED FILE
skills/postman-mcp-server/references/learn.md
4.64 KB · Oct 5, 2026 · 18:18 UTC
--- description: Search the Postman Learning Center for how-to guidance, feature explanations, and suggested workflows. Use for "how do I..." questions about the Postman product. allowed-tools: Read, mcp__postman__searchLearningCenter, mcp__postman__getEnabledTools --- # Learn Postman Answer "how do I..." questions about the Postman product by searching the official Postman Learning Center (https://learning.postman.com). Explain features, walk through workflows, and cite authoritative sources. Use this to learn *about Postman itself* — not to search the user's own collections, workspaces, or specs (that's `/postman:search`). ## Prerequisites This command uses `searchLearningCenter`, which the Postman MCP Server exposes only in **Full mode**. The mode is fixed by the endpoint in each route's MCP config, not by the environment. A route pinned to `https://mcp.postman.com/mcp` has the tool; a route pinned to `https://mcp.postman.com/minimal` does not. Read it off the route's own MCP config rather than inferring it from the agent's name — which endpoint an agent gets is a per-route product decision, and new routes are added. **`POSTMAN_MCP_MODE` is not read on any route** — never tell the user to set or unset it to change the tool set. - If MCP tools aren't available at all, tell the user: "Run `/postman:setup` to configure the Postman MCP Server." - If `searchLearningCenter` is missing, call `getEnabledTools` to confirm the active tool set, then split on which endpoint the route is pinned to. On a `/minimal` route it is absent by design and the user cannot change it from the client: say the Learning Center tool isn't part of that route's tool set and point them at https://learning.postman.com to search directly. On a `/mcp` route its absence is not a mode problem — the server isn't connected as configured: "Run `/postman:setup` to configure the Postman MCP Server." Do not answer a "how do I..." question from memory when the tool is unavailable. Cite only URLs the tool returned, or send the user to the Learning Center. ## Workflow ### Step 1: Search Call `searchLearningCenter` with a focused `query` derived from the user's question. Prefer the product vocabulary from `postman-mcp-server` (mock server, environment, monitor, collection variable, etc.) over the user's exact phrasing. - Turn a broad request into a specific query — "how to create a mock server", "write a test script", "set a collection variable", "schedule a monitor". - If results are thin or off-target, refine: try a different feature term, split a multi-part question into separate searches, or broaden a narrow query. ### Step 2: Synthesize Read the returned passages and compose a direct answer to the user's question. Do not just dump raw results. - Lead with the answer or the concrete steps. - Keep steps in the order the user would perform them. - If the docs reveal a better or officially recommended workflow than what the user asked, surface it. - Always cite the source URLs the tool returns so the user can read more. ### Step 3: Connect to the Plugin When a workflow maps to a plugin command, point the user there so they can act immediately: - Creating/updating collections from a spec → `/postman:sync` - Finding APIs in their org or the public network → `/postman:search` - Running collection tests → `/postman:test` - Creating mock servers → `/postman:mock` - Generating or publishing docs → `/postman:docs` - Security auditing → `/postman:security` ## Output ``` To create a mock server in Postman: 1. Open the collection you want to mock (it needs saved example responses). 2. Select the collection → "Mock collection". 3. Name the mock, pick an environment, and choose visibility. 4. Postman returns a mock URL that serves your examples. Mock servers read from saved examples, so add examples first if you have none — the plugin can do this for you via /postman:mock. Source: https://learning.postman.com/docs/design-apis/mock-apis/set-up-mock-servers/ ``` ## Error Handling - **MCP not configured:** "Run `/postman:setup` to configure the Postman MCP Server." - **`searchLearningCenter` unavailable:** Confirm with `getEnabledTools`. Expected on any route pinned to the `minimal` endpoint — say the tool isn't in that route's tool set and point the user at https://learning.postman.com. On a `/mcp` route: "Run `/postman:setup` to configure the Postman MCP Server." - **401 Unauthorized:** "Your Postman API key was rejected. Generate a new one at https://go.postman.co/settings/me/api-keys and run `/postman:setup`." - **No results:** "Nothing matched in the Learning Center. Try rephrasing with the Postman feature name, or ask about a more specific step."
SHA-256: 9c7d71939691f14ae27a035c9b1a062d97738dffef4a30d10ac102e51d35b95b