effect-mcp-server

Operate MCP servers that interconnect modular robotic devices.

22|1|Updated Apr 14, 2026
One-click install
npx skills add https://github.com/mpsuesser/pi-effect-harness --skill effect-mcp-server
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: effect-mcp-server
Source: https://github.com/mpsuesser/pi-effect-harness/tree/main/harnesses/effect/skills/effect-mcp-server
Command: npx skills add https://github.com/mpsuesser/pi-effect-harness --skill effect-mcp-server

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill solves the problem of building reliable MCP (Model Context Protocol) servers by giving you a practical, Effect-native blueprint for exposing tools, resources, and prompts to LLM clients.

Core Features & Use Cases

  • Effect-based MCP server construction: Merge MCP part layers (resources, prompts, toolkits) and provide a transport layer to run a compliant server.
  • Schema-first tool and parameter modeling: Define tool inputs/outputs and resource template parameters using Effect Schema for validation and decoding.
  • Transport options (stdio or HTTP): Implement MCP servers over stdio for desktop/CLI clients and over HTTP for web/SSE-style deployments.
  • Runtime-safe server wiring: Use the Layer pattern (including correct stderr logging for stdio) and launch the server as a long-lived layer.

Quick Start

Build an MCP server layer by defining your Tools/Toolkit, Resources, and Prompts with Effect and Schema, then provide an MCP transport layer (stdio or HTTP) and launch it with Layer.launch.

Frequently Asked Questions about effect-mcp-server

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build an MCP server with Effect and Schema for tool validation?

Build an MCP server with Effect by defining tools and parameters using Schema for validation, merging MCP part layers with Layer.mergeAll, and providing a transport layer to expose typed capabilities to LLM clients.

What is the Model Context Protocol and when do I need a server for it?

The Model Context Protocol (MCP) is a standard for exposing tools, resources, and prompts to LLM clients. You need an MCP server when integrating AI assistants with typed, runtime-safe capabilities for CLI deployments or web endpoints.

Can I use an MCP server over both stdio and HTTP transports?

Yes, MCP servers support both stdio for desktop/CLI clients and HTTP for web/SSE-style deployments. Provide McpServer.layerStdio or McpServer.layerHttp, ensuring correct stderr logging configuration for the chosen transport.

How do I define parameterized resources in an Effect MCP server?

Define parameterized resources in an Effect MCP server by using Effect Schema to model resource template parameters for validation and decoding. Merge these resource layers with toolkits and prompts using Layer.mergeAll before providing the transport layer.

What is the best way to structure an MCP server using the Effect layer pattern?

The best way to structure an MCP server using the Effect layer pattern is to define tools, resources, and prompts as separate layers, merge them with Layer.mergeAll, and launch the combined layer as a long-lived process with transport-specific logging.

Why does stdio MCP server logging require stderr instead of stdout?

Stdio MCP server logging requires stderr because the stdio transport uses stdout for the actual MCP protocol communication with the LLM client. Logging to stdout would corrupt the protocol stream, so stderr is used for diagnostic output.