| name | mcp-patterns |
| description | Load MCP development patterns and best practices for building tools with the @umbraco-cms/mcp-server-sdk. Use when starting tool development or needing pattern reference. |
MCP Development Patterns
This skill loads comprehensive patterns for building MCP tools using the @umbraco-cms/mcp-server-sdk.
When to Use
Use this skill when:
- Starting to create new MCP tools
- Needing a reference for tool patterns
- Understanding how to use the toolkit helpers
- Setting up a new MCP server project
Core Architecture
Tool Definition Pattern
All tools follow this structure:
import {
withStandardDecorators,
executeGetApiCall,
executeVoidApiCall,
createToolResult,
CAPTURE_RAW_HTTP_RESPONSE,
ToolDefinition,
} from "@umbraco-cms/mcp-server-sdk";
const MyTool = {
name: "tool-name",
description: "What the tool does",
inputSchema: zodSchema.shape,
outputSchema: responseSchema,
slices: ["read"],
annotations: {
readOnlyHint: true,
: ,
: ,
},
: (params) => {
},
} <...>;
();