mcp

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2026 License: MIT Imports: 6 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
}

Server represents the LDAP MCP server

func NewServer

func NewServer(ldapConfig *ldap.Config) (*Server, error)

NewServer creates a new LDAP MCP server with default configurations

func NewServerWithConfigs

func NewServerWithConfigs(
	ldapConfig *ldap.Config,
	poolConfig ldap.PoolConfig,
	cacheConfig ldap.CacheConfig,
	rateLimitConfig ldap.RateLimitConfig,
) (*Server, error)

NewServerWithConfigs creates a new LDAP MCP server with custom configurations

func (*Server) Close

func (s *Server) Close() error

Close closes the server and LDAP connection

func (*Server) GetMCPServer

func (s *Server) GetMCPServer() *mcp.Server

GetMCPServer returns the underlying MCP server instance

func (*Server) RegisterTools

func (s *Server) RegisterTools()

RegisterTools registers all LDAP MCP tools

func (*Server) Run

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

Run starts the MCP server using stdio transport

Jump to

Keyboard shortcuts

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