Skip to main content

Function: mcpServer()

Function: mcpServer()

function mcpServer(name: string, url: string): CustomMcpServerTool;

Factory for declaring a custom MCP server tool.

Replaces the verbose { type: "custom_mcp_server", custom_mcp_server: { app_name, app_url } } wrapper with a concise positional call.

Example:

mcpServer("my-app", "https://my-app.databricksapps.com/mcp")

Parameters

ParameterType
namestring
urlstring

Returns

CustomMcpServerTool

Databricks Developer Hub

Ready to ship your next agentic app in minutes?

Read docs