Help us shape the future of Go! Take the 2026 Go Developer Survey

mcp

package
v1.0.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2026 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

func NewServer

func NewServer(runtime *app.Runtime, cfg config.Config) *Server

func (*Server) AgentDockContext

func (s *Server) AgentDockContext(ctx context.Context) (app.Result, error)

func (*Server) AgentDockLocalContext added in v0.8.0

func (s *Server) AgentDockLocalContext(ctx context.Context) (map[string]any, error)

AgentDockLocalContext 为 Nexus Bridge 私有操作提供节点本地 Context, 返回结构沿用 agentdock_context 的标准工具结果 envelope。

func (*Server) HTTPHandler added in v0.6.0

func (s *Server) HTTPHandler() http.Handler

func (*Server) Invoke added in v0.8.0

func (s *Server) Invoke(ctx context.Context, name string, arguments map[string]any) (map[string]any, error)

func (*Server) ReadAppResource added in v0.8.0

func (s *Server) ReadAppResource(uri string) (map[string]any, error)

ReadAppResource exposes only AgentDock-owned MCP App resources to the Nexus bridge. Tool execution and arbitrary local resources are intentionally not routed through this path.

func (*Server) ServeStdio

func (s *Server) ServeStdio(in io.Reader, out io.Writer) error

func (*Server) ToolContractHash added in v0.8.0

func (s *Server) ToolContractHash() string

func (*Server) ToolDescriptors added in v0.8.0

func (s *Server) ToolDescriptors() []map[string]any

func (*Server) ToolNames added in v0.8.0

func (s *Server) ToolNames() []string

func (*Server) UIResources added in v0.8.0

func (s *Server) UIResources() []protocol.UIResourceCapability

UIResources returns the exact MCP App resources this server can serve through the Nexus bridge. Capability discovery is derived from the resource registry, never from tool/result UI bindings.

type ToolDefinition

type ToolDefinition = app.ToolDefinition

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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