McpServer#
- class scikitplot.cleanprompt.McpServer(make_guard, roots, name='cleanprompt', version='1.0.0')[source]#
Answer MCP requests with cleanprompt tools.
- Parameters:
- make_guardcallable
Returns a fresh
Guard. Called at start and again bycleanprompt_forget.- rootsiterable of path-like
Folders the tools may read and write under.
- namestr, default=’cleanprompt’
The server name announced to clients.
- versionstr, default=’1.0.0’
The server version announced to clients.
- Parameters:
make_guard (Callable[[], Guard])
roots (Iterable[str | os.PathLike])
name (str)
version (str)
Notes
Developer notes.
handleis a pure function of one message and the server’s state — no I/O — which is what makes the protocol testable without a subprocess;serveonly moves lines.- name#
!! processed by numpydoc !!
- version#
!! processed by numpydoc !!