SShortSingh.
Back to feed

Microsoft MCP SDK lets .NET apps act as MCP clients to consume tool servers

0
·2 views

Developers building .NET applications can now use the ModelContextProtocol SDK to connect their apps directly to MCP servers as clients, rather than relying on third-party tools like Claude Desktop. The process involves three core steps: connecting to a server via stdio or HTTP transport, discovering available tools at runtime, and invoking them by name with arguments. Unlike traditional API clients, there are no pre-generated proxy classes — tools and their schemas are received dynamically, requiring code that adapts at runtime. The stdio transport works by launching the MCP server as a child process, with the SDK handling the protocol handshake automatically. A key practical tip highlighted is to always print the discovered tool list before making calls, since tool names are SDK-derived and may differ from the original C# method names in the server code.

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
ProgrammingHacker News ·

Opinion: Tech Products Often Built Around Imaginary Rather Than Real User Needs

A piece published on Unsung Aresluna explores the concept of products being designed to solve user goals that may not genuinely exist. The author argues that developers and designers sometimes construct solutions around assumed or fabricated needs rather than actual user demand. This phenomenon can lead to wasted resources and products that fail to resonate with their intended audience. The article raises questions about how teams validate user goals before committing to a design or development path.

0
ProgrammingHacker News ·

Graft: Open-Source Tool Claims to Cut Claude Code Token Usage by 42%

A developer has released Graft, an open-source tool hosted on GitHub under NanoNets, designed to work as hooks for Claude Code. The tool aims to reduce token consumption during grep operations by approximately 42%. It was shared on Hacker News as a community project showcase. The release targets developers using Claude Code who want to optimize their token usage and reduce associated costs. At the time of posting, the project had minimal community engagement with only five upvotes and no comments.

0
ProgrammingDEV Community ·

Vacanam: Free Offline Voice Typing App for Windows Uses Local AI, No Cloud

Vacanam is a free, open-source voice typing application built for Windows 10 and 11 that performs all speech recognition locally on the user's device without sending data to any cloud server. The tool uses OpenAI's Whisper engine to transcribe speech in over nine languages, delivering text output in under half a second after the user releases the Ctrl+Space push-to-talk shortcut. Unlike commercial alternatives such as Wispr Flow or Dragon, which charge between $10 and $30 per month and require internet connectivity, Vacanam is free and fully functional offline. An optional built-in AI assistant, also running locally, removes filler words and corrects punctuation and sentence structure to produce polished text. The app works universally across Windows applications including Microsoft Word, Slack, Gmail, VS Code, and most major browsers.

0
ProgrammingHacker News ·

AV1 vs AV2: Comparing Video Codecs for Streaming in 2026

A technical comparison between the AV1 and AV2 video codecs has been published by Red5, aimed at helping developers and streaming professionals choose the right format. AV1 is an established open-source codec widely adopted across major platforms for its efficient compression. AV2 is its successor, promising further improvements in compression efficiency and video quality. The article outlines the trade-offs between the two codecs, including encoding speed, hardware support, and compatibility considerations. The guide is intended to help teams make informed decisions as AV2 begins to mature ahead of broader industry adoption in 2026.