Cloud · MODEL CONTEXT PROTOCOL
aleksandrkrivolap wordware mcp
aleksandrkrivolap wordware mcp is a community-listed Model Context Protocol server. Review the source repository before installation.
连接能力
aleksandrkrivolap wordware mcp 为 AI Agent 提供什么
- **🔄 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
- Python 3.8+
- Wordware API credentials
- Claude Desktop or other MCP-compatible client
- **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
- 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."}}`
- 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
- Event loop monitoring and recovery
- Detailed logging of all requests and responses
- Graceful handling of HTTP errors and timeouts
- Comprehensive error messages for 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
- [Anthropic](https://www.anthropic.com/) for the Model Context Protocol
- [Wordware](https://wordware.ai/) for their agent platform
- [MCP Python SDK](https://github.com/modelcontextprotocol/python-sdk) for the protocol implementation
安全
MCP 收录不等于安全审核
MCP 服务器可能获得模型上下文、凭据、本地文件或调用外部系统的权限。连接 Agent 前,请检查代码、环境变量、网络行为、软件包来源与维护状态。
README
仓库文档
A Model Context Protocol (MCP) server that integrates Wordware's powerful agent capabilities with Claude and other MCP-compatible AI assistants.
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.
- 🔄 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
- Python 3.8+
- Wordware API credentials
- Claude Desktop or other MCP-compatible client
# 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 credentialsCreate 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.
# 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"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
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."}}
The server analyzes each tool's input schema to determine the correct format:
- Detects if a tool requires parameters wrapped in a
kwargsobject - Extracts inner properties for better documentation
- Adapts the parameter format for each tool automatically
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
- 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
.envfile - 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
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.logContributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.
- Anthropic for the Model Context Protocol
- Wordware for their agent platform
- MCP Python SDK for the protocol implementation
社区