"""
Simple script to show notebooks from Databricks
"""
import asyncio
import json
import sys
from src.api import notebooks
async def show_all_notebooks():
"""Show all notebooks in the Databricks workspace."""
print("Fetching notebooks from Databricks...")
try:
result = await notebooks.list_notebooks(path="/")
print("\nNotebooks found:")
print(json.dumps(result, indent=2))
return result
except Exception as e:
print(f"Error listing notebooks: {e}")
return None
if __name__ == "__main__":
asyncio.run(show_all_notebooks())
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/JustTryAI/databricks-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server