Skip to main content

A marketplace for MCP (Model Context Protocol) connectors

Project description

SecuraOps MCP Marketplace

A Python SDK for MCP (Model Context Protocol) connectors.

Installation

pip install securaops-mcp-marketplace

Minimum requirements

  1. python => 3.8
  2. An API_KEY generated on SecuraOps MCP Marketplace platform available on your profile management.

Documentation

Full documentation available on https://mcp.securaops.tech

Slack Integration

Tools available

  1. slack_list_channels: List channels in the workspace
  2. slack_post_message: Post a message to a Slack channel
  3. slack_add_reaction: Add a reaction to a message
  4. slack_test_connection: Test if the Slack connection is working

Example code

import asyncio
import os
from dotenv import load_dotenv
from securaops_mcp_marketplace import SlackConnector

load_dotenv()

API_KEY = os.environ.get("API_KEY","your securaps mcp api key")
BOT_TOKEN = os.environ.get("BOT_TOKEN","xoxb-your-slack-bot-token")   
TEAM_ID = os.environ.get("TEAM_ID","T1234567890")
CHANNEL_ID= os.environ.get("CHANNEL_ID","C1234567890")  # Replace with your test channel ID

async def main():
    async with SlackConnector(
        api_key=API_KEY,
        bot_token=BOT_TOKEN,
        team_id=TEAM_ID
    ) as connector:

        print("BOT TOKEN:", BOT_TOKEN)

        # Initialize the connector
        init_result = await connector.handle_initialize()
        print(f"Initialization: {init_result['success']}")
            
        # List available tools
        tools_result = await connector.handle_tools_list()
        print(f"Available tools: {[tool['name'] for tool in tools_result['data']['tools']]}")
            
        # Send a message
        message_result = await connector.handle_tools_call(
            "slack_post_message",
            {"channel_id": CHANNEL_ID, "text": "Hello from MCP Slack Connector test script!"}
        )
        print(f"Message result: {message_result}")
        print(f"Message sent: {message_result['success']}")

# Run the async function
asyncio.run(main())

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

securaops_mcp_marketplace-0.1.0.post4-py3-none-any.whl (866.8 kB view details)

Uploaded Python 3

File details

Details for the file securaops_mcp_marketplace-0.1.0.post4-py3-none-any.whl.

File metadata

File hashes

Hashes for securaops_mcp_marketplace-0.1.0.post4-py3-none-any.whl
Algorithm Hash digest
SHA256 b040720566c2d747a09991c8a7e14891cd7a5533bdf877b6c31f9a48c607799d
MD5 99a5815aec0f2fdf8897b7df4215256e
BLAKE2b-256 b1f0932f01c5f82ed6955a0be9cb4d9717e3664311c35c4faef6f35ec2a592a0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page