get_environment_config
Retrieve current environment configuration and settings for the Documentation Search MCP Server to access programming documentation from official sources.
Instructions
Get current environment configuration and settings.
Returns:
Current environment configuration details
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- The primary handler function for the MCP tool 'get_environment_config'. Decorated with @mcp.tool() for automatic registration. Fetches merged configuration from the global config_manager instance and constructs a response dictionary with environment details, server config, cache settings, rate limiting, features, and available libraries.async def get_environment_config(): """ Get current environment configuration and settings. Returns: Current environment configuration details """ from .config_manager import config_manager config = config_manager.get_config() return { "environment": config_manager.environment, "server_config": { "logging_level": config["server_config"]["logging_level"], "max_concurrent_requests": config["server_config"][ "max_concurrent_requests" ], "request_timeout_seconds": config["server_config"][ "request_timeout_seconds" ], }, "cache_config": { "enabled": config["cache"]["enabled"], "ttl_hours": config["cache"]["ttl_hours"], "max_entries": config["cache"]["max_entries"], }, "rate_limiting": { "enabled": config["rate_limiting"]["enabled"], "requests_per_minute": config["rate_limiting"]["requests_per_minute"], }, "features": config["server_config"]["features"], "total_libraries": len(config_manager.get_docs_urls()), "available_libraries": list(config_manager.get_docs_urls().keys())[ :10 ], # Show first 10 }