Skip to main content
Glama
gemini2026

Documentation Search MCP Server

by gemini2026

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
NameRequiredDescriptionDefault

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)}"}
  • The @mcp.tool() decorator registers the get_current_config function as an MCP tool.
    async def get_current_config():

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/gemini2026/documentation-search-mcp'

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