Skip to main content
Glama
MonadicSharp MCP Server

MonadicSharp MCP Server

by Danny4897

MonadicSharp MCP Server

This is a Model Context Protocol (MCP) server for MonadicSharp, a C# library for Railway-Oriented Programming (ROP) and robust AI agent development.

Topics: mcp model-context-protocol claude anthropic csharp typescript code-generation ai-tooling developer-tools

This MCP server provides Claude with:

  1. Expert Knowledge: Access to MonadicSharp documentation and patterns (rop-basics, ai-patterns) via Resources.

  2. Code Generation: A tool to generate idiomatic MonadicSharp snippets (generate_monadic_snippet).

Installation

Prerequisites

  • Node.js (v18+)

  • Claude Desktop App

Setup

  1. Clone this repository:

    git clone https://github.com/your-username/monadic-sharp-mcp.git
    cd monadic-sharp-mcp
  2. Install dependencies:

    npm install
  3. Build the server:

    npm run build

    (Note: You can also run it directly with npx tsx index.ts)

Related MCP server: ips-automation-mcp

Configuration

Add the following to your Claude Desktop configuration file:

  • MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json

  • Windows: %APPDATA%\Claude\claude_desktop_config.json

{
  "mcpServers": {
    "monadic-sharp": {
      "command": "node",
      "args": [
        "/path/to/monadic-sharp-mcp/dist/index.js"
      ]
    }
  }
}

Note: If you haven't built it, you can use tsx directly (requires tsx installed globally or full path):

{
  "mcpServers": {
    "monadic-sharp": {
      "command": "npx",
      "args": [
        "-y",
        "tsx",
        "/path/to/monadic-sharp-mcp/index.ts"
      ]
    }
  }
}

Features

Resources

  • monadic-sharp://rop-basics: Core ROP concepts (Bind, Map, Match, Result).

  • monadic-sharp://ai-patterns: AI Agent patterns (AgentResult, AiError, Retry Logic).

Tools

  • generate_monadic_snippet: Generates starter code for repositories, controllers, or AI steps.

License

MIT

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      A
      maintenance
      Gives Claude Code persistent cross-session memory with semantic search, automatic detection and classification of user corrections into behavioral patterns, and self-evolving frameworks that refine judgment over time. Everything runs locally through hooks and MCP tools, with no cloud, API keys, or telemetry.
      6 npm
      MIT