tools

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatResponse

func FormatResponse(resp *client.Response, includeHeaders bool) string

func Register

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

Types

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)"`
}

Jump to

Keyboard shortcuts

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