mcpserver

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package mcpserver exposes gocrawl over the Model Context Protocol so agentic tools such as Conductor or Claude Code can drive crawls directly. It registers two tools: "crawl" (run a crawl + analysis and return a structured report) and "list_analyzers".

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(version string) *mcp.Server

New builds the gocrawl MCP server.

Types

type CrawlInput

type CrawlInput = crawlrequest.Params

CrawlInput is the MCP "crawl" tool input. Optional fields override the defaults. It is an alias for crawlrequest.Params, the mapping shared with the web API.

type CrawlOutput

type CrawlOutput struct {
	Report *report.Report `json:"report"`
}

CrawlOutput is the MCP "crawl" tool output: the full crawl report.

type ListAnalyzersInput

type ListAnalyzersInput struct{}

ListAnalyzersInput is the (empty) input for the "list_analyzers" tool.

type ListAnalyzersOutput

type ListAnalyzersOutput struct {
	Analyzers []runner.AnalyzerInfo `json:"analyzers"`
}

ListAnalyzersOutput lists the available analyzers.

Jump to

Keyboard shortcuts

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