Cover image
Try Now
2025-03-05

Servidor MCP para Sumologic

3 years

Works with Finder

1

Github Watches

1

Github Forks

2

Github Stars

MCP Sumo Logic

A Model Context Protocol (MCP) server that integrates with Sumo Logic's API to perform log searches.

Features

  • Search Sumo Logic logs using custom queries
  • Configurable time ranges for searches
  • Error handling and detailed logging
  • Docker support for easy deployment

Environment Variables

ENDPOINT=https://api.au.sumologic.com/api/v1  # Sumo Logic API endpoint
SUMO_API_ID=your_api_id                       # Sumo Logic API ID
SUMO_API_KEY=your_api_key                     # Sumo Logic API Key

Setup

  1. Clone the repository
  2. Install dependencies:
    npm install
    
  3. Create a .env file with the required environment variables
  4. Build the project:
    npm run build
    
  5. Start the server:
    npm start
    

Docker Setup

  1. Build the Docker image:

    docker build -t mcp/sumologic .
    
  2. Run the container (choose one method):

    a. Using environment variables directly:

    docker run -e ENDPOINT=your_endpoint -e SUMO_API_ID=your_api_id -e SUMO_API_KEY=your_api_key mcp/sumologic
    

    b. Using a .env file:

    docker run --env-file .env mcp/sumologic
    

    Note: Make sure your .env file contains the required environment variables:

    ENDPOINT=your_endpoint
    SUMO_API_ID=your_api_id
    SUMO_API_KEY=your_api_key
    

Usage

The server exposes a search-sumologic tool that accepts the following parameters:

  • query (required): The Sumo Logic search query
  • from (optional): Start time in ISO 8601 format
  • to (optional): End time in ISO 8601 format

Example query:

const query = '_index=app_pro_fiat_cont | json auto | fields log_identifier';
const results = await search(sumoClient, query, {
  from: '2024-02-23T00:00:00Z',
  to: '2024-02-24T00:00:00Z',
});

Error Handling

The server includes comprehensive error handling and logging:

  • API errors are caught and logged with details
  • Search job status is monitored and logged
  • Network and authentication issues are properly handled

Development

To run in development mode:

npm run dev

For testing:

npm test

相关推荐

  • NiKole Maxwell
  • I craft unique cereal names, stories, and ridiculously cute Cereal Baby images.

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • Callycode Limited
  • A geek-themed horoscope generator blending Bitcoin prices, tech jargon, and astrological whimsy.

  • ANGEL LEON
  • A world class elite tech co-founder entrepreneur, expert in software development, entrepreneurship, marketing, coaching style leadership and aligned with ambition for excellence, global market penetration and worldy perspectives.

  • https://tovuti.be
  • Oede knorrepot die vasthoudt an de goeie ouwe tied van 't boerenleven

  • Elijah Ng Shi Yi
  • Advanced software engineer GPT that excels through nailing the basics.

  • INFOLAB OPERATIONS 2
  • A medical specialist offering assistance grounded in clinical guidelines. Disclaimer: This is intended for research and is NOT safe for clinical use!

  • apappascs
  • Descubra la colección más completa y actualizada de servidores MCP en el mercado. Este repositorio sirve como un centro centralizado, que ofrece un extenso catálogo de servidores MCP de código abierto y propietarios, completos con características, enlaces de documentación y colaboradores.

  • ShrimpingIt
  • Manipulación basada en Micrypthon I2C del expansor GPIO de la serie MCP, derivada de AdaFruit_MCP230xx

  • OffchainLabs
  • Implementación de la prueba de estaca Ethereum

  • huahuayu
  • Una puerta de enlace de API unificada para integrar múltiples API de explorador de blockchain similar a Esterscan con soporte de protocolo de contexto modelo (MCP) para asistentes de IA.

  • deemkeen
  • Controle su MBOT2 con un combo de potencia: MQTT+MCP+LLM

  • zhaoyunxing92
  • 本项目是一个钉钉 MCP (Protocolo del conector de mensajes )服务 , 提供了与钉钉企业应用交互的 API 接口。项目基于 Go 语言开发 支持员工信息查询和消息发送等功能。 支持员工信息查询和消息发送等功能。

  • pontusab
  • La comunidad de cursor y windsurf, encontrar reglas y MCP

    Reviews

    4 (1)
    Avatar
    user_4M5Q1Jsw
    2025-04-16

    As a dedicated user of mcp applications, I find mcp-sumologic by samwang0723 to be an outstanding addition. It excels in providing seamless integration with Sumologic, enhancing data analysis and monitoring. The installation process is straightforward, and the documentation on the GitHub page is comprehensive. I highly recommend this tool for anyone looking to streamline their Sumologic interactions.