get_server_configuration_status
Check server status and configuration remotely without establishing a connection. Verify if the Couchbase MCP Server is operational and validate its setup.
Instructions
Get the server status and configuration without establishing connection. This tool can be used to verify if the server is running and check the configuration.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/server.py:22-49 (handler)The core handler function for the 'get_server_configuration_status' tool. Retrieves configuration settings, sanitizes sensitive info, checks app context for cluster connection, and returns structured status dictionary.def get_server_configuration_status(ctx: Context) -> dict[str, Any]: """Get the server status and configuration without establishing connection. This tool can be used to verify if the server is running and check the configuration. """ settings = get_settings() # Don't expose sensitive information like passwords configuration = { "connection_string": settings.get("connection_string", "Not set"), "username": settings.get("username", "Not set"), "read_only_query_mode": settings.get("read_only_query_mode", True), "password_configured": bool(settings.get("password")), "ca_cert_path_configured": bool(settings.get("ca_cert_path")), "client_cert_path_configured": bool(settings.get("client_cert_path")), "client_key_path_configured": bool(settings.get("client_key_path")), } app_context = ctx.request_context.lifespan_context connection_status = { "cluster_connected": app_context.cluster is not None, } return { "server_name": MCP_SERVER_NAME, "status": "running", "configuration": configuration, "connections": connection_status, }
- src/mcp_server.py:175-178 (registration)Registers the 'get_server_configuration_status' tool (along with others from ALL_TOOLS) to the FastMCP server instance using add_tool.# Register all tools for tool in ALL_TOOLS: mcp.add_tool(tool)
- src/tools/__init__.py:24-32 (registration)Imports the get_server_configuration_status handler from server.py into the tools.__init__.py for package-level exposure.from .server import ( get_buckets_in_cluster, get_cluster_health_and_services, get_collections_in_scope, get_scopes_and_collections_in_bucket, get_scopes_in_bucket, get_server_configuration_status, test_cluster_connection, )
- src/tools/__init__.py:37-37 (registration)Includes the get_server_configuration_status tool in the ALL_TOOLS list used for bulk registration.get_server_configuration_status,