Documentation
¶
Overview ¶
Package dunemcp calls tools on the Dune MCP server with the CLI's API key.
The CLI uses it for capabilities that the Dune MCP server offers and the REST API does not, so those commands behave exactly like the MCP tools.
Index ¶
Constants ¶
const Path = "/mcp/v1"
Path is where the Dune API host serves the MCP server.
Variables ¶
This section is empty.
Functions ¶
func Result ¶
func Result(tool string, res *mcp.CallToolResult) (json.RawMessage, error)
Result returns the structured content of a tool result as JSON, or the error the tool reported. A result without structured content falls back to its first text block, which Dune tools fill with the same JSON.
Types ¶
type Caller ¶
type Caller interface {
// Call runs a tool and returns its structured result as JSON.
Call(ctx context.Context, tool string, args map[string]any) (json.RawMessage, error)
}
Caller calls tools on the Dune MCP server.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package dunemcptest provides a fake Dune MCP server for command tests.
|
Package dunemcptest provides a fake Dune MCP server for command tests. |