MCP cover image
See in Github
2025-02-04

2

Github Watches

1

Github Forks

0

Github Stars

MCP Opsbeacon Server

An MCP (Model Context Protocol) server implementation for Opsbeacon operations. This server allows you to interact with the Opsbeacon API through Claude, providing tools for listing commands and connections.

Features

  • List available Opsbeacon commands
  • List available Opsbeacon connections
  • Authentication via bearer token
  • Error handling and logging
  • Returns structured JSON responses

Prerequisites

  • Python 3.10 or higher
  • Access to Opsbeacon API
  • Valid bearer token

Installation

  1. Clone the repository:
git clone [repository-url]
cd mcp-opsbeacon-server
  1. Install the package:
pip install -e .

Configuration

There are three ways to provide your Opsbeacon configuration:

Option 1: Using with Claude Desktop

If you want to use the MCP server with Claude, add the required configuration to Claude Desktop's config file:

{
  "mcpServers": {
    "opsbeacon": {
      "command": "python",
      "args": [
        "-m",
        "mcp_opsbeacon_server"
      ],
      "env": {
        "OPSBEACON_TOKEN": "your-bearer-token-here",
        "OPSBEACON_BASE_URL": "your-base-url-here"
      }
    }
  }
}

Option 2: Using Environment Variables

You can set the required environment variables directly:

export OPSBEACON_TOKEN="your-bearer-token-here"
export OPSBEACON_BASE_URL="your-base-url-here"

Option 3: Using .env File (Recommended for Development)

Create a .env file in the project root directory. You can use the provided template:

cp .env.example .env

Then edit the .env file with your actual values:

OPSBEACON_TOKEN=your-bearer-token-here
OPSBEACON_BASE_URL=your-base-url-here  # Optional, defaults to https://api.console.opsbeacon.com

The .env file is ignored by git to prevent committing sensitive information.

Base URL Configuration

The OPSBEACON_BASE_URL configuration is optional. If not specified, the server will use the default URL:

https://api.console.opsbeacon.com

You can override this default by setting the OPSBEACON_BASE_URL through any of the configuration methods described above.

Configuration Precedence

You can use any of these options simultaneously. When multiple options are used, the precedence is:

  1. Environment variables
  2. .env file
  3. Claude config
  4. Default base URL

Testing

To test the server functionality, ensure you have configured the required variables using any of the methods above (the .env file is recommended for development), then run:

python test_server.py

Usage

Available Tools

  1. list_commands

    • Lists all available Opsbeacon commands
    • No additional parameters required
    • Returns command details in JSON format
  2. list_connections

    • Lists all available Opsbeacon connections
    • No additional parameters required
    • Returns connection details in JSON format

Example Usage with Claude

Human: List all available Opsbeacon commands.
Claude: Let me help you list the available commands using the Opsbeacon MCP server.

Error Handling

Common error cases:

  1. OPSBEACON_TOKEN environment variable is not set: Make sure the token is properly configured in claude_desktop_config.json
  2. Error listing commands/connections: Check your network connection and token validity
  3. Connection refused: Make sure the Opsbeacon API is accessible

Development

To add new features or modify existing ones:

  1. Make your changes
  2. Run the test script to verify functionality
  3. Update documentation as needed

相关推荐

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

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

  • Yusuf Emre Yeşilyurt
  • I find academic articles and books for research and literature reviews.

  • https://maiplestudio.com
  • Find Exhibitors, Speakers and more

  • Carlos Ferrin
  • Encuentra películas y series en plataformas de streaming.

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

  • https://jgadvisorycpa.com
  • This GPT assists in finding a top-rated business CPA - local or virtual. We account for their qualifications, experience, testimonials and reviews. Business operators provide a short description of your business, services wanted, and city or state.

  • Contraband Interactive
  • Emulating Dr. Jordan B. Peterson's style in providing life advice and insights.

  • rustassistant.com
  • Your go-to expert in the Rust ecosystem, specializing in precise code interpretation, up-to-date crate version checking, and in-depth source code analysis. I offer accurate, context-aware insights for all your Rust programming questions.

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

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

  • apappascs
  • Découvrez la collection la plus complète et la plus à jour de serveurs MCP sur le marché. Ce référentiel sert de centre centralisé, offrant un vaste catalogue de serveurs MCP open-source et propriétaires, avec des fonctionnalités, des liens de documentation et des contributeurs.

  • modelcontextprotocol
  • Serveurs de protocole de contexte modèle

  • Mintplex-Labs
  • L'application tout-en-un desktop et Docker AI avec chiffon intégré, agents AI, constructeur d'agent sans code, compatibilité MCP, etc.

  • ShrimpingIt
  • Manipulation basée sur Micropython I2C de l'exposition GPIO de la série MCP, dérivée d'Adafruit_MCP230XX

  • OffchainLabs
  • Aller la mise en œuvre de la preuve de la participation Ethereum

  • n8n-io
  • Plateforme d'automatisation de workflow à code équitable avec des capacités d'IA natives. Combinez le bâtiment visuel avec du code personnalisé, de l'auto-hôte ou du cloud, 400+ intégrations.

  • huahuayu
  • Une passerelle API unifiée pour intégrer plusieurs API d'explorateur de blockchain de type étherscan avec la prise en charge du protocole de contexte modèle (MCP) pour les assistants d'IA.

    Reviews

    4 (1)
    Avatar
    user_6YscKkZZ
    2025-04-18

    As a dedicated user of the mcp-opsbeacon-server, I am thoroughly impressed with its robust performance and efficiency. Its seamless integration and ease of use make managing operations a breeze. The documentation provided by OpsBeaconInc is comprehensive and very helpful for quick setup. Highly recommended for anyone looking to streamline their server operations!