Skip to main content
Glama

getConfig

Retrieve current configuration details (excluding secrets) from the Directus MCP Server to manage collections, items, users, and system information efficiently.

Instructions

Get current configuration information (without secrets)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Handler implementation for the 'getConfig' tool. Returns sanitized configuration details including URL presence, auth method indicators, env var usage, and server args in MCP content format.
    case "getConfig": { return { content: [ { type: "text", text: JSON.stringify({ directus_url: CONFIG.DIRECTUS_URL, using_token: CONFIG.DIRECTUS_ACCESS_TOKEN ? true : false, using_email: CONFIG.DIRECTUS_EMAIL ? true : false, environment_variables: { DIRECTUS_URL: !!process.env.DIRECTUS_URL, DIRECTUS_ACCESS_TOKEN: !!process.env.DIRECTUS_ACCESS_TOKEN, DIRECTUS_EMAIL: !!process.env.DIRECTUS_EMAIL, DIRECTUS_PASSWORD: !!process.env.DIRECTUS_PASSWORD }, // List any server arguments provided server_args: serverArgs }, null, 2) } ] }; }
  • index.ts:502-510 (registration)
    Tool registration in the ListTools response, specifying name, description, and input schema (no required inputs).
    { name: "getConfig", description: "Get current configuration information (without secrets)", inputSchema: { type: "object", properties: {}, required: [] } }
  • Input schema definition for getConfig tool: empty object schema, no properties or requirements.
    inputSchema: { type: "object", properties: {}, required: [] }

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/pixelsock/directus-mcp'

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