What is aleksandrkrivolap wordware mcp
Wordware MCP
A Model Context Protocol (MCP) server that integrates Wordware's powerful agent capabilities with Claude and other MCP-compatible AI assistants.
Overview
This project creates a bridge between AI assistants like Claude and Wordware's specialized agent capabilities through Anthropic's Model Context Protocol (MCP). The integration dynamically loads tools from Wordware API based on configuration, allowing Claude to access any specialized Wordware flow.
Features
- 🔄 Dynamic Tool Loading - Automatically loads tools from Wordware API based on configuration
- 🧠 Intelligent Schema Detection - Automatically detects and adapts to different tool input schemas
- 🔍 Advanced Parameter Processing - Handles various input formats (JSON, nested structures, strings)
- ⚙️ Robust Error Handling - Comprehensive error logging and event loop management
- 🔑 Simple Authentication - Easy setup to connect your Wordware account
Prerequisites
- Python 3.8+
- Wordware API credentials
- Claude Desktop or other MCP-compatible client
Installation
# Clone the repository
git clone https://github.com/yourusername/wordware-mcp.git
cd wordware-mcp
# Create a virtual environment
python -m venv venv
source venv`/bin/activate` # On Windows: venv\Scripts\activate
# Install dependencies
pip install -r requirements.txt
# Set up environment variables
cp .env.example .env
# Edit .env with your Wordware API credentials
Configuration
Create a tools_config.json
file with the following structure:
{
"tools": [
{
"id": "your-tool-id-1"
},
{
"id": "your-tool-id-2"
},
{
"id": "your-tool-id-3"
}
]
}
You can specify any Wordware tool ID in this configuration file, and the server will dynamically load and register them as MCP tools. The tool metadata, including input schema and description, will be fetched directly from the Wordware API.
To specify a custom configuration file path, use the CONFIG_PATH
environment variable.
Running the Server
# Run with default settings
python server.py
# Run with debug logging
python server.py --debug
# Run with SSE transport on a specific port
python server.py --transport sse --host 127.0.0.1 --port 8000
# Or install in Claude Desktop
mcp install python server.py --name "Wordware Tools"
How It Works
The Wordware MCP server operates as follows:
- Tool Configuration Loading - Reads the list of tool IDs from the configuration file
- Dynamic Tool Registration - For each tool ID:
- Fetches metadata from the Wordware API
- Detects input schema requirements
- Creates a corresponding MCP tool function
- Registers the tool with the MCP server
- Request Processing - When a tool is called:
- Processes input parameters in various formats (JSON objects, strings, nested structures)
- Adapts parameters format based on tool requirements
- Sends the properly formatted request to the Wordware API
- Response Handling - Processes Wordware API responses:
- Parses the Server-Sent Events (SSE) stream
- Collects all output values
- Formats the response for Claude in a user-friendly way
Advanced Features
Intelligent Parameter Handling
The server automatically handles different input parameter formats:
- Direct parameters:
{"Full Name": "John Doe", "Company": "Acme Inc."}
- JSON string in kwargs:
{"kwargs": "{\"Full Name\": \"John Doe\", \"Company\": \"Acme Inc.\"}"}
- Nested parameters:
{"kwargs": {"Full Name": "John Doe", "Company": "Acme Inc."}}
Input Schema Detection
The server analyzes each tool's input schema to determine the correct format:
- Detects if a tool requires parameters wrapped in a
kwargs
object - Extracts inner properties for better documentation
- Adapts the parameter format for each tool automatically
Error Handling and Recovery
Robust error handling includes:
- Event loop monitoring and recovery
- Detailed logging of all requests and responses
- Graceful handling of HTTP errors and timeouts
- Comprehensive error messages for troubleshooting
Troubleshooting
- Tool not showing in Claude Desktop: Ensure the server is running and properly registered in Claude Desktop settings
- Authentication errors: Check that your Wordware API key is correctly set in the
.env
file - Parameter validation errors: Verify the input format matches the tool's requirements
- Event loop errors: If you see "Event loop is closed" errors, try restarting the server
Development
To extend or modify the server:
# Run with debug logging
python server.py --debug
# Check the logs for detailed information
tail -f /path/to/your/logs/mcp.log
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Acknowledgements
- Anthropic for the Model Context Protocol
- Wordware for their agent platform
- MCP Python SDK for the protocol implementation
Leave a Comment
Frequently Asked Questions
What is MCP?
MCP (Model Context Protocol) is an open protocol that standardizes how applications provide context to LLMs. Think of MCP like a USB-C port for AI applications, providing a standardized way to connect AI models to different data sources and tools.
What are MCP Servers?
MCP Servers are lightweight programs that expose specific capabilities through the standardized Model Context Protocol. They act as bridges between LLMs like Claude and various data sources or services, allowing secure access to files, databases, APIs, and other resources.
How do MCP Servers work?
MCP Servers follow a client-server architecture where a host application (like Claude Desktop) connects to multiple servers. Each server provides specific functionality through standardized endpoints and protocols, enabling Claude to access data and perform actions through the standardized protocol.
Are MCP Servers secure?
Yes, MCP Servers are designed with security in mind. They run locally with explicit configuration and permissions, require user approval for actions, and include built-in security features to prevent unauthorized access and ensure data privacy.
Related MCP Servers
chrisdoc hevy mcp
sylphlab pdf reader mcp
An MCP server built with Node.js/TypeScript that allows AI agents to securely read PDF files (local or URL) and extract text, metadata, or page counts. Uses pdf-parse.
aashari mcp server atlassian bitbucket
Node.js/TypeScript MCP server for Atlassian Bitbucket. Enables AI systems (LLMs) to interact with workspaces, repositories, and pull requests via tools (list, get, comment, search). Connects AI directly to version control workflows through the standard MCP interface.
aashari mcp server atlassian confluence
Node.js/TypeScript MCP server for Atlassian Confluence. Provides tools enabling AI systems (LLMs) to list/get spaces & pages (content formatted as Markdown) and search via CQL. Connects AI seamlessly to Confluence knowledge bases using the standard MCP interface.
prisma prisma
Next-generation ORM for Node.js & TypeScript | PostgreSQL, MySQL, MariaDB, SQL Server, SQLite, MongoDB and CockroachDB
Zzzccs123 mcp sentry
mcp sentry for typescript sdk
zhuzhoulin dify mcp server
zhongmingyuan mcp my mac
zhixiaoqiang desktop image manager mcp
MCP 服务器,用于管理桌面图片、查看详情、压缩、移动等(完全让Trae实现)
zhixiaoqiang antd components mcp
An MCP service for Ant Design components query | 一个减少 Ant Design 组件代码生成幻觉的 MCP 服务,包含系统提示词、组件文档、API 文档、代码示例和更新日志查询
Submit Your MCP Server
Share your MCP server with the community
Submit Now