Optimize plugin token usage (v1.2.0)#11
Open
quintonwall wants to merge 4 commits into
Open
Conversation
- Split postman-context (19KB→7.7KB) and generate-spec (10.6KB→7.2KB) skills into lean SKILL.md + on-demand references/ files - Trim always-on front-matter descriptions to one or two sentences - Scope allowed-tools from mcp__postman__* wildcard to explicit tool lists on all MCP commands and the readiness-analyzer agent (also fixes missing Write/Edit permissions in docs, security, and agent) - Add backoff guidance for async 202 polling in sync, mock, docs - Make MCP server mode switchable via POSTMAN_MCP_MODE (default: full) - Update README (OAuth-first quick start, native routing, no GIFs) and CLAUDE.md conventions; add token-optimization-findings.md Co-Authored-By: Claude <noreply@anthropic.com>
validate-frontmatter.py now accepts specific mcp__postman__<toolName> entries in allowed-tools (and the Edit tool) instead of only the mcp__postman__* wildcard. validate-structure.py allows token-optimization-findings.md in the repo root. Co-Authored-By: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Reduces the context-window tokens the plugin consumes in users' Claude Code sessions. Full analysis and savings estimates are in
token-optimization-findings.md(added in this PR).postman-context(19KB → 7.7KB) andgenerate-spec(10.6KB → 7.2KB) now keep the workflow in SKILL.md and defer detailed rules toreferences/*.mdfiles read only at the step that needs them. No content deleted, just deferred (~2,800 / ~840 tokens saved per trigger in common cases).allowed-toolsfrom themcp__postman__*wildcard to explicit tool lists on all MCP commands and the readiness-analyzer agent. The audit also fixed missingWrite/Editpermissions indocs,security, and the agent.sync,mock, anddocsnow poll 202 operations with increasing backoff and report only the final result..mcp.jsonURL now supports aPOSTMAN_MCP_MODEenv var (mcpfull/default,minimal,code). Full mode stays the default: we verified from the server source that minimal mode lacks the*Contexttools, async polling tools,createCollectionFolder, andpublishDocumentation, which would break core workflows.Test plan
claude --plugin-dir .loads the plugin with no manifest errors/postman:setupworks (OAuth and API key paths)postman-contextflow readsreferences/code-generation.mdbefore generating client code/postman:sync) completes a full workflow with its explicitallowed-toolslistPOSTMAN_MCP_MODE=codeconnects to the code-mode serverGenerated with Claude Code