# mcp


<!-- WARNING: THIS FILE WAS AUTOGENERATED! DO NOT EDIT! -->

## Registering the tools

The import guard makes the MCP dependency (`fastmcp`) genuinely
optional: without the `mcp` extra installed, importing this module
raises a clear install hint rather than a bare `ImportError`, and the
rest of slmn keeps working. Below, the same functions the CLI dispatches
are registered on a `FastMCP` instance – their type hints and docstrings
become each tool’s MCP schema, so there’s no separate schema to
maintain.

## Running the server

[`main()`](https://drscotthawley.github.io/slmn/cli.html#main) is the
`slmn-mcp` console-script entry point. It runs over stdio – the
transport an MCP client (Claude Code/Desktop, Cursor, …) spawns and
speaks to locally.

------------------------------------------------------------------------

<a
href="https://github.com/drscotthawley/slmn/blob/main/slmn/cli.py#L48"
target="_blank" style="float:right; font-size:smaller">source</a>

### main

``` python
def main():
```

*Entry point for the `slmn-mcp` console script – runs the server over
stdio, the transport MCP clients spawn locally.*
