Skip to content

Commit c904270

Browse files
committed
add explanations for custom server
1 parent 87ca5a9 commit c904270

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ Table of Contents
1515
- [Deploying UC MCP server on Databricks Apps](#deploying-uc-mcp-server-on-databricks-apps)
1616
- [Connecting to the UC MCP server deployed on Databricks Apps](#connecting-to-the-uc-mcp-server-deployed-on-databricks-apps)
1717
- [Developer Tools Server](#developer-tools-server)
18+
- [Deploying a custom MCP server on Databricks Apps](#deploying-a-custom-mcp-server-on-databricks-apps)
1819
- [Support](#support)
1920
- [Contributing](#contributing)
2021

@@ -139,6 +140,10 @@ Please note that app service principal should be entitled with necessary permiss
139140

140141
This server is currently under construction. It is not yet usable, but contributions are welcome!
141142

143+
## Deploying a custom MCP server on Databricks Apps
144+
145+
If you would like to deploy a custom MCP server on Databricks Apps, take a look at the reference implementation [here](./examples/custom-server/README.md). It provides a step-by-step guide on how to create a custom MCP server and deploy it on Databricks Apps.
146+
142147
## Support
143148
Please note that all projects in the `databrickslabs` GitHub organization are provided for your exploration only, and are not formally supported by Databricks with Service Level Agreements (SLAs). They are provided AS-IS and we do not make any guarantees of any kind. Please do not submit a support ticket relating to any issues arising from the use of these projects.
144149

examples/custom-server/README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,23 @@ uvicorn custom-server.app:mcp --reload
2727
- In this directory, run the following command to deploy and run the MCP server on Databricks Apps:
2828

2929
```bash
30+
uv build --wheel
3031
databricks bundle deploy -p <name-of-your-profile>
3132
databricks bundle run custom-server -p <name-of-your-profile>
3233
```
3334

35+
## Connecting to the MCP server
36+
To connect to the MCP server, use the `Streamable HTTP` transport with the following URL:
37+
38+
```
39+
https://your-app-url.usually.ends.with.databricksapps.com/api/mcp/
40+
```
41+
42+
For authentication, you can use the `Bearer` token from your Databricks profile.
43+
You can get the token by running the following command:
44+
45+
```bash
46+
databricks auth token -p <name-of-your-profile>
47+
```
48+
49+
Please note that the URL should end with `/api/mcp/` (including the trailing slash), as this is required for the server to work correctly.

0 commit comments

Comments
 (0)