Skip to main content
Glama

Cocos MCP Log Bridge

by czh2774
config.py806 B
""" Configuration settings for the Cocos MCP Server. This file contains all configurable parameters for the server. """ from dataclasses import dataclass @dataclass class ServerConfig: """Main configuration class for the MCP server.""" # Cocos Creator connection settings cocos_host: str = "::1" # 使用IPv6地址 cocos_port: int = 6400 # Connection settings connection_timeout: float = 5.0 # 5 seconds timeout buffer_size: int = 8192 # 8KB buffer size # Logging settings log_level: str = "INFO" log_format: str = "%(asctime)s - %(name)s - %(levelname)s - %(message)s" log_file: str = "cocos_mcp.log" # Server settings max_retries: int = 3 retry_delay: float = 1.0 # Create a global config instance config = ServerConfig()

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/czh2774/cocosMCP'

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