SShortSingh.
Back to feed

Converting a Custom GPT Action into an MCP Server: A Minimal Tested Example

0
·1 views

A developer shows how to expose a single Custom GPT Action operation as a tool on a Model Context Protocol (MCP) server, so clients such as Claude can call the same API. The example uses the official TypeScript SDK with zod schemas and wraps Open-Meteo's forecast endpoint, which needs no API key, to return current temperature and wind speed. A test client confirmed the tool is listed with required parameters and returns correct Berlin weather data. Out-of-range coordinates were rejected by schema validation and returned as an error. The author notes the demo is not production-hardened, since the HTTP error branch and network failures are untested, and stresses that tool descriptions strongly influence when the model calls the tool.

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 ·

Microsoft Advisory Flags Remote Code Execution Flaw in Graphic Fonts Component (CVE-2026-119969)

Microsoft's November 2026 advisory assigns CVE-2026-119969, a remote code execution vulnerability in the Graphic Fonts component, a base score of 8.8. Malformed font files can exercise font parsing and rendering code, so the risk extends to any application that loads untrusted fonts. The available record does not detail the specific malformed structure or memory-safety primitive involved. Experts advise organizations to verify fixed builds, check third-party applications with bundled font engines, and confirm patches with post-update testing. Sandboxing and file filtering reduce exposure but do not replace the vendor fix.

0
ProgrammingDEV Community ·

Developers Ask Community Which AI Proxy Platform Works Best

A post on DEV Community asks whether other developers use AI proxy platforms and which one they consider the best. The author opens the discussion by directing the question to the community at large. The article text provided contains no further details, so no specific platforms, features, or experiences are described. The item therefore reflects a simple community query rather than a reported development or announcement.

0
ProgrammingDEV Community ·

How QR Code Cashback Systems Use Unique Codes, Fraud Checks and UPI Payouts

QR code cashback is growing fast in India, with brands printing a unique code on each product pack that buyers scan to receive money in their UPI account within minutes. Each code is generated randomly or signed cryptographically so it cannot be guessed, and is stored with its batch, product and reward details along with a status. The backend verifies each scan, claims the code atomically to prevent double redemption, and ties the reward to a verified user. Fraud is limited through rate limits, velocity and geographic checks, and holds on suspicious activity, while rewards are credited to an internal ledger wallet and paid out via bank UPI APIs using idempotency keys and asynchronous confirmation. Brands also gain first-party data on sales and repeat buyers from each scan.

0
ProgrammingDEV Community ·

Expo starter template for SDK 58 adds typed OpenAPI networking, UI kit and built-in docs

The expo-starter-pack template provides a preconfigured Expo app with a typed data layer, an auth-gated dashboard, a UI kit and a mock backend. The SDK 58 release moves the starter to Expo SDK 58 with React Native 0.88, React 19.3 and the New Architecture, using expo-router's typed routes. Networking now relies on a generated OpenAPI client, and query keys are derived from the spec through openapi-react-query instead of hand-written factories. Developers can run the app locally against the included mock server before a real backend exists. SDK 57 remains available under a separate tag on GitHub.