Back to Skills

koan-mcp-integration

sylin-org
Updated 2 days ago
25 views
2
1
2
View on GitHub
Metamcpdesign

About

This Claude Skill enables developers to expose Koan services as MCP tools for integration with Claude Code. It provides framework patterns for building MCP servers and creating custom tools that Claude can call. Use it when you need to connect your Koan backend services directly to Claude's coding workflow.

Quick Install

Claude Code

Recommended
Plugin CommandRecommended
/plugin add https://github.com/sylin-org/koan-framework
Git CloneAlternative
git clone https://github.com/sylin-org/koan-framework.git ~/.claude/skills/koan-mcp-integration

Copy and paste this command in Claude Code to install this skill

Documentation

Koan MCP Integration

Core Principle

Expose Koan services as MCP tools for Claude integration. Use framework patterns for tool implementations.

MCP Server Setup

Basic MCP Server

using Koan.Mcp;

var builder = WebApplication.CreateBuilder(args);
builder.Services.AddKoan();
builder.Services.AddKoanMcp(); // Adds MCP capabilities
var app = builder.Build();
app.Run();

Expose Entity as MCP Tool

public class TodoMcpTool : IMcpTool
{
    public string Name => "get_todo";
    public string Description => "Retrieve a todo by ID";

    public McpToolSchema Schema => new()
    {
        Parameters = new[]
        {
            new McpParameter { Name = "id", Type = "string", Required = true }
        }
    };

    public async Task<McpToolResult> ExecuteAsync(
        Dictionary<string, object> args,
        CancellationToken ct)
    {
        var id = args["id"].ToString();
        var todo = await Todo.Get(id, ct);

        return new McpToolResult
        {
            Content = todo != null
                ? $"Todo: {todo.Title} (Completed: {todo.Completed})"
                : "Todo not found"
        };
    }
}

Configuration

{
  "Koan": {
    "Mcp": {
      "ServerName": "Todo MCP Server",
      "Version": "1.0.0",
      "Transport": "stdio",
      "Capabilities": {
        "Tools": true,
        "Resources": true,
        "Prompts": false
      }
    }
  }
}

Code Mode Integration

MCP servers integrate with Claude Code Mode for enhanced capabilities.

When This Skill Applies

  • ✅ Building MCP servers
  • ✅ Claude integrations
  • ✅ Tool development
  • ✅ MCP Code Mode

Reference Documentation

  • Guide: docs/guides/mcp-http-sse-howto.md
  • Sample: samples/S16.PantryPal/MCP/ (MCP server example)
  • Module: src/Koan.Mcp/

GitHub Repository

sylin-org/koan-framework
Path: .claude/skills/mcp-integration

Related Skills

langchain

Meta

LangChain is a framework for building LLM applications using agents, chains, and RAG pipelines. It supports multiple LLM providers, offers 500+ integrations, and includes features like tool calling and memory management. Use it for rapid prototyping and deploying production systems like chatbots, autonomous agents, and question-answering services.

View skill

content-collections

Meta

This skill provides a production-tested setup for Content Collections, a TypeScript-first tool that transforms Markdown/MDX files into type-safe data collections with Zod validation. Use it when building blogs, documentation sites, or content-heavy Vite + React applications to ensure type safety and automatic content validation. It covers everything from Vite plugin configuration and MDX compilation to deployment optimization and schema validation.

View skill

Algorithmic Art Generation

Meta

This skill helps developers create algorithmic art using p5.js, focusing on generative art, computational aesthetics, and interactive visualizations. It automatically activates for topics like "generative art" or "p5.js visualization" and guides you through creating unique algorithms with features like seeded randomness, flow fields, and particle systems. Use it when you need to build reproducible, code-driven artistic patterns.

View skill

webapp-testing

Testing

This Claude Skill provides a Playwright-based toolkit for testing local web applications through Python scripts. It enables frontend verification, UI debugging, screenshot capture, and log viewing while managing server lifecycles. Use it for browser automation tasks but run scripts directly rather than reading their source code to avoid context pollution.

View skill