get_current_config
View the active configuration to use as a template for customizing documentation search settings.
Instructions
Returns the current, active configuration of the MCP server. This allows users to view the default config and use it as a template for local overrides.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- The main handler function for the 'get_current_config' tool. It returns the global 'config' dictionary which holds the active MCP server configuration loaded at startup.async def get_current_config(): """ Returns the current, active configuration of the MCP server. This allows users to view the default config and use it as a template for local overrides. """ try: # The `config` global is a dictionary created from the Pydantic model # at startup, so it represents the active configuration. return config except Exception as e: return {"error": f"Could not retrieve configuration: {str(e)}"}
- src/documentation_search_enhanced/main.py:1766-1766 (registration)The @mcp.tool() decorator registers the get_current_config function as an MCP tool.async def get_current_config():