Metadata-Version: 2.4
Name: aliyun-mcp-tools-xiaolin-20260130
Version: 0.1.0
Summary: Basic MCP tools package for Aliyun, without system control or Bafayun functionality
Author-email: Xiaolin Developer <developer@example.com>
License: MIT License
        
        Copyright (c) 2026 Xiaolin Developer
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
        
Project-URL: Homepage, https://github.com/example/aliyun-mcp-tools-xiaolin
Project-URL: Repository, https://github.com/example/aliyun-mcp-tools-xiaolin
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Intended Audience :: Developers
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: mcp
Dynamic: license-file

# Aliyun MCP Tools Xiaolin

Basic MCP tools package for Aliyun, without system control or Bafayun functionality.

## Features

- **calculator**: Math calculation tool
- **get_current_time**: Get current system time
- **process_text**: Text processing tool with various operations

## Installation

```bash
pip install aliyun-mcp-tools-xiaolin-20260130
```

## Usage

### Basic Usage

```python
from aliyun_mcp_tools import calculator, get_current_time, process_text

# Calculate math expression
result = calculator("2 + 2 * 3")
print(result)  # Output: {"success": true, "result": 8}

# Get current time
current_time = get_current_time()
print(current_time)  # Output: {"success": true, "time": "2026-01-30 12:00:00"}

# Process text
text_result = process_text("hello world", "uppercase")
print(text_result)  # Output: {"success": true, "result": "HELLO WORLD"}
```

### Aliyun MCP Integration

```python
from mcp.server.mcpserver import MCPServer
from aliyun_mcp_tools import calculator, get_current_time, process_text

# Create MCP server
mcp = MCPServer("Aliyun Tools Server")

# Register tools
@mcp.tool()
def calculate(expression: str) -> dict:
    """Calculate math expression"""
    return calculator(expression)

@mcp.tool()
def get_time() -> dict:
    """Get current time"""
    return get_current_time()

@mcp.tool()
def text_process(text: str, operation: str) -> dict:
    """Process text with specified operation"""
    return process_text(text, operation)

# Run server
mcp.run(transport="stdio")
```

## Tools

### calculator
Calculates Python math expressions.

**Parameters:**
- `python_expression`: Python expression to evaluate

**Returns:**
- `{"success": true, "result": <calculated value>}` on success
- `{"success": false, "error": <error message>}` on failure

### get_current_time
Gets the current system time.

**Returns:**
- `{"success": true, "time": "YYYY-MM-DD HH:MM:SS"}` on success
- `{"success": false, "error": <error message>}` on failure

### process_text
Processes text with various operations.

**Parameters:**
- `text`: Text to process
- `operation`: Operation type ("uppercase", "lowercase", "capitalize", "count_words")

**Returns:**
- `{"success": true, "result": <processed text or word count>}` on success
- `{"success": false, "error": <error message>}` on failure

## Development

### Build the package

```bash
python -m build
```

### Upload to PyPI

```bash
python -m twine upload dist/*
```

## License

MIT License
