SShortSingh.
Back to feed

Developer builds MCP server so LLMs calculate Japanese marketplace fees accurately

0
·8 views

A developer who sells digital tools for Japanese resellers noticed that LLMs often give confident but wrong marketplace fee figures, since each platform uses different rates and rounding rules. Fees on BOOTH, Mercari, Rakuma, and Yahoo! Auctions follow distinct formulas, including tiered rates and tax-exclusive methods. To fix this, the developer created AlgoEnt Tools, a remote MCP server with five read-only, stateless tools that compute fees and net payouts using each platform's official formula. The server uses integer arithmetic, strict input validation, and shares one fee engine with the developer's website and REST API for consistency.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingDEV Community ·

Python Circuit Breaker Guards Against Slow External APIs Triggering Outages

A sudden load spike slowed a user profile API from hundreds of milliseconds to several seconds, and the system's connection pools were exhausted while waiting on those calls. The resulting backlog blocked new requests and turned a partial external degradation into a full infrastructure outage. The author concludes that slow APIs can be more harmful than failed ones, since waiting on timeouts compounds the damage. To address this, they outline a lightweight circuit breaker built with only the Python standard library plus Pydantic and orjson, requiring fail-fast opening, safe fallbacks, and strict payload validation. The article includes a state diagram of the CLOSED, OPEN, and HALF-OPEN transitions and a CLI validation script.

0
ProgrammingDEV Community ·

Why Internal X.509 Certificates Should Not Be Pasted Into Online Decoders

Engineers often paste internal TLS certificates into online decoders when handshakes fail, which can leak private hostnames, IP ranges, and internal CA structures. Certificate bundles may also accidentally include private keys, adding risk. The article argues that certificates can be parsed locally in the browser, with all processing staying in memory on the user's machine. It also explains that under RFC 6125, a wildcard certificate covers only a single left-most label, so nested subdomains and the apex domain may not match. The author describes a tool that checks hostname coverage against certificate SANs locally before deployment.

0
ProgrammingDEV Community ·

ChronoVision Demo Shows AI Retrieving Clips From Hours-Long Videos Almost Instantly

At the International Conference on Machine Vision 2026, ChronoVision Labs demonstrated a system that locates short clips within a twelve-hour courtroom video in seconds. The approach streams footage into a Programmatic Multimodal Memory that indexes captions, visual features, and audio cues, deferring decisions about relevance until a user submits a question. The demo reportedly helped the company secure a $45 million Series A round and prompted industry pilots. The work also challenges the common practice of compressing long videos into single embeddings at ingest time.

0
ProgrammingDEV Community ·

Why Browser HAR Files Leak Production Secrets and How to Clean Them Client-Side

Sharing a browser network trace (HAR file) for debugging can unintentionally expose session cookies, bearer tokens, signed URLs, request bodies, and internal server details. Common regex-based scrubbers fail because they miss custom authentication headers, secrets embedded in URLs and redirects, and vendor-specific fields that pass through unchanged. The author built the Sunasty HAR Sanitizer, which runs entirely in the browser so no data is uploaded, and extracted its scrubbing core as the har-clean npm package. Instead of filtering out known secrets, the tool constructs a new HAR 1.2 file using explicit allowlists, keeping only validated fields. By default it strips all headers, cookies, query strings, and redirect targets, and rewrites URLs to a redacted form unless the user opts in.