mcp

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: May 11, 2026 License: 0BSD Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultMaxChars    = 50000 // 50k chars default
	DefaultPageSize    = 10000 // 10k chars per page
	DefaultMaxDownload = 10    // 10MB default download limit
	MaxDownloadLimit   = 100   // 100MB hard limit
	HTTPTimeout        = 60 * time.Second
)

Defaults

Variables

This section is empty.

Functions

func NewServer

func NewServer() *mcp.Server

Types

type CrackBase64Args

type CrackBase64Args struct {
	Data     string `json:"data" jsonschema:"Base64-encoded document content"`
	MaxChars int    `json:"max_chars,omitempty" jsonschema:"Maximum characters to return (default 50000, -1 for unlimited)"`
	Page     int    `json:"page,omitempty" jsonschema:"Page number for paginated results (1-indexed, default 1)"`
	PageSize int    `json:"page_size,omitempty" jsonschema:"Characters per page (default 10000)"`
}

type CrackFileArgs

type CrackFileArgs struct {
	Path     string `json:"path" jsonschema:"Path to the document file to extract text from"`
	MaxChars int    `json:"max_chars,omitempty" jsonschema:"Maximum characters to return (default 50000, -1 for unlimited)"`
	Page     int    `json:"page,omitempty" jsonschema:"Page number for paginated results (1-indexed, default 1)"`
	PageSize int    `json:"page_size,omitempty" jsonschema:"Characters per page (default 10000)"`
}

Tool argument types with optional pagination/limits

type CrackURLArgs

type CrackURLArgs struct {
	URL           string `json:"url" jsonschema:"URL of the document to download and extract text from"`
	MaxChars      int    `json:"max_chars,omitempty" jsonschema:"Maximum characters to return (default 50000, -1 for unlimited)"`
	Page          int    `json:"page,omitempty" jsonschema:"Page number for paginated results (1-indexed, default 1)"`
	PageSize      int    `json:"page_size,omitempty" jsonschema:"Characters per page (default 10000)"`
	MaxDownloadMB int    `json:"max_download_mb,omitempty" jsonschema:"Maximum download size in MB (default 10, max 100)"`
}

type Server

type Server struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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