integrations

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2026 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Overview

Package integrations provides authenticated development-time access to an agent's bound connections, exec endpoints, and MCP servers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backend

Backend executes already-authorized operations through Airlock's existing credential and SSH brokers.

type ConnectionResult

type ConnectionResult struct {
	StatusCode int
	Headers    map[string][]string
	Body       []byte
}

type ExecResult

type ExecResult struct {
	Stdout     []byte
	Stderr     []byte
	ExitCode   int
	DurationMs int64
}

type Info

type Info struct {
	Type        string
	Slug        string
	Description string
	Configured  bool
}

type MCPTools

type MCPTools struct {
	Tools        []wire.MCPToolSchema
	Instructions string
}

type Service

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

func New

func New(database *db.DB, backend Backend) *Service

func (*Service) CallMCPTool

func (s *Service) CallMCPTool(ctx context.Context, p authz.Principal, agentID uuid.UUID, slug string, req wire.MCPToolCallRequest) (wire.MCPToolCallResponse, error)

func (*Service) List

func (s *Service) List(ctx context.Context, p authz.Principal, agentID uuid.UUID) ([]Info, error)

func (*Service) ListMCPTools

func (s *Service) ListMCPTools(ctx context.Context, p authz.Principal, agentID uuid.UUID, slug string) (MCPTools, error)

func (*Service) RequestConnection

func (s *Service) RequestConnection(ctx context.Context, p authz.Principal, agentID uuid.UUID, slug string, req wire.ProxyRequest) (ConnectionResult, error)

func (*Service) RunExec

func (s *Service) RunExec(ctx context.Context, p authz.Principal, agentID uuid.UUID, slug string, req wire.ExecRequest) (ExecResult, error)

Jump to

Keyboard shortcuts

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