|
| 1 | + |
| 2 | +=== A service that needs no sign-in exits 0 and says so |
| 3 | + |
| 4 | +>>> [CLI] aitools mcp login system.ai.genie_one_mcp --profile logfood |
| 5 | +system.ai.genie_one_mcp does not need sign-in. |
| 6 | + |
| 7 | +=== login prints the sign-in URL and waits; the sign-in completes in the browser |
| 8 | + |
| 9 | +>>> retry --until Waiting for sign-in cat login.txt |
| 10 | +Sign in with the same account you use for Databricks profile logfood. |
| 11 | +Open this URL to sign in to system.ai.github: |
| 12 | +[DATABRICKS_URL]/mcp-service-login?name=system.ai.github&o=[WORKSPACE_ID] |
| 13 | +Waiting for sign-in... |
| 14 | + |
| 15 | +>>> [CLI] api post /api/2.1/unity-catalog/mcp-services/system.ai.github/user-credentials --profile logfood --json {} |
| 16 | + |
| 17 | +>>> cat login.txt |
| 18 | +Sign in with the same account you use for Databricks profile logfood. |
| 19 | +Open this URL to sign in to system.ai.github: |
| 20 | +[DATABRICKS_URL]/mcp-service-login?name=system.ai.github&o=[WORKSPACE_ID] |
| 21 | +Waiting for sign-in... |
| 22 | +Signed in to system.ai.github on profile logfood. |
| 23 | +Public repositories only until a repository owner installs https://github.com/apps/databricks-github-connector |
| 24 | + |
| 25 | +=== login again when already signed in returns at once |
| 26 | + |
| 27 | +>>> [CLI] aitools mcp login system.ai.github --profile logfood --output json |
| 28 | +Sign in with the same account you use for Databricks profile logfood. |
| 29 | +Signed in to system.ai.github on profile logfood. |
| 30 | +Public repositories only until a repository owner installs https://github.com/apps/databricks-github-connector |
| 31 | +{ |
| 32 | + "service": "system.ai.github", |
| 33 | + "profile": "logfood", |
| 34 | + "host": "[DATABRICKS_URL]", |
| 35 | + "state": "ACTIVE", |
| 36 | + "url": "[DATABRICKS_URL]/mcp-service-login?name=system.ai.github\u0026o=[WORKSPACE_ID]" |
| 37 | +} |
| 38 | + |
| 39 | +=== logout removes the sign-in; a second logout finds nothing and still exits 0 |
| 40 | + |
| 41 | +>>> [CLI] aitools mcp logout system.ai.github --profile logfood |
| 42 | +Signed out of system.ai.github on profile logfood. |
| 43 | + |
| 44 | +>>> [CLI] aitools mcp logout system.ai.github --profile logfood --output json |
| 45 | +Not signed in to system.ai.github on profile logfood. |
| 46 | +{ |
| 47 | + "service": "system.ai.github", |
| 48 | + "profile": "logfood", |
| 49 | + "host": "[DATABRICKS_URL]", |
| 50 | + "state": "NOT_SIGNED_IN" |
| 51 | +} |
| 52 | + |
| 53 | +=== add --login installs the server and signs in during the same run |
| 54 | + |
| 55 | +>>> retry --until Waiting for sign-in cat add.txt |
| 56 | +Profile logfood ([DATABRICKS_URL]) |
| 57 | +Agents (named with --agents): claude-code |
| 58 | + |
| 59 | +github-logfood system.ai.github |
| 60 | + claude-code installed [TEST_TMP_DIR]/home/.claude.json |
| 61 | +Sign in with the same account you use for Databricks profile logfood. |
| 62 | +Open this URL to sign in to system.ai.github: |
| 63 | +[DATABRICKS_URL]/mcp-service-login?name=system.ai.github&o=[WORKSPACE_ID] |
| 64 | +Waiting for sign-in... |
| 65 | + |
| 66 | +>>> [CLI] api post /api/2.1/unity-catalog/mcp-services/system.ai.github/user-credentials --profile logfood --json {} |
| 67 | + |
| 68 | +>>> cat add.txt |
| 69 | +Profile logfood ([DATABRICKS_URL]) |
| 70 | +Agents (named with --agents): claude-code |
| 71 | + |
| 72 | +github-logfood system.ai.github |
| 73 | + claude-code installed [TEST_TMP_DIR]/home/.claude.json |
| 74 | +Sign in with the same account you use for Databricks profile logfood. |
| 75 | +Open this URL to sign in to system.ai.github: |
| 76 | +[DATABRICKS_URL]/mcp-service-login?name=system.ai.github&o=[WORKSPACE_ID] |
| 77 | +Waiting for sign-in... |
| 78 | +Signed in to system.ai.github on profile logfood. |
| 79 | +Public repositories only until a repository owner installs https://github.com/apps/databricks-github-connector |
| 80 | + |
| 81 | +>>> jq [.servers[] | {name, service, profile, agents: (.agents | keys)}] home/.databricks/aitools/mcp/state.json |
| 82 | +[ |
| 83 | + { |
| 84 | + "name": "github-logfood", |
| 85 | + "service": "system.ai.github", |
| 86 | + "profile": "logfood", |
| 87 | + "agents": [ |
| 88 | + "claude-code" |
| 89 | + ] |
| 90 | + } |
| 91 | +] |
0 commit comments