[BUG]: MCP server crashes when deployed to Databricks app

Aperta
#34 5 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
Mezza giornata
Idoneità per principianti
28/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
powershell, python
Ambito
cloud, devops

Direzione di ricerca

The crash comes from parsing the GENIE_SPACE_IDS environment variable as a list in the settings loaded by databricks.labs.mcp.servers.unity_catalog.app:app. Start by finding where that settings class reads env vars, then reproduce by setting GENIE_SPACE_IDS to the escaped value from the app.yml shown in the issue and loading the settings locally. Done when the value parses into a list, or the escaping problem is clearly fixed in the bundle config. Deploying to Databricks is needed only for a final check.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

bug
Is there an existing issue for this?
  • I have searched the existing issues
Current Behavior

I am trying to follow the tutorial in the readme and deploy MCP server. I am using windows PowerShell.

I am building and deploying app using the following commands:

$Env:BUNDLE_VAR_schema_full_name="retail.default" ; $Env:BUNDLE_VAR_genie_space_ids = '[\"<id>\"]' 
>   databricks bundle deploy
$Env:BUNDLE_VAR_schema_full_name="retail.default" ; $Env:BUNDLE_VAR_genie_space_ids = '[\"<id>\"]' 
>   databricks bundle run mcp-on-apps

The app deploys and crashes with error:

REDACTED_JWT: error parsing value for field "genie_space_ids" from source "EnvSettingsSource"

I checked the deployed app.yml (in Source:/Workspace/Users//.bundle/mcp-on-apps/dev/files/.build)contains:

command:
  - uvicorn
  - databricks.labs.mcp.servers.unity_catalog.app:app
env:
  - name: SCHEMA_FULL_NAME
    value: retail.default
  - name: GENIE_SPACE_IDS
    value: '[\"01f03b71f9d81af09c6ae3911a46cc34\"]'
Operating System

windows

Lingua principale
Python
Stelle
101
Fork
47
Merge medio
1m
PR unite (30g)
1

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di databrickslabs/mcp

Tutte le issue di databrickslabs/mcp

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.