mcpserver

package
v0.0.18 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package mcpserver exposes the Telegram account as MCP tools over stdio.

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
}

Server wraps an MCP server bound to a Telegram client.

func New

func New(client *telegram.Client) *Server

New creates an MCP server exposing the Telegram client as tools.

func (*Server) Run

func (s *Server) Run(ctx context.Context) error

Run serves the MCP protocol over stdio until the client disconnects or the context is canceled.

Jump to

Keyboard shortcuts

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