mcp

package
v0.0.0-...-b25a406 Latest Latest
Warning

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

Go to latest
Published: May 13, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Package mcp provides the MCP (Model Context Protocol) tool server for the helper module.

The MCP server exposes tools that the Eino ReAct agent can invoke:

  • web_search — Google Custom Search
  • web_crawler — Fetch a URL and return plain-text page content
  • chat_query — Retrieve chat history (with group membership guard)
  • chat_interact — Send a message on behalf of the system user
  • meeting_* — Schedule/cancel/list/detail meetings (Kitex Meeting service)
  • llm_query — Single-turn LLM reasoning
  • llm_summarize — Text summarisation
  • content_evaluate — Content quality/safety evaluation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ListenAndServe

func ListenAndServe(cfg config.HelperMCPConf, deps ServerDeps) error

ListenAndServe starts the MCP SSE server at the configured address.

func NewServer

func NewServer(cfg config.HelperMCPConf, deps ServerDeps) *server.SSEServer

NewServer creates and configures the MCP SSE server with all tools registered.

Types

type ServerDeps

type ServerDeps struct {
	MsgClient      messageservice.Client
	MeetingClient  meetingservice.Client
	AsynqClient    *asynq.Client
	Snowflake      *utils.Snowflake
	LLMRouter      *helperllm.Router
	GroupMembersFn func(ctx context.Context, groupID int64) ([]int64, error)
}

ServerDeps holds the external dependencies needed to register all MCP tools.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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