Documentation
¶
Index ¶
Constants ¶
View Source
const ( ToolGet = "workflowy_get" ToolList = "workflowy_list" ToolSearch = "workflowy_search" ToolTargets = "workflowy_targets" ToolID = "workflowy_id" ToolCreate = "workflowy_create" ToolUpdate = "workflowy_update" ToolMove = "workflowy_move" ToolDelete = "workflowy_delete" ToolComplete = "workflowy_complete" ToolUncomplete = "workflowy_uncomplete" ToolReportCount = "workflowy_report_count" ToolReportChildren = "workflowy_report_children" ToolReportCreated = "workflowy_report_created" ToolReportModified = "workflowy_report_modified" ToolReportMirrors = "workflowy_report_mirrors" ToolReplace = "workflowy_replace" ToolTransform = "workflowy_transform" )
Variables ¶
This section is empty.
Functions ¶
func ParseExposeList ¶
ParseExposeList converts the --expose flag into a deduplicated, ordered tool list. Supports groups: all, read, write. Individual tools can be referenced either by their short name (e.g., "get") or full MCP name (e.g., "workflowy_get").
Types ¶
type Config ¶
type Config struct {
APIKeyFile string
DefaultAPIKeyFile string
Expose string
Version string
WriteRootID string
}
Config controls MCP server startup.
type ToolBuilder ¶
type ToolBuilder struct {
// contains filtered or unexported fields
}
ToolBuilder wires Workflowy operations into MCP tool handlers.
func NewToolBuilder ¶
func NewToolBuilder(client workflowy.Client, writeRootID string) ToolBuilder
NewToolBuilder creates a builder bound to the provided Workflowy client. If writeRootID is set, write operations are restricted to that node and its descendants.
func (ToolBuilder) BuildTools ¶
func (b ToolBuilder) BuildTools(toolNames []string) ([]mcpserver.ServerTool, error)
BuildTools constructs the requested tools in the order provided.
Click to show internal directories.
Click to hide internal directories.