Documentation
¶
Overview ¶
Package server provides the MCP server implementation for gofetching web content.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FetchParams ¶ added in v0.0.4
type FetchParams struct {
URL string `json:"url" mcp:"URL to fetch"`
MaxLength *int `json:"max_length,omitempty" mcp:"Maximum number of characters to return"`
StartIndex *int `json:"start_index,omitempty" mcp:"Start index for truncated content"`
Raw bool `json:"raw,omitempty" mcp:"Get the actual HTML content without simplification"`
}
FetchParams defines the input parameters for the fetch tool
type FetchServer ¶
type FetchServer struct {
// contains filtered or unexported fields
}
FetchServer represents the MCP server for fetching web content
func NewFetchServer ¶
func NewFetchServer(cfg config.Config) *FetchServer
NewFetchServer creates a new fetch server instance
func (*FetchServer) Start ¶
func (fs *FetchServer) Start() error
Start starts the MCP server following the MCP specification
Click to show internal directories.
Click to hide internal directories.