kubectl port-forward svc/everest 8080:8080 -n everest-system
kubectl get secret everest-accounts -n everest-system -o jsonpath='{.data.users\.yaml}' | base64 --decode
admin:
passwordHash: SOME_PASSWORD_HASH
enabled: true
capabilities:
- login
{"message":"missing or malformed jwt"}
mcp = FastMCP(
MCP_SERVER_NAME,
dependencies=deps,
)
# Initialize Everest client using config
everest_config = EverestConfig(
host=config.host,
api_key=config.api_key,
verify_ssl=config.verify_ssl,
timeout=config.timeout
)
everest_client = EverestClient(everest_config)
@mcp.tool()
def list_database_clusters(namespace: str) -> List[Dict[str, Any]]:
"""List available database clusters in the specified namespace."""
logger.info(f"Listing database clusters in namespace '{namespace}'")
try:
clusters = everest_client.list_database_clusters(namespace)
logger.info(f"Found {len(clusters)} database clusters")
return clusters
except Exception as e:
logger.error(f"Failed to list database clusters: {str(e)}")
return {"error": str(e)}
% mcp dev mcp_everest/mcp_server.py
Starting MCP inspector...
⚙️ Proxy server listening on port 6277
🔍 MCP Inspector is up and running at http://127.0.0.1:6274 🚀
# prompt = f"How many database clusters are there in the namespace 'default'?"
prompt = f"Create pxc cluster in namespace everest with 1 node and 10 GB storage, name it mcp-test"
python mcp_client.py
Okay, I will create a PXC database cluster named 'mcp-test' in the 'everest' namespace with 1 replica and 10Gi storage.