server

package
v1.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 30, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL