Expand description
MCP (Model Context Protocol) server library for Tidepool.
Wraps tidepool-runtime in an MCP server exposing run_haskell,
compile_haskell, and eval tools. Generic over effect handler stacks
via TidepoolMcpServer<H>.
Structs§
- Captured
Output - Captured output from effect handlers (e.g., Console Print).
- Effect
Decl - Static metadata describing a Haskell effect type.
- Eval
Request - Request parameters for the
evaltool. - Parsed
Constructor - Parsed constructor info extracted from an EffectDecl constructor string.
- Resume
Request - Request parameters for the
resumetool. - Tidepool
McpServer - Generic MCP server wrapper that compiles and runs Haskell via Tidepool.
- Tidepool
McpServer Impl - Non-generic internal implementation to satisfy trait requirements.
Traits§
- Collect
Effect Decls - Trait for collecting effect declarations from an HList of handlers.
- Describe
Effect - Trait for effect handlers that can describe their Haskell-side type.
- McpEffect
Handler - Trait combining effect dispatch with cloning for the MCP server.
Functions§
- aeson_
imports - Qualified aeson imports for MCP eval. Unqualified symbols now come from Tidepool.Prelude.
These provide
Aeson.prefix (used by json_to_haskell for input injection) and qualified access to KeyMap/Vector for power users. - ask_
decl - Ask effect: suspend execution to ask the calling LLM a question.
- build_
effect_ stack_ type - build_
preamble - Generate the Haskell module preamble that wraps user code in
evalcalls. - console_
decl - Console effect: print text output.
- exec_
decl - Exec effect: run shell commands.
- fs_decl
- File I/O effect (sandboxed).
- git_
decl - Git effect: native repository access via libgit2.
- http_
decl - Http effect: fetch JSON from HTTP endpoints.
- kv_decl
- Key-value store effect.
- llm_
decl - LLM effect: call a fast LLM (Haiku) for classification, extraction, or judgment.
- meta_
decl - Meta effect: self-mirror for querying runtime metadata.
- parse_
constructor - Parse
"GitLog :: Text -> Int -> Git [Value]"→ParsedConstructor { name: "GitLog", arity: 2 } - sg_decl
- Structural grep (ast-grep) effect.
- standard_
decls - All standard effects in canonical order.
- template_
haskell