Skip to main content
Glama
whyjp

Encoding MCP Server

get_system_info

Retrieve system information about available libraries and supported encodings to ensure compatibility with Windows build environments and prevent character encoding issues.

Instructions

Check Encoding MCP system information. Shows available libraries and supported encodings.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The main handler function that gathers and formats system information about available encoding detection methods, recommended libraries, and supported encodings.
    def get_system_info() -> str: """ Return system information. """ detection_methods = get_available_detection_methods() supported_encodings = list_supported_encodings() info_text = "šŸ”§ Encoding MCP v2.0.1 System Information\n\n" # Detection methods info_text += "šŸ“Š Available encoding detection methods:\n" for method, available in detection_methods.items(): status = "āœ…" if available else "āŒ" info_text += f" {status} {method}\n" info_text += f"\nšŸ“š Recommended libraries:\n{get_recommended_libraries()}\n\n" # Supported encodings info_text += "šŸŽÆ Supported encodings:\n" for encoding, info in supported_encodings.items(): windows_icon = "🪟" if info['windows_friendly'] else "🐧" info_text += f" {windows_icon} {encoding}: {info['name']}\n" return info_text
  • The input schema definition for the get_system_info tool, which takes no parameters.
    Tool( name="get_system_info", description="Check Encoding MCP system information. Shows available libraries and supported encodings.", inputSchema={ "type": "object", "properties": {}, "required": [] } )
  • The registration and dispatch logic in the @app.call_tool() handler that calls the get_system_info function and formats the response as MCP TextContent.
    elif name == "get_system_info": system_info = get_system_info() return [ types.TextContent( type="text", text=system_info ) ]

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/whyjp/encoding_mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server