AgentDbWeb.Mcp (agent_db v0.1.0)

Copy Markdown View Source

Compatibility shim over AgentDb.Mcp.

The MCP tool inventory now lives in the core module AgentDb.Mcp so it can be used in-process by a sidecar host without the Phoenix web layer. This module delegates to it, keeping existing callers and tests working.

Summary

Functions

Invokes a tool by name in-process, delegating to AgentDb.Mcp.

Handles one JSON-RPC request map, delegating to AgentDb.Mcp.

The MCP tool inventory served by tools/list.

Functions

call_tool(name, args \\ %{}, opts \\ [])

@spec call_tool(String.t(), map(), keyword()) :: {:ok, term()} | {:error, term()}

Invokes a tool by name in-process, delegating to AgentDb.Mcp.

handle_request(request, opts \\ [])

@spec handle_request(map(), keyword()) :: map()

Handles one JSON-RPC request map, delegating to AgentDb.Mcp.

tools()

@spec tools() :: [map()]

The MCP tool inventory served by tools/list.