package
Version:
v0.8.0
Opens a new window with list of versions in this module.
Published: Mar 24, 2026
License: Apache-2.0
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package extract converts raw MCP tool arguments into typed Go values.
EntryArgs extracts required type/content from MCP args.
Parameters:
Returns:
- string: extracted entry type
- string: extracted content string
- error: non-nil if type or content is missing
Opts builds EntryOpts from MCP tool arguments.
Parameters:
- args: MCP tool arguments with optional entry fields
Returns:
- handler.EntryOpts: populated options struct
Source Files
¶
Click to show internal directories.
Click to hide internal directories.