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
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- index.ts:526-547 (handler)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: [] } }
- index.ts:505-509 (schema)Input schema definition for getConfig tool: empty object schema, no properties or requirements.inputSchema: { type: "object", properties: {}, required: [] }