Documentation
¶
Overview ¶
Package webmcp provides an in-process MCP server that exposes web search and URL fetching as tools callable by agents. It follows the same pattern as internal/configmcp: no subprocess is spawned, the server runs in-process using mcp.NewInMemoryTransports.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Deps ¶
type Deps struct {
// SearchProvider performs web searches. If nil, web_search tool is not registered.
SearchProvider websearch.Provider
// Fetcher retrieves URL content. If nil, web_fetch tool is not registered.
Fetcher webfetch.Fetcher
// PermissionTier returns the current effective tier for the agent.
PermissionTier func() string
Logger *slog.Logger
}
Deps holds the runtime dependencies injected into the Web MCP server.
Click to show internal directories.
Click to hide internal directories.