Manifold

v1.0.0Developer Toolsstable

Operation-first .NET foundation for generating fast CLI and MCP surfaces from a single definition.

clicsharpdotnetmcpmodel-context-protocol
Share:
46
Stars
0
Downloads
0
Weekly
0/5

What is Manifold?

Manifold is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to operation-first .net foundation for generating fast cli and mcp surfaces from a single definition.

Operation-first .NET foundation for generating fast CLI and MCP surfaces from a single definition.

This server falls under the Developer Tools category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • search_markets
  • get_market
  • get_user
  • place_bet
  • cancel_bet

Use Cases

.NET CLI and MCP generation
Fast operation-first surface generation
Garume

Maintainer

LicenseMIT
Languagec#
Versionv1.0.0
UpdatedMay 16, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

NPM

npx -y manifold-mcp-server

Manual Installation

npx -y manifold-mcp-server

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use Manifold

Manifold is a .NET source-generation framework that lets you define an operation once and automatically generate both a CLI surface and an MCP (Model Context Protocol) tool surface from that single definition. Using Roslyn source generators, it produces a GeneratedMcpCatalog and GeneratedMcpInvoker at compile time, meaning there is no runtime reflection overhead and the MCP tools are always in sync with your C# code. It is aimed at .NET developers who want to expose existing business logic to AI assistants without manually writing tool schemas or handler boilerplate.

Prerequisites

  • .NET 8 SDK or later installed
  • A C# project (class library or console app) to host your operations
  • NuGet package manager (included with .NET SDK)
  • An MCP client such as Claude Desktop to consume the generated tools
  • Basic familiarity with C# attributes and dependency injection
1

Add NuGet packages to your project

Add the core Manifold package, the source generator (PrivateAssets=all so it does not leak to consumers), and the MCP host package to your .csproj file.

<ItemGroup>
  <PackageReference Include="Manifold" Version="1.0.0" />
  <PackageReference Include="Manifold.Generators" Version="1.0.0" PrivateAssets="all" />
  <PackageReference Include="Manifold.Mcp" Version="1.0.0" />
</ItemGroup>
2

Define an operation

Decorate a static method or a class implementing IOperation<TRequest, TResult> with the [Operation] and [McpTool] attributes. The source generator will pick these up automatically.

[Operation("math_add")]
[McpTool("math_add")]
public static int Add([Argument(0)] int a, [Argument(1)] int b) => a + b;
3

Build the project

Build with dotnet build. The Roslyn generator runs at compile time and emits GeneratedOperationRegistry, GeneratedMcpCatalog, and GeneratedMcpInvoker into your assembly.

dotnet build
4

Wire up the MCP host

In your application entry point, create an MCP host that uses the generated catalog and invoker to serve tool requests.

McpHost host = new(
    GeneratedMcpCatalog.Tools,
    new GeneratedMcpInvoker(),
    serviceProvider);
await host.RunAsync(cancellationToken);
5

Configure Claude Desktop

Add the compiled .NET executable as an MCP server in Claude Desktop's configuration file.

{
  "mcpServers": {
    "manifold-app": {
      "command": "dotnet",
      "args": ["/absolute/path/to/your/app.dll"]
    }
  }
}

Manifold Examples

Client configuration

Claude Desktop config running a Manifold-powered .NET MCP server.

{
  "mcpServers": {
    "manifold-app": {
      "command": "dotnet",
      "args": ["/absolute/path/to/YourManifoldApp.dll"]
    }
  }
}

Prompts to try

Once your Manifold operations are exposed as MCP tools, Claude can call them directly.

- "Use the math_add tool to calculate 42 plus 58"
- "List all available MCP tools in this server"
- "Call the [your_operation_name] tool with parameters X and Y"

Troubleshooting Manifold

Source generator does not emit the Generated* classes

Ensure Manifold.Generators is referenced with PrivateAssets="all" and OutputItemType="Analyzer" in your .csproj. Clean the build output and run 'dotnet build' again to trigger the generator.

Claude Desktop shows the server as disconnected

Verify the dotnet runtime is on your system PATH and the path to the .dll in args is absolute. Test by running 'dotnet /path/to/app.dll' directly in a terminal to see any startup errors.

IOperation generic constraints cause compile errors

Ensure TRequest and TResult are concrete types, not interfaces. The source generator requires resolvable generic type arguments at compile time to generate the invoker correctly.

Frequently Asked Questions about Manifold

What is Manifold?

Manifold is a Model Context Protocol (MCP) server that operation-first .net foundation for generating fast cli and mcp surfaces from a single definition. It connects AI assistants to external tools and data sources through a standardized interface.

How do I install Manifold?

Install via npm with the command: npx -y manifold-mcp-server. Then add the server configuration to your AI client's JSON config file (e.g., claude_desktop_config.json or .cursor/mcp.json).

Which AI clients work with Manifold?

Manifold works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is Manifold free to use?

Yes, Manifold is open source and available under the MIT license. You can use it freely in both personal and commercial projects.

Browse More Developer Tools MCP Servers

Explore all developer tools servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "manifold": { "command": "npx", "args": ["-y", "manifold-mcp-server"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use Manifold?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides