How monitoringartist/logicmonitor-mcp-server works
LogicMonitor MCP Server exposes LogicMonitor operations to AI assistants through STDIO, SSE, or HTTP. The main workflow is an assistant request handled by the MCP server, dispatched to a tool handler, translated into LogicMonitor REST calls, and returned as a result. The server also provides prompts and resources, while configuration, authentication, authorization, filtering, batching, and rate limiting support the runtime. Transport modes and product capabilities are documented in the README; links between unsampled modules are included only where the source index or excerpts show them.
Main entry points: server.ts MCP server · handlers.ts Tool handlers · client.ts REST API client · cli-config.ts CLI configuration
Components 20
MCP entry points
- STDIO transport
src/servers/stdio.ts - SSE transport
src/servers/sse.ts - HTTP transport
src/servers/streamable-http.ts - MCP server
src/servers/server.ts
MCP capabilities
- Tool catalog
src/api/tools.ts - Operation prompts
src/api/prompts.ts - MCP resources
src/api/resources.ts
LogicMonitor operations
- Tool handlers
src/api/handlers.ts - REST API client
src/api/client.ts
Configuration and security
- CLI configuration
src/utils/core/cli-config.ts - OAuth strategies
src/utils/core/oauth-strategy.ts - JWT validation
src/utils/core/jwt-validator.ts - Scope authorization
src/utils/core/scope-manager.ts - Token refresh
src/utils/core/token-refresh.ts
Request utilities
- Filter formatting
src/utils/helpers/filters.ts - Batch processing
src/utils/helpers/batch-processor.ts - Rate limiting
src/utils/core/rate-limiter.ts - MCP errors
src/utils/core/error-handler.ts
Other components
- AI assistant
- LogicMonitor API
Connections 22
- AI assistant → STDIO transport: sends requests
README.md - AI assistant → SSE transport: sends requests
README.md - AI assistant → HTTP transport: sends requests
README.md - STDIO transport → MCP server: serves MCP
src/servers/stdio.ts - SSE transport → MCP server: serves MCP
src/servers/index.ts - HTTP transport → MCP server: serves MCP
README.md - MCP server → Tool catalog: registers tools
src/servers/index.ts - MCP server → Tool handlers: dispatches requests
src/servers/server.ts - MCP server → Operation prompts: serves prompts
src/servers/server.ts - MCP server → MCP resources: reads resources
src/servers/server.ts - Tool handlers → REST API client: calls operations
src/api/handlers.ts - REST API client → LogicMonitor API: sends REST requests
src/api/client.ts - Tool handlers → Filter formatting: formats filters
src/api/handlers.ts - Tool handlers → Batch processing: uses batching
src/api/handlers.ts - Batch processing → Rate limiting: retries requests
src/utils/helpers/batch-processor.ts - REST API client → Rate limiting: limits requests
src/api/client.ts - Tool handlers → MCP errors: raises errors
src/api/handlers.ts - CLI configuration → MCP server: configures runtime
src/servers/index.ts - CLI configuration → OAuth strategies: configures OAuth
src/utils/core/oauth-strategy.ts - MCP server → JWT validation: validates tokens
src/servers/index.ts - MCP server → Scope authorization: checks scopes
src/servers/index.ts - MCP server → Token refresh: refreshes tokens
src/servers/index.ts