tools

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatResponse

func FormatResponse(resp *client.Response, opts FormatOptions) string

func Register

func Register(mcpServer *mcp.Server, httpClient *client.Client, cfg client.Config)

Types

type FormatOptions added in v0.3.0

type FormatOptions struct {
	IncludeHeaders bool
	JSONFilter     string
}

FormatOptions controls how a response is rendered for the model.

type HttpRequestInput

type HttpRequestInput struct {
	Method                 string            `json:"method" jsonschema:"HTTP method: GET, POST, PUT, DELETE, PATCH, HEAD, OPTIONS"`
	URL                    string            `json:"url" jsonschema:"Full URL or relative path (if base_url configured)"`
	Headers                map[string]string `json:"headers,omitempty" jsonschema:"Request headers as key-value pairs"`
	Body                   string            `json:"body,omitempty" jsonschema:"Request body (typically JSON)"`
	QueryParams            map[string]string `json:"queryParams,omitempty" jsonschema:"Query parameters as key-value pairs"`
	Timeout                string            `json:"timeout,omitempty" jsonschema:"Per-request timeout (e.g. 10s, 500ms)"`
	FollowRedirects        *bool             `json:"followRedirects,omitempty" jsonschema:"Follow HTTP redirects (default: true)"`
	IncludeResponseHeaders *bool             `json:"includeResponseHeaders,omitempty" jsonschema:"Include response headers in output (default: false)"`
	JSONFilter             string            `` /* 208-byte string literal not displayed */
	SaveTo                 string            `` /* 147-byte string literal not displayed */
	MaxResponseBytes       int64             `json:"maxResponseBytes,omitempty" jsonschema:"Per-request response size limit in bytes (overrides server default)"`
	Files                  map[string]string `` /* 127-byte string literal not displayed */
	FormFields             map[string]string `json:"formFields,omitempty" jsonschema:"Text fields for multipart/form-data (mutually exclusive with body)"`
}

Jump to

Keyboard shortcuts

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