Skip to main content
Glama

get_config

Retrieve the current merged server configuration to view active context and operational mode settings.

Instructions

Get the current merged server configuration, including active context and mode.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler for the 'get_config' tool, which retrieves the server configuration using the provided 'getConfig' function.
    {
      name: "get_config",
      description:
        "Get the current merged server configuration, including active context and mode.",
      schema: {},
      handler: async () => {
        return makeTextResponse(getConfig());
      },
    },
  • Registration of 'get_config' tool inside the GodetteMcpServer class by invoking createConfigTools.
    // Config tools
    for (const tool of createConfigTools(
      () => this.config,
      (mode) => {
        this.switchMode(mode);
      },
    )) {
      this.toolRegistry.register(tool);
    }

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/woohq/godette-mcp'

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