mcpruntime

package
v1.1.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	ProfileKindShared      = engine.ProfileKindShared
	ProfileKindHostManaged = engine.ProfileKindHostManaged
	// ProfileKindDedicated is kept as an internal compatibility alias for MCP
	// tests/callers that predate the shared vs host-managed terminology.
	ProfileKindDedicated = engine.ProfileKindHostManaged
)

Variables

This section is empty.

Functions

func RemoveHostedToolProfile

func RemoveHostedToolProfile(ctx context.Context, driverType, profileDir string) error

RemoveHostedToolProfile removes only the exact profile entry last written by the Agent-owned Tool materializer. The owner marker prevents adopting a pre-existing user entry, while rendered_fingerprint prevents deleting an entry that the user or another process changed after materialization.

func SnapshotResource

func SnapshotResource(driverType, profileDir string, payload driver.MCPPayload, synced bool) (engine.ResourceSnapshot, error)

func SupportsHostedToolProfile

func SupportsHostedToolProfile(driverType string) bool

SupportsHostedToolProfile reports whether the built-in provider has a profile materializer whose Agent-owned Tool entry can be cleaned safely. Third-party Drivers consume the normalized MCP payload directly and retain ownership of any provider-specific persistence they choose to perform.

func SyncClaudeProfile

func SyncClaudeProfile(configDir string, kind ProfileKind, payload driver.MCPPayload) error

func SyncCodeBuddyProfile

func SyncCodeBuddyProfile(configDir string, kind ProfileKind, payload driver.MCPPayload) error

func SyncCodexProfile

func SyncCodexProfile(codexHome string, kind ProfileKind, payload driver.MCPPayload) error

func SyncCursorProfile

func SyncCursorProfile(cursorHome string, kind ProfileKind, payload driver.MCPPayload) error

func SyncResource

func SyncResource(ctx context.Context, driverType, profileDir string, kind ProfileKind, payload driver.MCPPayload) (engine.ResourceSnapshot, error)

Types

type ProfileKind

type ProfileKind = engine.ProfileKind

func ClassifyProfile

func ClassifyProfile(profile driver.AgentProfile, canonicalShared string) ProfileKind

Jump to

Keyboard shortcuts

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