Skip to content

Show TI MCP recommendations in subcircuit picker - #228

Merged
imrishabh18 merged 16 commits into
mainfrom
feat/ti-mcp-subcircuit-recommendations
Sep 3, 2026
Merged

Show TI MCP recommendations in subcircuit picker#228
imrishabh18 merged 16 commits into
mainfrom
feat/ti-mcp-subcircuit-recommendations

Conversation

@imrishabh18

@imrishabh18 imrishabh18 commented Sep 2, 2026

Copy link
Copy Markdown
Member

Summary

  • add a server-only TI Support Intelligence MCP client with OAuth token reuse and current-tool schema discovery
  • show up to five category-scoped TI recommendations in the minimal subcircuit picker while keeping only local same-category subcircuits selectable
  • render each TI recommendation as a full part row with its part number, TI product family/name, concise description, and a Recommended badge
  • badge selectable local subcircuits as Recommended when their part number matches a TI recommendation
  • show compact loading/error states and retry failed recommendation requests when the picker is reopened
  • use a versioned detailed-response cache key so previously cached part-number-only responses cannot hide the richer rows
  • cache and deduplicate successful recommendations by category for 24 hours, reject cache-busting parameters, and keep the picker usable when TI is unavailable
  • document local and Vercel environment-variable setup without committing credentials

Testing

  • root format check and typecheck
  • system-block UI full test suite with extended timeout: 77 passing
  • system-block UI typecheck and production Vite build
  • standalone HTML build
  • live TI MCP Wireless and Drivers requests returned five enriched recommendation rows
  • browser-verified the five detailed Wireless recommendations followed by six selectable local Wireless subcircuits
  • focused picker/recommendation tests and production build pass after the badge update

Security and traffic

  • OAuth credentials remain server-side and are never included in browser bundles
  • OAuth tokens are reused until expiry
  • one MCP recommendation call supplies all five part rows; there are no per-part follow-up calls
  • concurrent and repeated category requests share one cached MCP result
  • failed requests are evicted so a later picker open can retry
  • CDN cache headers retain successful category results for 24 hours

@vercel

vercel Bot commented Sep 2, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
ti-system-block-ui Ready Ready Preview Sep 3, 2026 11:04am UTC

Request Review

@imrishabh18
imrishabh18 merged commit 13b0833 into main Sep 3, 2026
4 of 5 checks passed
@imrishabh18
imrishabh18 deleted the feat/ti-mcp-subcircuit-recommendations branch September 3, 2026 11:06
@tscircuitbot

Copy link
Copy Markdown

Thank you for your contribution! 🎉

PR Rating: ⭐⭐⭐
Impact: Major

Track your contributions and see the leaderboard at: tscircuit Contribution Tracker


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants