mcpbridge

package
v0.6.11 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

Package mcpbridge adapts protocol-native MCP tools and results to Or's coding-agent, model-provider, and permission contracts.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildTools

func BuildTools(source Source) []tools.Tool

BuildTools adapts every discovered MCP tool for Or and appends the internal status tool when at least one server or configuration diagnostic exists.

func DisplayTitle

func DisplayTitle(definition *protocol.Tool) string

DisplayTitle returns the MCP-standard display-name precedence for a tool.

func ToolName

func ToolName(serverName, originalName string) string

ToolName returns the provider-safe, deterministic name Or advertises for an MCP tool.

Types

type Source added in v0.6.11

type Source interface {
	Tools() []mcpclient.Tool
	Statuses() []mcpclient.ServerStatus
}

Source is an immutable MCP tool and status snapshot. Both legacy client sessions and application-manager leases satisfy it.

Jump to

Keyboard shortcuts

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