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
- python => 3.8
- 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
- slack_list_channels: List channels in the workspace
- slack_post_message: Post a message to a Slack channel
- slack_add_reaction: Add a reaction to a message
- 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
Release history Release notifications | RSS feed
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file securaops_mcp_marketplace-0.1.0.post4-py3-none-any.whl.
File metadata
- Download URL: securaops_mcp_marketplace-0.1.0.post4-py3-none-any.whl
- Upload date:
- Size: 866.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b040720566c2d747a09991c8a7e14891cd7a5533bdf877b6c31f9a48c607799d
|
|
| MD5 |
99a5815aec0f2fdf8897b7df4215256e
|
|
| BLAKE2b-256 |
b1f0932f01c5f82ed6955a0be9cb4d9717e3664311c35c4faef6f35ec2a592a0
|