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

mcp

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2026 License: Apache-2.0 Imports: 19 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) ReadArtifactChunk added in v0.8.1

func (s *Server) ReadArtifactChunk(artifactID string, offset int64, maxBytes int) (map[string]any, error)

ReadArtifactChunk serves the private Bridge operation used by NexusDock's signed download proxy. It is not exposed as an MCP tool.

func (*Server) RuntimeCapabilities

func (s *Server) RuntimeCapabilities(ctx context.Context, refresh bool) (app.Result, error)

func (*Server) RuntimeEvolve added in v0.7.6

func (s *Server) RuntimeEvolve(ctx context.Context, args map[string]any) (app.Result, error)

func (*Server) RuntimeMCPManage

func (s *Server) RuntimeMCPManage(ctx context.Context, args map[string]any) (app.Result, error)

func (*Server) RuntimeMCPServer

func (s *Server) RuntimeMCPServer(ctx context.Context, name string) (app.Result, error)

func (*Server) RuntimeMCPServers

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

func (*Server) RuntimeSkill

func (s *Server) RuntimeSkill(skill string) (app.Result, error)

func (*Server) RuntimeSkillFile added in v0.5.3

func (s *Server) RuntimeSkillFile(skill, path string) (app.Result, error)

func (*Server) RuntimeSkillFiles added in v0.5.3

func (s *Server) RuntimeSkillFiles(skill string) (app.Result, error)

func (*Server) RuntimeSkills

func (s *Server) RuntimeSkills() (app.Result, error)

func (*Server) RuntimeStatus

func (s *Server) RuntimeStatus() app.Result

func (*Server) RuntimeTask

func (s *Server) RuntimeTask(id string) (app.Result, error)

func (*Server) RuntimeTaskDelete

func (s *Server) RuntimeTaskDelete(id string) (app.Result, error)

func (*Server) RuntimeTasks

func (s *Server) RuntimeTasks(status string, limit int) (app.Result, error)

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