Skip to content

Tags: MelbourneDeveloper/RestClient.Net

Tags

restclient-v7.2.1

Toggle restclient-v7.2.1's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Adds MCP generator CLI Tool and Integration (#141)

# TLDR;

Adds the MCP generator, an example of integration with NucliaDB, and
filtering options for specific tags.

# Summary
- Adds a CLI tool to generate MCP tool wrappers from OpenAPI
specifications.
- Adds tag filtering to reduce the number of generated tools.
- Creates an example NucliaDB MCP server integrated with Claude.
- Configures stdio server transport to support Claude Code.
- Updates the NucliaDB MCP server sample to use the ModelContextProtocol
library.
- Updates the NucliaDB MCP server sample to use tag filtering.

restclient-v7.2.0

Toggle restclient-v7.2.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Fix Codegen and Add MCPCode Generation (#140)

# TLDR;
New code generator that creates MCP server tools from OpenAPI specs,
plus comprehensive NucliaDB sample implementation demonstrating the full
workflow from OpenAPI → RestClient.Net extensions → MCP tools.

# Summary
This PR adds **RestClient.Net.McpGenerator**, a code generator that
transforms OpenAPI specifications into Model Context Protocol (MCP)
server tools. The generator builds on top of the existing OpenAPI →
RestClient.Net extension methods, creating type-safe MCP tools that
expose REST APIs to Claude and other LLM tools. Includes a complete
reference implementation using the NucliaDB API with tests, demo, and
working MCP server.

# Details

**New Components (36 new files, 64 total changed)**

**MCP Generator** (`RestClient.Net.McpGenerator`)
- `McpToolGenerator.cs` - Generates MCP tool classes wrapping
RestClient.Net extensions
- `McpServerGenerator.cs` - Orchestrates OpenAPI → MCP tool code
generation
- CLI tool for command-line generation

**NucliaDB Sample Suite** (`Samples/NucliaDbClient*`)
- Generated client code from NucliaDB OpenAPI spec (~5,800 LOC)
- Comprehensive integration tests with Docker-based NucliaDB instance
- Demo console application showing usage patterns
- Working MCP server implementation with setup documentation

**Core Library Enhancements**
- Added OPTIONS HTTP method support (`CreateOptions` delegates)
- Enhanced test coverage for all HTTP methods including cancellation
scenarios

**Infrastructure**
- CI/CD: Added Docker verification and container cleanup to PR builds
- Test ordering: Priority-based test execution for integration tests
- Code quality: Relaxed StyleCop ordering rules, promoted EXHAUSTION001
to error

**Key Features**
- Generates type-safe MCP tools with proper parameter descriptions
- Integrates with `IHttpClientFactory` pattern (no socket exhaustion)
- Functional composition using Result types for error handling
- Full end-to-end example: OpenAPI → Extensions → MCP Tools → Working
Server

restclient-v7.1.3

Toggle restclient-v7.1.3's commit message
Add section on testing

restclient-v7.1.2

Toggle restclient-v7.1.2's commit message
Fix

restclient-v7.1.1

Toggle restclient-v7.1.1's commit message
Fix the exhaustion issue

restclient-v7.1.0

Toggle restclient-v7.1.0's commit message
Fix a dependency issue

restclient-v7.0.0

Toggle restclient-v7.0.0's commit message
Fix scripts

Releases/5.1.0

Toggle Releases/5.1.0's commit message
Release 5.1.0

Releases/5.0.3-beta

Toggle Releases/5.0.3-beta's commit message
Fix the description

Releases/5.0.1-alpha

Toggle Releases/5.0.1-alpha's commit message
Release