feat: add read-only Swagger Petstore agent examples - #16
Merged
Conversation
sjungwon03-ai
approved these changes
Jul 29, 2026
sjungwon03-ai
left a comment
Member
There was a problem hiding this comment.
APPROVE at exact head 17af6ce.
All seven review criteria verified against PR diff, CI, and rulesets:
- Fixed HTTPS host https://petstore.swagger.io/v2 as a const; GET-only via #getJson; no credential field, no configurable base URL, no write method.
- findAvailablePets validates the whole payload is an array first, then tolerantly filters individual malformed records; throws if zero valid records remain — no silent empty result.
- PetstoreServer declares exactly search_available_pets, get_pet, get_petstore_inventory with explicit Zod input schemas; test asserts the exact tool name list.
- summarizeAvailablePets calls createTypeMcpLangChainTools, finds the adapted tool by name, invokes it, and builds a plain deterministic string summary — no LLM, no MCP transport.
- All unit tests use injected fixture fetch; CI verify.yml runs no :live or :agent command; live scripts are separate manual executables documented as smoke demos.
- README table, scenario section, and planning doc all match the implemented commands, tool names, and boundaries.
- No new dependencies; audit:prod in CI; verify check passed at this exact head SHA.
CI: verify completed success at 17af6ce. Ruleset dev active: 1 approval + verify check required. No open review threads.
sjungwon03
added a commit
that referenced
this pull request
Jul 29, 2026
* ci: require verified dev-to-main promotions * fix: pin examples MCP SDK to audited graph (#3) Co-authored-by: sjungwon03 <> * fix(deps): adopt TypeMCP 0.2.2 remediation (#7) * chore: reconcile main release history into dev (#11) * release: publish verified TypeChain and TypeMCP examples (#1) Co-authored-by: sjungwon03 <> * release: promote audited MCP SDK graph to production (#5) * ci: require verified dev-to-main promotions * fix: pin examples MCP SDK to audited graph (#3) Co-authored-by: sjungwon03 <> --------- Co-authored-by: sjungwon03 <> * fix: retain published TypeMCP dependency contract * fix: remove obsolete reconciliation override * feat: add read-only Swagger Petstore agent examples (#16) * docs(planning): add Swagger Petstore agent plan * feat: add read-only Swagger Petstore client * feat: wrap read-only Petstore API in TypeMCP * feat: add TypeChain Petstore agent workflow * feat: add live Swagger Petstore demonstrations --------- Co-authored-by: sjungwon03 <>
sjungwon03
added a commit
that referenced
this pull request
Jul 29, 2026
* ci: require verified dev-to-main promotions * fix: pin examples MCP SDK to audited graph (#3) Co-authored-by: sjungwon03 <> * fix(deps): adopt TypeMCP 0.2.2 remediation (#7) * chore: reconcile main release history into dev (#11) * release: publish verified TypeChain and TypeMCP examples (#1) Co-authored-by: sjungwon03 <> * release: promote audited MCP SDK graph to production (#5) * ci: require verified dev-to-main promotions * fix: pin examples MCP SDK to audited graph (#3) Co-authored-by: sjungwon03 <> --------- Co-authored-by: sjungwon03 <> * fix: retain published TypeMCP dependency contract * fix: remove obsolete reconciliation override * feat: add read-only Swagger Petstore agent examples (#16) * docs(planning): add Swagger Petstore agent plan * feat: add read-only Swagger Petstore client * feat: wrap read-only Petstore API in TypeMCP * feat: add TypeChain Petstore agent workflow * feat: add live Swagger Petstore demonstrations * feat: add real TypeChain Petstore agent factory (#22) * docs(planning): define real Petstore agent delivery * feat: add real TypeChain Petstore agent factory * docs: explain application-owned Petstore agent runtime --------- Co-authored-by: sjungwon03 <>
sjungwon03
added a commit
that referenced
this pull request
Jul 29, 2026
* ci: require verified dev-to-main promotions * fix: pin examples MCP SDK to audited graph (#3) Co-authored-by: sjungwon03 <> * fix(deps): adopt TypeMCP 0.2.2 remediation (#7) * chore: reconcile main release history into dev (#11) * release: publish verified TypeChain and TypeMCP examples (#1) Co-authored-by: sjungwon03 <> * release: promote audited MCP SDK graph to production (#5) * ci: require verified dev-to-main promotions * fix: pin examples MCP SDK to audited graph (#3) Co-authored-by: sjungwon03 <> --------- Co-authored-by: sjungwon03 <> * fix: retain published TypeMCP dependency contract * fix: remove obsolete reconciliation override * feat: add read-only Swagger Petstore agent examples (#16) * docs(planning): add Swagger Petstore agent plan * feat: add read-only Swagger Petstore client * feat: wrap read-only Petstore API in TypeMCP * feat: add TypeChain Petstore agent workflow * feat: add live Swagger Petstore demonstrations * feat: add real TypeChain Petstore agent factory (#22) * docs(planning): define real Petstore agent delivery * feat: add real TypeChain Petstore agent factory * docs: explain application-owned Petstore agent runtime * refactor: build Petstore TypeMCP HTTP agent example (#28) * docs: design real Petstore MCP agent example * docs(planning): detail Petstore MCP agent rewrite * feat: add loopback Petstore MCP runtime and client * feat: add TypeChain Petstore MCP agent * refactor: center examples on Petstore MCP agent * ci: verify Petstore MCP fixtures --------- Co-authored-by: sjungwon03 <>
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
Closes #15.
Replace the local-only catalog as the primary integration scenario with a read-only public Swagger Petstore v2 example:
PetstoreClientfixed tohttps://petstore.swagger.io/v2, with GET-only requests, timeout handling, response validation, and tolerant filtering of malformed public-demo records.PetstoreServerwith exactly three TypeMCP tools:search_available_pets,get_pet, andget_petstore_inventory.search_available_petsin-process, then summarizes results without an LLM or MCP transport.Verification
npm cinpm run check— 8 test files, 12 tests; production audit reports 0 vulnerabilities.npm run example:petstore:typemcp:fixturenpm run example:petstore:agent:fixturenpm run example:petstore:live— actual public GET data observed.npm run example:petstore:agent— actual TypeChain → TypeMCP-adapted tool result observed.git diff --checkScope and safety