Skip to main content
Glama

DolphinScheduler MCP Server

by ocean-zhc
test_create_project.py956 B
import asyncio import os from src.dolphinscheduler_mcp.client import DolphinSchedulerClient async def test_create_project(): # Create a client with environment variables client = DolphinSchedulerClient( api_url=os.environ.get("DOLPHINSCHEDULER_API_URL"), api_key=os.environ.get("DOLPHINSCHEDULER_API_KEY") ) try: # Call the create_project method project_name = "mcp-demo1" description = "MCP Demo Project" print(f"Creating project {project_name}...") response = await client.request( "POST", "projects", params={ "projectName": project_name, "description": description } ) print("Response:") print(response) finally: # Close the client await client.close() if __name__ == "__main__": asyncio.run(test_create_project())

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/ocean-zhc/dolphinscheduler-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server