MCP Server

MCP server for pypreset — exposes project scaffolding via Model Context Protocol.

pypreset.mcp_server.create_server()[source]

Create and configure the FastMCP server instance.

Return type:

FastMCP

pypreset.mcp_server.main()[source]

Entry point for the pypreset-mcp CLI command.

Return type:

None

Tools

MCP tool handlers — actions an AI assistant can invoke.

pypreset.mcp_server.tools.register_tools(mcp)[source]

Register all tool handlers on the given MCP server.

Parameters:

mcp (FastMCP)

Return type:

None

Resources

MCP resource handlers — read-only data exposed to AI assistants.

pypreset.mcp_server.resources.register_resources(mcp)[source]

Register all resource handlers on the given MCP server.

Parameters:

mcp (FastMCP)

Return type:

None

Prompts

MCP prompt handlers — guided workflows for AI assistants.

pypreset.mcp_server.prompts.register_prompts(mcp)[source]

Register all prompt handlers on the given MCP server.

Parameters:

mcp (FastMCP)

Return type:

None