Documentation
¶
Overview ¶
Package remote hosts a shared registry and relays tap's static MCP surface.
Index ¶
- func Handler(path, version, token, adminToken string) (http.Handler, func(), error)
- func Serve(ctx context.Context, path, version string, opts Options) error
- type Client
- func (c *Client) Call(ctx context.Context, id string, args any, quiet bool) (wire.Object, error)
- func (c *Client) CallWithMeta(ctx context.Context, id string, args any, quiet bool, meta mcp.Meta) (wire.Object, error)
- func (c *Client) CallWithOptions(ctx context.Context, id string, args any, quiet, retain bool, ...) (wire.Object, error)
- func (c *Client) Close()
- func (c *Client) Discover(ctx context.Context, opt registry.SearchOptions, quiet bool) (wire.Object, error)
- func (c *Client) Drop(ctx context.Context, id string) (wire.Object, error)
- func (c *Client) Edit(ctx context.Context, name string, definition wire.Object) (bool, error)
- func (c *Client) Inspect(ctx context.Context, id, pointer string, offset, limit, maxBytes int) (wire.Object, error)
- func (c *Client) Listing(ctx context.Context, quiet bool) (wire.Object, error)
- func (c *Client) Refresh(ctx context.Context, name string, quiet bool) (wire.Object, error)
- func (c *Client) Search(ctx context.Context, query string, limit float64, quiet bool) (wire.Object, error)
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client shares one remote MCP session and reconnects after it closes.
func (*Client) CallWithMeta ¶
func (c *Client) CallWithMeta(ctx context.Context, id string, args any, quiet bool, meta mcp.Meta) (wire.Object, error)
CallWithMeta preserves request metadata across the stdio relay hop.
func (*Client) CallWithOptions ¶
func (c *Client) CallWithOptions(ctx context.Context, id string, args any, quiet, retain bool, refs []registry.ArgumentReference, meta mcp.Meta) (wire.Object, error)
CallWithOptions forwards validated call controls and explicit references over one relay session.
func (*Client) Close ¶
func (c *Client) Close()
Close shuts down the relay session and prevents reconnects.
func (*Client) Discover ¶
func (c *Client) Discover(ctx context.Context, opt registry.SearchOptions, quiet bool) (wire.Object, error)
Discover forwards the complete discovery request without opening local connectors.
func (*Client) Edit ¶
Edit performs remote administration; an optional admin environment token overrides the relay token.
func (*Client) Inspect ¶
func (c *Client) Inspect(ctx context.Context, id, pointer string, offset, limit, maxBytes int) (wire.Object, error)
Inspect reads a reference created on this relay's remote MCP session.
Click to show internal directories.
Click to hide internal directories.