mcp

package
v0.0.0-...-7428953 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2026 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Overview

Package mcp implements the MCP interface for ARTF. This package provides an MCP (Model Context Protocol) wrapper around the gRPC RTBExtensionPoint service, allowing AI agents to interact with ARTF via MCP tools.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Agent

type Agent struct {
	// contains filtered or unexported fields
}

Agent wraps the MCP server with ARTF-specific functionality. It delegates all business logic to the underlying gRPC ARTFAgent.

func NewAgent

func NewAgent(grpcAgent *agent.ARTFAgent, addr string, port int) *Agent

NewAgent creates a new MCP agent instance that wraps the gRPC agent

func (*Agent) GetFederationManager

func (a *Agent) GetFederationManager() *federation.Manager

GetFederationManager returns the federation manager

func (*Agent) GetMCPServer

func (a *Agent) GetMCPServer() *server.MCPServer

GetMCPServer returns the underlying MCP server for custom configuration

func (*Agent) Handler

func (a *Agent) Handler() http.Handler

Handler returns an HTTP handler for the MCP endpoint with CORS support. This can be mounted on an existing mux to serve MCP alongside other routes.

func (*Agent) SetFederationManager

func (a *Agent) SetFederationManager(fm *federation.Manager)

SetFederationManager sets the federation manager for federated GRPC calls

func (*Agent) Start

func (a *Agent) Start() error

Start starts the MCP interface using Streamable HTTP transport

Jump to

Keyboard shortcuts

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