feat(BUY-10855): MCP tool availability monitoring — check tools/list endpoint#47
Open
feat(BUY-10855): MCP tool availability monitoring — check tools/list endpoint#47
Conversation
- Remove deprecated enableTracing option (v8 uses tracesSampleRate only) - Replace deprecated getCurrentHub/getScope with v8 module-level setUser/setExtra/setTag API - Fix express type import (use type import instead of namespace access) This unblocks the MCP Cloud Run Docker build which runs tsc during image build. The /healthz endpoint (commit 6d3cf11) is already in source but the Docker build fails before reaching production. Co-Authored-By: Paperclip <noreply@paperclip.ing>
- scrapers/amazon_us.py: 24 categories, 1,636 keywords, targets 500K+ products - Uses Playwright with stealth for anti-bot (ScraperAPI credits exhausted) - Session save/resume, dedup across keywords, Prime detection - api/src/routes/products.ts: added amazon_us to VALID_PLATFORMS Smoke-tested: python -m scrapers.amazon_us --scrape-only --pages 2 Co-Authored-By: Paperclip <noreply@paperclip.ing>
…/llms-full.txt Co-Authored-By: Paperclip <noreply@paperclip.ing>
…er canonical - Add src/app/sitemap.xml/route.ts — route handler serving sitemap index with 5 sub-sitemaps (pages, categories, compare, US products, SG products) - Remove src/app/sitemap.ts — Next.js metadata version, shadowed by route handler; routes covered by sitemap-pages.xml - Add src/app/sitemap-products-sg.xml/route.ts — SG product sitemap route (paginated) - Add src/lib/sg-products.ts — SG product data for sitemap generation - Update src/lib/sitemaps.ts — trailing slash normalization, safeGetBlogPosts(), SG product sitemap functions, new routes Co-Authored-By: Paperclip <noreply@paperclip.ing>
5fcdfdb to
11f5623
Compare
Replace bare ADD CONSTRAINT with a PL/pgSQL DO block that: - Checks if constraint already exists (idempotent) - Counts and removes duplicate (sku, source) pairs via ROW_NUMBER() - Creates the unique constraint - Handles errors gracefully without aborting the migration Co-Authored-By: Paperclip <noreply@paperclip.ing>
…idation - check-mcp-uptime.sh: POST /mcp with tools/list JSON-RPC, validate expected tool count (6) + all tool names present - report-mcp-uptime.sh: track tool-level metrics, missing frequency - setup script: default URL → api.buywhere.ai/mcp - workflow: non-fatal nginx step, dry_run support Co-Authored-By: Paperclip <noreply@paperclip.ing>
11f5623 to
f13d4c9
Compare
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
Updates the MCP uptime monitoring to validate actual MCP tool availability via tools/list JSON-RPC instead of just checking a health endpoint.
Changes
scripts/check-mcp-uptime.sh/mcpwith tools/list, validate 6 tools + names, alert on mismatchesscripts/report-mcp-uptime.shscripts/setup-mcp-uptime-monitoring.shhttps://api.buywhere.ai/mcp.github/workflows/install-mcp-uptime.ymldry_runinput,continue-on-erroron nginx stepVerification
Closes BUY-10855