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
pip install aliyun-mcp-tools-xiaolin-20260130
Usage
Basic Usage
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
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 processoperation: 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
python -m build
Upload to PyPI
python -m twine upload dist/*
License
MIT License
Metadata
Release files for aliyun-mcp-tools-xiaolin-20260130 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| aliyun_mcp_tools_xiaolin_20260130-0.1.0.tar.gz | 4.1 kB | Without provenance | Details |
Release files / aliyun_mcp_tools_xiaolin_20260130-0.1.0.tar.gz
| Download URL | aliyun_mcp_tools_xiaolin_20260130-0.1.0.tar.gz |
|---|---|
| Size | 4.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d5960bfa1d6a113dcd34add3a9f30c0effe7e2047d2ec6f253dece293d416e15
|
|
BLAKE2b-256 checksum How to use checksums |
11c9425e8309505cc67bb99ab8cf9698431eb0d761fa486cd0bf3dee7e043a7a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.7
|
Security for aliyun-mcp-tools-xiaolin-20260130 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.