mcpprof

package
v1.0.18 Latest Latest
Warning

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

Go to latest
Published: May 16, 2026 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Package mcpprof registers Prof JSON APIs as MCP tools (stdio only).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterTools

func RegisterTools(s *mcp.Server, base string)

RegisterTools attaches all Prof proxy tools to the MCP server.

func ResolveAPIBase

func ResolveAPIBase(flagConf, flagPort, flagEnv, flagDir, flagPprofPort, flagLog string) (string, error)

ResolveAPIBase returns the Prof HTTP root for MCP tool HTTP calls. Order: PROF_API_BASE env → (if -c set) yaml Mcp.APIBase → (if -c set) yaml Server.Port or flagPort → else flagPort only (no yaml read).

func RunStdio

func RunStdio(apiBase string)

RunStdio runs MCP over stdin/stdout against the given Prof HTTP root (no trailing slash).

Types

This section is empty.

Jump to

Keyboard shortcuts

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