get_global_config
Retrieve global configuration settings for Kafka Schema Registry. Designed for backward compatibility, use 'registry://{name}/config' for improved performance.
Instructions
Get global configuration settings.
NOTE: This tool is maintained for backward compatibility. Consider using the 'registry://{name}/config' resource instead for better performance.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| context | No | ||
| registry | No |
Implementation Reference
- schema_registry_common.py:460-471 (handler)Core handler logic that fetches global configuration from Schema Registry API (/config or /contexts/{context}/config). Used by MCP tools.def get_global_config(self, context: Optional[str] = None) -> Dict[str, Any]: """Get global configuration settings.""" try: url = self.build_context_url("/config", context) response = self.session.get(url, auth=self.auth, headers=self.standard_headers) response.raise_for_status() result = response.json() result["registry"] = self.config.name return result except Exception as e: return {"error": str(e)}
- schema_definitions.py:401-425 (schema)JSON Schema (CONFIG_SCHEMA) defining the output structure for get_global_config tool, including compatibility level and metadata.CONFIG_SCHEMA = { "type": "object", "properties": { "compatibility": { "type": "string", "enum": [ "BACKWARD", "FORWARD", "FULL", "NONE", "BACKWARD_TRANSITIVE", "FORWARD_TRANSITIVE", "FULL_TRANSITIVE", ], "description": "Compatibility level", }, "registry": { "type": "string", "description": "Registry name (multi-registry mode)", }, **METADATA_FIELDS, }, "required": ["compatibility"], "additionalProperties": True, }
- schema_definitions.py:928-928 (registration)Registration of output schema for get_global_config tool in master TOOL_OUTPUT_SCHEMAS registry."get_global_config": CONFIG_SCHEMA,
- task_management.py:115-118 (registration)Operation metadata registration classifying get_global_config as quick/direct (no async task queue)."get_global_config": { "duration": OperationDuration.QUICK, "pattern": AsyncPattern.DIRECT, },