Skip to content

aitools mcp: keep the MCP install records in a file of their own (option C: goes with A or B) - #8152

Draft
denik wants to merge 3 commits into
pmr/mcp-concurrency-testsfrom
pmr/mcp-records-file
Draft

denik wants to merge 3 commits into
pmr/mcp-concurrency-testsfrom
pmr/mcp-records-file

Conversation

@denik

@denik denik commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

Draft for a decision: not for review or merge until an option is chosen.

Stacked on #8147, which records the behavior this changes (cases 5 to 7). It is independent of options A (#8150) and B (#8151), which cover the agent configs and the lock: this one covers the MCP install records, and goes with either.

Changes

  • The MCP install records get a file of their own, ~/.databricks/aitools/mcp.json. Until now they were the mcp section of the skills state file (~/.databricks/aitools/skills/.state.json, Add MCP state records, drift check and profile binding checks #7537). A CLI that does not know the records never writes the new file, and the MCP commands no longer write the skills state file.
  • Records that v1.28.0 wrote are read from the section until the new file exists. The first add or remove that saves copies them into the new file. The section is left as it is, so a v1.28.0 binary on the same machine still reads what it wrote.
  • Once the new file exists it is the only source. It is kept when the last server is removed ("servers": []), so the section is not read again.
  • The new file has its own schema_version (1). A file with a newer version is read for the fields this CLI knows, so serve and list keep working, and it is never written: add and remove refuse it before they change an agent config (... was written by a newer Databricks CLI (schema version 2, this CLI writes 1); upgrade the CLI to add or remove MCP servers). A file without a schema version is refused.

The installer package is not changed. It keeps the code that preserves the section in its own saves, which now only matters for records that v1.28.0 wrote.

Why

A CLI older than v1.28.0 has no mcp field in its state type and does not check the schema version. Its aitools install, update and uninstall --skills write the file back without the section, and its aitools uninstall deletes a file that holds nothing else. After that, mcp remove finds no server and leaves the entries in the agent configs, and mcp serve starts for a profile that now points at another host, since the record held the host the server was added for. #7537 lists this as a decision to review; #8147 shows it. Two CLI versions on one machine is common: a Homebrew install next to one that a tool or an IDE extension bundles.

A second reason: the skills installer and auto-install read and write that same file under their own rules, so an mcp add that saved between their read and their write could lose its record. With a file of their own, the records have one group of writers.

Decisions to review

  • Copy, not move. The first draft removed the section after the copy. That could drop a record that a v1.28.0 binary added after the copy, and took the host check away from that binary's serve. The cost of copying: v1.28.0 keeps seeing the records as they were at the copy, and what it adds afterwards is not seen by this CLI. aitools mcp is hidden in v1.28.0.
  • Records that v1.28.0 wrote stay exposed until the first add or remove. A machine that only runs serve and list after the upgrade still has them only in the section, where an older CLI can drop them. Copying on a read would close that, and makes serve write.
  • A newer file is read and not written. This assumes the version is raised for additions that an older CLI must not drop, and that a change an older CLI cannot read at all gets another way out.
  • The file name and place: mcp.json next to auto-install.json, not under skills/.

Tests

  • acceptance/cmd/aitools/mcp/state-across-cli-versions (from acc: record aitools mcp entries lost to concurrent writes and older CLIs #8147) loses its Badness and Undefined notes: after the older CLI's install and uninstall, list still shows the server, serve still refuses the re-pointed profile with exit 2, and remove takes the server out of both agent configs. New sections: a fixture with two servers as v1.28.0 wrote them is copied with the recorded host and time and the section stays; the file stays after the last removal; a newer file is listed, refused by add and remove, and unchanged.
  • serve-binding-errors still writes the section by hand, so it covers the read of v1.28.0's records. telemetry/mcp-remove wrote the section after the records file existed, and now writes the records file.
  • libs/aitools/mcp: TestSaveStateLeavesSkillsStateFileAlone, TestRecordsSurviveSkillsStateFileOfOlderCLI, TestRecordsOfV1_28AreCopiedNotMoved, TestRecordsFileOfNewerCLIIsReadAndNotWritten, TestRecordsFileWithoutSchemaVersionIsRefused.
  • Seven scripts that printed the section now print the new file; their output differs only in the path and the jq filter, and add-two-agents gains "schema_version": 1.
  • ./task aitools-quick passes; TestAccept/cmd/aitools and TestAccept/experimental/aitools pass.

Gaps and risks

  • Risk: medium. It changes where stored state lives.
  • Not tested: a real v1.27.0 or v1.28.0 binary in the same test. Outside the test, v1.27.0 built from its tag deletes a state file that holds only the mcp section on aitools uninstall and drops the section on aitools uninstall --skills <name>.
  • Without the lock of option A or B, two add or remove runs can still overwrite each other's save of the records file, and the check for a newer file and the write are two steps.
  • On Windows, a list or serve that has the records file open while add replaces it is not handled specially.
  • Left open: the skills state file itself still has no version check, so the next section added to it can be lost the same way.

🤖 AI agent (fable5.2, isaac_claude)

This pull request and its description were written by Isaac.

The records move from a section of the skills state file to
~/.databricks/aitools/mcp.json. A CLI older than v1.28.0 writes the skills
state file back without the section, and its uninstall deletes the file, so
the records were lost: remove could no longer remove the servers, and serve
no longer refused a profile that points at another host.

Records that v1.28.0 wrote are read from the section until the first save,
which moves them. The new file has a schema version, and a file from a newer
CLI is refused instead of being written back without what this CLI does not
know.

Co-authored-by: Isaac <no-reply@databricks.com>
@github-actions

github-actions Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

Regression test report ✅

Commit: c3d8e688a | Workflow run

Selected 10 changed tests (limit=20, 0 not selected)

10 tests: regression=10 unreleased=0 coverage=0 failing=0
test branch main (e6f3460) latest (v1.28.0)
TestAccept/cmd/aitools/mcp/add-default-config ✅ ❌ ❌
TestAccept/cmd/aitools/mcp/add-two-agents ✅ ❌ ❌
TestAccept/cmd/aitools/mcp/add-two-profiles ✅ ❌ ❌
TestAccept/cmd/aitools/mcp/add-unparsable-config ✅ ❌ ❌
TestAccept/cmd/aitools/mcp/agent-cli-concurrent-edit ✅ ❌ ❌
TestAccept/cmd/aitools/mcp/list-and-remove ✅ ❌ ❌
TestAccept/cmd/aitools/mcp/list-check ✅ ❌ ❌
TestAccept/cmd/aitools/mcp/login-flips-active ✅ ❌ ❌
TestAccept/cmd/aitools/mcp/state-across-cli-versions ✅ ❌ ❌
TestAccept/cmd/aitools/telemetry/mcp-remove ✅ ❌ ❌
TestAccept/cmd/aitools/mcp/add-default-config: branch ✅ | main (e6f3460) ❌ | latest (v1.28.0) ❌

main (e6f3460):

acceptance_test.go:1402: 
        	Error Trace:	/home/runner/work/cli/cli/libs/testdiff/testdiff.go:22
        	            				/home/runner/work/cli/cli/acceptance/acceptance_test.go:1402
        	            				/home/runner/work/cli/cli/acceptance/acceptance_test.go:1143
        	            				/home/runner/work/cli/cli/acceptance/acceptance_test.go:686
        	Error:      	Not equal: 
        	            	expected: "\n=== Without DATABRICKS_CONFIG_FILE the server is added for the default config file\n\n>>> [CLI] aitools mcp add --profile logfood --names system.ai.genie_one_mcp --agents claude-code\nProfile logfood ([DATABRICKS_URL])\nAgents (named with --agents): claude-code\n\ngenie_one_mcp-logfood  system.ai.genie_one_mcp\n  claude-code  installed  [TEST_TMP_DIR]/home/.claude.json\n\n=== Claude Code config has no pinned variables for the server\n\n>>> gron.py home/.claude.json\njson.mcpServers.genie_one_mcp-logfood.env = {};\n\n=== State holds the binding with no config file\n\n>>> jq .servers[] | {name, profile, config_file} home/.databricks/aitools/mcp.json\n{\n  \"name\": \"genie_one_mcp-logfood\",\n  \"profile\": \"logfood\",\n  \"config_file\": \"\"\n}\n"
        	            	actual  : "\n=== Without DATABRICKS_CONFIG_FILE the server is added for the default config file\n\n>>> [CLI] aitools mcp add --profile logfood --names system.ai.genie_one_mcp --agents claude-code\nProfile logfood ([DATABRICKS_URL])\nAgents (named with --agents): claude-code\n\ngenie_one_mcp-logfood  system.ai.genie_one_mcp\n  claude-code  installed  [TEST_TMP_DIR]/home/.claude.json\n\n=== Claude Code config has no pinned variables for the server\n\n>>> gron.py home/.claude.json\njson.mcpServers.genie_one_mcp-logfood.env = {};\n\n=== State holds the binding with no config file\n\n>>> jq .servers[] | {name, profile, config_file} home/.databricks/aitools/mcp.json\njq: error: Could not open file home/.databricks/aitools/mcp.json: No such file or directory\n\nExit code: 2\n"
        	            	
        	            	Diff:
        	            	--- Expected
        	            	+++ Actual
        	            	@@ -18,7 +18,5 @@
        	            	 >>> jq .servers[] | {name, profile, config_file} home/.databricks/aitools/mcp.json
        	            	-{
        	            	-  "name": "genie_one_mcp-logfood",
        	            	-  "profile": "logfood",
        	            	-  "config_file": ""
        	            	-}
        	            	+jq: error: Could not open file home/.databricks/aitools/mcp.json: No such file or directory
        	            	 
        	            	+Exit code: 2
        	            	+
        	Test:       	TestAccept/cmd/aitools/mcp/add-default-config
        	Messages:   	cmd/aitools/mcp/add-default-config/output.txt vs /tmp/TestAcceptcmdaitoolsmcpadd-default-config798370448/002/output.txt
    acceptance_test.go:1180: 
        LOG.create-genie_one_mcp-logfood: {
        LOG.create-genie_one_mcp-logfood:   "comment": "Ask questions about your data",
        LOG.create-genie_one_mcp-logfood:   "create_time": "2026-11-28T02:17:34.619507754Z",
        LOG.create-genie_one_mcp-logfood:   "created_by": "tester@databricks.com",
        LOG.create-genie_one_mcp-logfood:   "effective_owner": "tester@databricks.com",
        LOG.create-genie_one_mcp-logfood:   "metastore_id": "7a1112d5-5084-d7a0-7a11-12d55084d8d7",
        LOG.create-genie_one_mcp-logfood:   "name": "mcp-services/system.ai.genie_one_mcp",
        LOG.create-genie_one_mcp-logfood:   "updated_by": "tester@databricks.com"
        LOG.create-genie_one_mcp-logfood: }

latest (v1.28.0):

acceptance_test.go:1402: 
        	Error Trace:	/home/runner/work/cli/cli/libs/testdiff/testdiff.go:22
        	            				/home/runner/work/cli/cli/acceptance/acceptance_test.go:1402
        	            				/home/runner/work/cli/cli/acceptance/acceptance_test.go:1143
        	            				/home/runner/work/cli/cli/acceptance/acceptance_test.go:686
        	Error:      	Not equal: 
        	            	expected: "\n=== Without DATABRICKS_CONFIG_FILE the server is added for the default config file\n\n>>> [CLI] aitools mcp add --profile logfood --names system.ai.genie_one_mcp --agents claude-code\nProfile logfood ([DATABRICKS_URL])\nAgents (named with --agents): claude-code\n\ngenie_one_mcp-logfood  system.ai.genie_one_mcp\n  claude-code  installed  [TEST_TMP_DIR]/home/.claude.json\n\n=== Claude Code config has no pinned variables for the server\n\n>>> gron.py home/.claude.json\njson.mcpServers.genie_one_mcp-logfood.env = {};\n\n=== State holds the binding with no config file\n\n>>> jq .servers[] | {name, profile, config_file} home/.databricks/aitools/mcp.json\n{\n  \"name\": \"genie_one_mcp-logfood\",\n  \"profile\": \"logfood\",\n  \"config_file\": \"\"\n}\n"
        	            	actual  : "\n=== Without DATABRICKS_CONFIG_FILE the server is added for the default config file\n\n>>> [CLI] aitools mcp add --profile logfood --names system.ai.genie_one_mcp --agents claude-code\nProfile logfood ([DATABRICKS_URL])\nAgents (named with --agents): claude-code\n\ngenie_one_mcp-logfood  system.ai.genie_one_mcp\n  claude-code  installed  [TEST_TMP_DIR]/home/.claude.json\n\n=== Claude Code config has no pinned variables for the server\n\n>>> gron.py home/.claude.json\njson.mcpServers.genie_one_mcp-logfood.env = {};\n\n=== State holds the binding with no config file\n\n>>> jq .servers[] | {name, profile, config_file} home/.databricks/aitools/mcp.json\njq: error: Could not open file home/.databricks/aitools/mcp.json: No such file or directory\n\nExit code: 2\n"
        	            	
        	            	Diff:
        	            	--- Expected
        	            	+++ Actual
        	            	@@ -18,7 +18,5 @@
        	            	 >>> jq .servers[] | {name, profile, config_file} home/.databricks/aitools/mcp.json
        	            	-{
        	            	-  "name": "genie_one_mcp-logfood",
        	            	-  "profile": "logfood",
        	            	-  "config_file": ""
        	            	-}
        	            	+jq: error: Could not open file home/.databricks/aitools/mcp.json: No such file or directory
        	            	 
        	            	+Exit code: 2
        	            	+
        	Test:       	TestAccept/cmd/aitools/mcp/add-default-config
        	Messages:   	cmd/aitools/mcp/add-default-config/output.txt vs /tmp/TestAcceptcmdaitoolsmcpadd-default-config1235307164/002/output.txt
    acceptance_test.go:1180: 
        LOG.create-genie_one_mcp-logfood: {
        LOG.create-genie_one_mcp-logfood:   "comment": "Ask questions about your data",
        LOG.create-genie_one_mcp-logfood:   "create_time": "2026-11-28T02:17:45.273710029Z",
        LOG.create-genie_one_mcp-logfood:   "created_by": "tester@databricks.com",
        LOG.create-genie_one_mcp-logfood:   "effective_owner": "tester@databricks.com",
        LOG.create-genie_one_mcp-logfood:   "metastore_id": "7a1112d7-cb8f-113a-7a11-12d7cb8f1282",
        LOG.create-genie_one_mcp-logfood:   "name": "mcp-services/system.ai.genie_one_mcp",
        LOG.create-genie_one_mcp-logfood:   "updated_by": "tester@databricks.com"
        LOG.create-genie_one_mcp-logfood: }
TestAccept/cmd/aitools/mcp/add-two-agents: branch ✅ | main (e6f3460) ❌ | latest (v1.28.0) ❌

main (e6f3460):

acceptance_test.go:1402: Diff:
        --- cmd/aitools/mcp/add-two-agents/output.txt
        +++ /tmp/TestAcceptcmdaitoolsmcpadd-two-agents2932320793/002/output.txt
        @@ -111,48 +111,6 @@
         === State records the binding, without the time and CLI version
         
         >>> jq del(.servers[].installed_at, .servers[].cli_version) home/.databricks/aitools/mcp.json
        -{
        -  "schema_version": 1,
        -  "servers": [
        -    {
        -      "name": "genie_one_mcp-logfood",
        -      "service": "system.ai.genie_one_mcp",
        -      "profile": "logfood",
        -      "host": "[DATABRICKS_URL]",
        -      "workspace_id": "[WORKSPACE_ID]",
        -      "sign_in_required": false,
        -      "command": "[CLI]",
        -      "config_file": "[TEST_TMP_DIR]/.databrickscfg",
        -      "agents": {
        -        "claude-code": {
        -          "path": "[TEST_TMP_DIR]/home/.claude.json",
        -          "scope": "user"
        -        },
        -        "codex": {
        -          "path": "[TEST_TMP_DIR]/home/.codex/config.toml",
        -          "scope": "user"
        -        }
        -      }
        -    },
        -    {
        -      "name": "github-logfood",
        -      "service": "system.ai.github",
        -      "profile": "logfood",
        -      "host": "[DATABRICKS_URL]",
        -      "workspace_id": "[WORKSPACE_ID]",
        -      "sign_in_required": true,
        -      "command": "[CLI]",
        -      "config_file": "[TEST_TMP_DIR]/.databrickscfg",
        -      "agents": {
        -        "claude-code": {
        -          "path": "[TEST_TMP_DIR]/home/.claude.json",
        -          "scope": "user"
        -        },
        -        "codex": {
        -          "path": "[TEST_TMP_DIR]/home/.codex/config.toml",
        -          "scope": "user"
        -        }
        -      }
        -    }
        -  ]
        -}
        +jq: error: Could not open file home/.databricks/aitools/mcp.json: No such file or directory
        +
        +Exit code: 2
        
    acceptance_test.go:1180: 
        LOG.create-genie_one_mcp-logfood: {
        LOG.create-genie_one_mcp-logfood:   "comment": "Ask questions about your data",
        LOG.create-genie_one_mcp-logfood:   "create_time": "2026-11-28T02:17:35.539256876Z",
        LOG.create-genie_one_mcp-logfood:   "created_by": "tester@databricks.com",
        LOG.create-genie_one_mcp-logfood:   "effective_owner": "tester@databricks.com",
        LOG.create-genie_one_mcp-logfood:   "metastore_id": "7a1112d5-8757-19fc-7a11-12d587571b36",
        LOG.create-genie_one_mcp-logfood:   "name": "mcp-services/system.ai.genie_one_mcp",
        LOG.create-genie_one_mcp-logfood:   "updated_by": "tester@databricks.com"
        LOG.create-genie_one_mcp-logfood: }
    acceptance_test.go:1180: 
        LOG.create-github-logfood: {
        LOG.create-github-logfood:   "comment": "Repositories, issues, pull requests",
        LOG.create-github-logfood:   "config": {
        LOG.create-github-logfood:     "source_connection": {
        LOG.create-github-logfood:       "name": "connections/github",
        LOG.create-github-logfood:       "options": {
        LOG.create-github-logfood:         "oauth_provider": "OAUTH_PROVIDER_GITHUB_MCP"
        LOG.create-github-logfood:       }
        LOG.create-github-logfood:     }
        LOG.create-github-logfood:   },
        LOG.create-github-logfood:   "create_time": "2026-11-28T02:17:35.560652176Z",
        LOG.create-github-logfood:   "created_by": "tester@databricks.com",
        LOG.create-github-logfood:   "effective_owner": "tester@databricks.com",
        LOG.create-github-logfood:   "metastore_id": "7a1112d5-889d-91ed-7a11-12d5889d9309",
        LOG.create-github-logfood:   "name": "mcp-services/system.ai.github",
        LOG.create-github-logfood:   "updated_by": "tester@databricks.com"
        LOG.create-github-logfood: }

latest (v1.28.0):

acceptance_test.go:1402: Diff:
        --- cmd/aitools/mcp/add-two-agents/output.txt
        +++ /tmp/TestAcceptcmdaitoolsmcpadd-two-agents1403691150/002/output.txt
        @@ -111,48 +111,6 @@
         === State records the binding, without the time and CLI version
         
         >>> jq del(.servers[].installed_at, .servers[].cli_version) home/.databricks/aitools/mcp.json
        -{
        -  "schema_version": 1,
        -  "servers": [
        -    {
        -      "name": "genie_one_mcp-logfood",
        -      "service": "system.ai.genie_one_mcp",
        -      "profile": "logfood",
        -      "host": "[DATABRICKS_URL]",
        -      "workspace_id": "[WORKSPACE_ID]",
        -      "sign_in_required": false,
        -      "command": "[CLI]",
        -      "config_file": "[TEST_TMP_DIR]/.databrickscfg",
        -      "agents": {
        -        "claude-code": {
        -          "path": "[TEST_TMP_DIR]/home/.claude.json",
        -          "scope": "user"
        -        },
        -        "codex": {
        -          "path": "[TEST_TMP_DIR]/home/.codex/config.toml",
        -          "scope": "user"
        -        }
        -      }
        -    },
        -    {
        -      "name": "github-logfood",
        -      "service": "system.ai.github",
        -      "profile": "logfood",
        -      "host": "[DATABRICKS_URL]",
        -      "workspace_id": "[WORKSPACE_ID]",
        -      "sign_in_required": true,
        -      "command": "[CLI]",
        -      "config_file": "[TEST_TMP_DIR]/.databrickscfg",
        -      "agents": {
        -        "claude-code": {
        -          "path": "[TEST_TMP_DIR]/home/.claude.json",
        -          "scope": "user"
        -        },
        -        "codex": {
        -          "path": "[TEST_TMP_DIR]/home/.codex/config.toml",
        -          "scope": "user"
        -        }
        -      }
        -    }
        -  ]
        -}
        +jq: error: Could not open file home/.databricks/aitools/mcp.json: No such file or directory
        +
        +Exit code: 2
        
    acceptance_test.go:1180: 
        LOG.create-genie_one_mcp-logfood: {
        LOG.create-genie_one_mcp-logfood:   "comment": "Ask questions about your data",
        LOG.create-genie_one_mcp-logfood:   "create_time": "2026-11-28T02:17:47.203634708Z",
        LOG.create-genie_one_mcp-logfood:   "created_by": "tester@databricks.com",
        LOG.create-genie_one_mcp-logfood:   "effective_owner": "tester@databricks.com",
        LOG.create-genie_one_mcp-logfood:   "metastore_id": "7a1112d8-3e97-6191-7a11-12d83e9762cb",
        LOG.create-genie_one_mcp-logfood:   "name": "mcp-services/system.ai.genie_one_mcp",
        LOG.create-genie_one_mcp-logfood:   "updated_by": "tester@databricks.com"
        LOG.create-genie_one_mcp-logfood: }
    acceptance_test.go:1180: 
        LOG.create-github-logfood: {
        LOG.create-github-logfood:   "comment": "Repositories, issues, pull requests",
        LOG.create-github-logfood:   "config": {
        LOG.create-github-logfood:     "source_connection": {
        LOG.create-github-logfood:       "name": "connections/github",
        LOG.create-github-logfood:       "options": {
        LOG.create-github-logfood:         "oauth_provider": "OAUTH_PROVIDER_GITHUB_MCP"
        LOG.create-github-logfood:       }
        LOG.create-github-logfood:     }
        LOG.create-github-logfood:   },
        LOG.create-github-logfood:   "create_time": "2026-11-28T02:17:47.248807915Z",
        LOG.create-github-logfood:   "created_by": "tester@databricks.com",
        LOG.create-github-logfood:   "effective_owner": "tester@databricks.com",
        LOG.create-github-logfood:   "metastore_id": "7a1112d8-4148-ab1c-7a11-12d84148ad24",
        LOG.create-github-logfood:   "name": "mcp-services/system.ai.github",
        LOG.create-github-logfood:   "updated_by": "tester@databricks.com"
        LOG.create-github-logfood: }
TestAccept/cmd/aitools/mcp/add-two-profiles: branch ✅ | main (e6f3460) ❌ | latest (v1.28.0) ❌

main (e6f3460):

acceptance_test.go:1402: Diff:
        --- cmd/aitools/mcp/add-two-profiles/output.txt
        +++ /tmp/TestAcceptcmdaitoolsmcpadd-two-profiles1725984327/002/output.txt
        @@ -35,19 +35,6 @@
         === State holds one entry per profile
         
         >>> jq [.servers[] | {name, profile, agents: (.agents | keys)}] home/.databricks/aitools/mcp.json
        -[
        -  {
        -    "name": "genie_one_mcp-logfood",
        -    "profile": "logfood",
        -    "agents": [
        -      "claude-code"
        -    ]
        -  },
        -  {
        -    "name": "genie_one_mcp-dogfood",
        -    "profile": "dogfood",
        -    "agents": [
        -      "claude-code"
        -    ]
        -  }
        -]
        +jq: error: Could not open file home/.databricks/aitools/mcp.json: No such file or directory
        +
        +Exit code: 2
        
    acceptance_test.go:1180: 
        LOG.create-genie_one_mcp-dogfood: {
        LOG.create-genie_one_mcp-dogfood:   "comment": "Ask questions about your data",
        LOG.create-genie_one_mcp-dogfood:   "create_time": "2026-11-28T02:17:35.317323975Z",
        LOG.create-genie_one_mcp-dogfood:   "created_by": "tester@databricks.com",
        LOG.create-genie_one_mcp-dogfood:   "effective_owner": "tester@databricks.com",
        LOG.create-genie_one_mcp-dogfood:   "metastore_id": "7a1112d5-7a1c-ab8a-7a11-12d57a1cacdf",
        LOG.create-genie_one_mcp-dogfood:   "name": "mcp-services/system.ai.genie_one_mcp",
        LOG.create-genie_one_mcp-dogfood:   "updated_by": "tester@databricks.com"
        LOG.create-genie_one_mcp-dogfood: }
    acceptance_test.go:1180: 
        LOG.create-genie_one_mcp-logfood: {
        LOG.create-genie_one_mcp-logfood:   "comment": "Ask questions about your data",
        LOG.create-genie_one_mcp-logfood:   "create_time": "2026-11-28T02:17:35.294200809Z",
        LOG.create-genie_one_mcp-logfood:   "created_by": "tester@databricks.com",
        LOG.create-genie_one_mcp-logfood:   "effective_owner": "tester@databricks.com",
        LOG.create-genie_one_mcp-logfood:   "metastore_id": "7a1112d5-78bb-d756-7a11-12d578bbd89f",
        LOG.create-genie_one_mcp-logfood:   "name": "mcp-services/system.ai.genie_one_mcp",
        LOG.create-genie_one_mcp-logfood:   "updated_by": "tester@databricks.com"
        LOG.create-genie_one_mcp-logfood: }

latest (v1.28.0):

acceptance_test.go:1402: Diff:
        --- cmd/aitools/mcp/add-two-profiles/output.txt
        +++ /tmp/TestAcceptcmdaitoolsmcpadd-two-profiles145479120/002/output.txt
        @@ -35,19 +35,6 @@
         === State holds one entry per profile
         
         >>> jq [.servers[] | {name, profile, agents: (.agents | keys)}] home/.databricks/aitools/mcp.json
        -[
        -  {
        -    "name": "genie_one_mcp-logfood",
        -    "profile": "logfood",
        -    "agents": [
        -      "claude-code"
        -    ]
        -  },
        -  {
        -    "name": "genie_one_mcp-dogfood",
        -    "profile": "dogfood",
        -    "agents": [
        -      "claude-code"
        -    ]
        -  }
        -]
        +jq: error: Could not open file home/.databricks/aitools/mcp.json: No such file or directory
        +
        +Exit code: 2
        
    acceptance_test.go:1180: 
        LOG.create-genie_one_mcp-dogfood: {
        LOG.create-genie_one_mcp-dogfood:   "comment": "Ask questions about your data",
        LOG.create-genie_one_mcp-dogfood:   "create_time": "2026-11-28T02:17:47.087156786Z",
        LOG.create-genie_one_mcp-dogfood:   "created_by": "tester@databricks.com",
        LOG.create-genie_one_mcp-dogfood:   "effective_owner": "tester@databricks.com",
        LOG.create-genie_one_mcp-dogfood:   "metastore_id": "7a1112d8-37a6-1158-7a11-12d837a612f8",
        LOG.create-genie_one_mcp-dogfood:   "name": "mcp-services/system.ai.genie_one_mcp",
        LOG.create-genie_one_mcp-dogfood:   "updated_by": "tester@databricks.com"
        LOG.create-genie_one_mcp-dogfood: }
    acceptance_test.go:1180: 
        LOG.create-genie_one_mcp-logfood: {
        LOG.create-genie_one_mcp-logfood:   "comment": "Ask questions about your data",
        LOG.create-genie_one_mcp-logfood:   "create_time": "2026-11-28T02:17:47.071723738Z",
        LOG.create-genie_one_mcp-logfood:   "created_by": "tester@databricks.com",
        LOG.create-genie_one_mcp-logfood:   "effective_owner": "tester@databricks.com",
        LOG.create-genie_one_mcp-logfood:   "metastore_id": "7a1112d8-36ba-949f-7a11-12d836ba95a8",
        LOG.create-genie_one_mcp-logfood:   "name": "mcp-services/system.ai.genie_one_mcp",
        LOG.create-genie_one_mcp-logfood:   "updated_by": "tester@databricks.com"
        LOG.create-genie_one_mcp-logfood: }
TestAccept/cmd/aitools/mcp/add-unparsable-config: branch ✅ | main (e6f3460) ❌ | latest (v1.28.0) ❌

main (e6f3460):

acceptance_test.go:1402: Diff:
        --- cmd/aitools/mcp/add-unparsable-config/output.txt
        +++ /tmp/TestAcceptcmdaitoolsmcpadd-unparsable-config3973215159/002/output.txt
        @@ -37,11 +37,6 @@
         === State records only the agent that succeeded
         
         >>> jq [.servers[] | {name, agents: (.agents | keys)}] home/.databricks/aitools/mcp.json
        -[
        -  {
        -    "name": "genie_one_mcp-logfood",
        -    "agents": [
        -      "claude-code"
        -    ]
        -  }
        -]
        +jq: error: Could not open file home/.databricks/aitools/mcp.json: No such file or directory
        +
        +Exit code: 2
        
    acceptance_test.go:1180: 
        LOG.create-genie_one_mcp-logfood: {
        LOG.create-genie_one_mcp-logfood:   "comment": "Ask questions about your data",
        LOG.create-genie_one_mcp-logfood:   "create_time": "2026-11-28T02:17:35.112720701Z",
        LOG.create-genie_one_mcp-logfood:   "created_by": "tester@databricks.com",
        LOG.create-genie_one_mcp-logfood:   "effective_owner": "tester@databricks.com",
        LOG.create-genie_one_mcp-logfood:   "metastore_id": "7a1112d5-6dea-ab0d-7a11-12d56deaae16",
        LOG.create-genie_one_mcp-logfood:   "name": "mcp-services/system.ai.genie_one_mcp",
        LOG.create-genie_one_mcp-logfood:   "updated_by": "tester@databricks.com"
        LOG.create-genie_one_mcp-logfood: }

latest (v1.28.0):

acceptance_test.go:1402: Diff:
        --- cmd/aitools/mcp/add-unparsable-config/output.txt
        +++ /tmp/TestAcceptcmdaitoolsmcpadd-unparsable-config3465478582/002/output.txt
        @@ -37,11 +37,6 @@
         === State records only the agent that succeeded
         
         >>> jq [.servers[] | {name, agents: (.agents | keys)}] home/.databricks/aitools/mcp.json
        -[
        -  {
        -    "name": "genie_one_mcp-logfood",
        -    "agents": [
        -      "claude-code"
        -    ]
        -  }
        -]
        +jq: error: Could not open file home/.databricks/aitools/mcp.json: No such file or directory
        +
        +Exit code: 2
        
    acceptance_test.go:1180: 
        LOG.create-genie_one_mcp-logfood: {
        LOG.create-genie_one_mcp-logfood:   "comment": "Ask questions about your data",
        LOG.create-genie_one_mcp-logfood:   "create_time": "2026-11-28T02:17:46.660404388Z",
        LOG.create-genie_one_mcp-logfood:   "created_by": "tester@databricks.com",
        LOG.create-genie_one_mcp-logfood:   "effective_owner": "tester@databricks.com",
        LOG.create-genie_one_mcp-logfood:   "metastore_id": "7a1112d8-1e36-5889-7a11-12d81e3659ac",
        LOG.create-genie_one_mcp-logfood:   "name": "mcp-services/system.ai.genie_one_mcp",
        LOG.create-genie_one_mcp-logfood:   "updated_by": "tester@databricks.com"
        LOG.create-genie_one_mcp-logfood: }
TestAccept/cmd/aitools/mcp/agent-cli-concurrent-edit: branch ✅ | main (e6f3460) ❌ | latest (v1.28.0) ❌

main (e6f3460):

acceptance_test.go:1402: Diff:
        --- cmd/aitools/mcp/agent-cli-concurrent-edit/output.txt
        +++ /tmp/TestAcceptcmdaitoolsmcpagent-cli-concurrent-edit1943711561/002/output.txt
        @@ -74,27 +74,6 @@
         {"github":["aitools","mcp","serve","--profile","logfood","--service","system.ai.github","--agent","claude-code"]}
         
         >>> jq -c [.servers[] | {name, profile, agents: (.agents | keys)}] home/.databricks/aitools/mcp.json
        -[{"name":"github","profile":"dogfood","agents":["claude-code"]},{"name":"github","profile":"logfood","agents":["claude-code"]}]
        +jq: error: Could not open file home/.databricks/aitools/mcp.json: No such file or directory
         
        -=== afterwards remove --all takes the logfood entry out of the agent config and drops the dogfood record
        -
        ->>> [CLI] aitools mcp list
        -Profile dogfood  ([DATABRICKS_URL], config file [TEST_TMP_DIR]/.databrickscfg)
        -  github                   system.ai.github               Claude Code (modified)
        -  changed outside this CLI in Claude Code: delete the entry from [TEST_TMP_DIR]/home/.claude.json by hand and run `databricks aitools mcp remove --names github` again
        -
        -Profile logfood  ([DATABRICKS_URL], config file [TEST_TMP_DIR]/.databrickscfg)
        -  github                   system.ai.github               Claude Code
        -
        ->>> [CLI] aitools mcp remove --all
        -Removed github  system.ai.github  profile logfood  (Claude Code)
        -Skipped github: Claude Code has an entry named github that was changed outside this CLI; left in place. To remove it, delete the entry from [TEST_TMP_DIR]/home/.claude.json by hand and run `databricks aitools mcp remove --names github` again
        -
        ->>> jq -c .mcpServers home/.claude.json
        -{}
        -
        ->>> jq -c [.servers[] | {name, profile, agents: (.agents | keys)}] home/.databricks/aitools/mcp.json
        -[{"name":"github","profile":"logfood","agents":["claude-code"]}]
        -
        ->>> cat concurrent.log
        -claude removed github
        +Exit code: 2
        
    acceptance_test.go:1180: 
        LOG.create-github-dogfood: {
        LOG.create-github-dogfood:   "comment": "Repositories, issues, pull requests",
        LOG.create-github-dogfood:   "create_time": "2026-11-28T02:17:34.978083852Z",
        LOG.create-github-dogfood:   "created_by": "tester@databricks.com",
        LOG.create-github-dogfood:   "effective_owner": "tester@databricks.com",
        LOG.create-github-dogfood:   "metastore_id": "7a1112d5-65e4-4665-7a11-12d565e447b6",
        LOG.create-github-dogfood:   "name": "mcp-services/system.ai.github",
        LOG.create-github-dogfood:   "updated_by": "tester@databricks.com"
        LOG.create-github-dogfood: }
    acceptance_test.go:1180: 
        LOG.create-github-logfood: {
        LOG.create-github-logfood:   "comment": "Repositories, issues, pull requests",
        LOG.create-github-logfood:   "create_time": "2026-11-28T02:17:34.915609277Z",
        LOG.create-github-logfood:   "created_by": "tester@databricks.com",
        LOG.create-github-logfood:   "effective_owner": "tester@databricks.com",
        LOG.create-github-logfood:   "metastore_id": "7a1112d5-622a-fe3b-7a11-12d5622aff7a",
        LOG.create-github-logfood:   "name": "mcp-services/system.ai.github",
        LOG.create-github-logfood:   "updated_by": "tester@databricks.com"
        LOG.create-github-logfood: }

latest (v1.28.0):

acceptance_test.go:1402: Diff:
        --- cmd/aitools/mcp/agent-cli-concurrent-edit/output.txt
        +++ /tmp/TestAcceptcmdaitoolsmcpagent-cli-concurrent-edit3700857672/002/output.txt
        @@ -74,27 +74,6 @@
         {"github":["aitools","mcp","serve","--profile","logfood","--service","system.ai.github","--agent","claude-code"]}
         
         >>> jq -c [.servers[] | {name, profile, agents: (.agents | keys)}] home/.databricks/aitools/mcp.json
        -[{"name":"github","profile":"dogfood","agents":["claude-code"]},{"name":"github","profile":"logfood","agents":["claude-code"]}]
        +jq: error: Could not open file home/.databricks/aitools/mcp.json: No such file or directory
         
        -=== afterwards remove --all takes the logfood entry out of the agent config and drops the dogfood record
        -
        ->>> [CLI] aitools mcp list
        -Profile dogfood  ([DATABRICKS_URL], config file [TEST_TMP_DIR]/.databrickscfg)
        -  github                   system.ai.github               Claude Code (modified)
        -  changed outside this CLI in Claude Code: delete the entry from [TEST_TMP_DIR]/home/.claude.json by hand and run `databricks aitools mcp remove --names github` again
        -
        -Profile logfood  ([DATABRICKS_URL], config file [TEST_TMP_DIR]/.databrickscfg)
        -  github                   system.ai.github               Claude Code
        -
        ->>> [CLI] aitools mcp remove --all
        -Removed github  system.ai.github  profile logfood  (Claude Code)
        -Skipped github: Claude Code has an entry named github that was changed outside this CLI; left in place. To remove it, delete the entry from [TEST_TMP_DIR]/home/.claude.json by hand and run `databricks aitools mcp remove --names github` again
        -
        ->>> jq -c .mcpServers home/.claude.json
        -{}
        -
        ->>> jq -c [.servers[] | {name, profile, agents: (.agents | keys)}] home/.databricks/aitools/mcp.json
        -[{"name":"github","profile":"logfood","agents":["claude-code"]}]
        -
        ->>> cat concurrent.log
        -claude removed github
        +Exit code: 2
        
    acceptance_test.go:1180: 
        LOG.create-github-dogfood: {
        LOG.create-github-dogfood:   "comment": "Repositories, issues, pull requests",
        LOG.create-github-dogfood:   "create_time": "2026-11-28T02:17:46.769765794Z",
        LOG.create-github-dogfood:   "created_by": "tester@databricks.com",
        LOG.create-github-dogfood:   "effective_owner": "tester@databricks.com",
        LOG.create-github-dogfood:   "metastore_id": "7a1112d8-24bb-118f-7a11-12d824bb12b8",
        LOG.create-github-dogfood:   "name": "mcp-services/system.ai.github",
        LOG.create-github-dogfood:   "updated_by": "tester@databricks.com"
        LOG.create-github-dogfood: }
    acceptance_test.go:1180: 
        LOG.create-github-logfood: {
        LOG.create-github-logfood:   "comment": "Repositories, issues, pull requests",
        LOG.create-github-logfood:   "create_time": "2026-11-28T02:17:46.753240829Z",
        LOG.create-github-logfood:   "created_by": "tester@databricks.com",
        LOG.create-github-logfood:   "effective_owner": "tester@databricks.com",
        LOG.create-github-logfood:   "metastore_id": "7a1112d8-23be-e92f-7a11-12d823beea6a",
        LOG.create-github-logfood:   "name": "mcp-services/system.ai.github",
        LOG.create-github-logfood:   "updated_by": "tester@databricks.com"
        LOG.create-github-logfood: }
TestAccept/cmd/aitools/mcp/list-and-remove: branch ✅ | main (e6f3460) ❌ | latest (v1.28.0) ❌

main (e6f3460):

acceptance_test.go:1402: Diff:
        --- cmd/aitools/mcp/list-and-remove/output.txt
        +++ /tmp/TestAcceptcmdaitoolsmcplist-and-remove609320562/002/output.txt
        @@ -141,56 +141,6 @@
         ]
         
         >>> jq [.servers[] | {name, profile, agents: (.agents | keys)}] home/.databricks/aitools/mcp.json
        -[
        -  {
        -    "name": "genie_one_mcp-logfood",
        -    "profile": "logfood",
        -    "agents": [
        -      "claude-code"
        -    ]
        -  },
        -  {
        -    "name": "github-logfood",
        -    "profile": "logfood",
        -    "agents": [
        -      "claude-code"
        -    ]
        -  }
        -]
        +jq: error: Could not open file home/.databricks/aitools/mcp.json: No such file or directory
         
        -=== remove --all removes what this CLI wrote and nothing else
        -
        ->>> [CLI] aitools mcp remove --all --output json
        -{
        -  "removed": [
        -    {
        -      "name": "genie_one_mcp-logfood",
        -      "service": "system.ai.genie_one_mcp",
        -      "profile": "logfood",
        -      "agents": [
        -        "claude-code"
        -      ]
        -    }
        -  ],
        -  "skipped": [
        -    {
        -      "name": "github-logfood",
        -      "agent": "claude-code",
        -      "reason": "Claude Code has an entry named github-logfood that was changed outside this CLI; left in place. To remove it, delete the entry from [TEST_TMP_DIR]/home/.claude.json by hand and run `databricks aitools mcp remove --names github-logfood` again"
        -    }
        -  ]
        -}
        -
        ->>> jq .mcpServers | keys home/.claude.json
        -[
        -  "github-logfood",
        -  "web_search"
        -]
        -
        ->>> [CLI] aitools mcp list
        -Profile logfood  ([DATABRICKS_URL], config file [TEST_TMP_DIR]/.databrickscfg)
        -  github-logfood           system.ai.github               Claude Code (modified)
        -  changed outside this CLI in Claude Code: delete the entry from [TEST_TMP_DIR]/home/.claude.json by hand and run `databricks aitools mcp remove --names github-logfood` again
        -
        -Unmanaged Databricks MCP entries (not changed by this command):
        -  Claude Code    web_search           ug mcp-proxy
        +Exit code: 2
        
    acceptance_test.go:1180: 
        LOG.create-genie_one_mcp-dogfood: {
        LOG.create-genie_one_mcp-dogfood:   "comment": "Ask questions about your data",
        LOG.create-genie_one_mcp-dogfood:   "create_time": "2026-11-28T02:17:34.603675093Z",
        LOG.create-genie_one_mcp-dogfood:   "created_by": "tester@databricks.com",
        LOG.create-genie_one_mcp-dogfood:   "effective_owner": "tester@databricks.com",
        LOG.create-genie_one_mcp-dogfood:   "metastore_id": "7a1112d5-4f93-40d2-7a11-12d54f9342d5",
        LOG.create-genie_one_mcp-dogfood:   "name": "mcp-services/system.ai.genie_one_mcp",
        LOG.create-genie_one_mcp-dogfood:   "updated_by": "tester@databricks.com"
        LOG.create-genie_one_mcp-dogfood: }
    acceptance_test.go:1180: 
        LOG.create-genie_one_mcp-logfood: {
        LOG.create-genie_one_mcp-logfood:   "comment": "Ask questions about your data",
        LOG.create-genie_one_mcp-logfood:   "create_time": "2026-11-28T02:17:34.564603328Z",
        LOG.create-genie_one_mcp-logfood:   "created_by": "tester@databricks.com",
        LOG.create-genie_one_mcp-logfood:   "effective_owner": "tester@databricks.com",
        LOG.create-genie_one_mcp-logfood:   "metastore_id": "7a1112d5-4d3f-114c-7a11-12d54d3f128d",
        LOG.create-genie_one_mcp-logfood:   "name": "mcp-services/system.ai.genie_one_mcp",
        LOG.create-genie_one_mcp-logfood:   "updated_by": "tester@databricks.com"
        LOG.create-genie_one_mcp-logfood: }
    acceptance_test.go:1180: 
        LOG.create-github-logfood: {
        LOG.create-github-logfood:   "comment": "Repositories, issues, pull requests",
        LOG.create-github-logfood:   "config": {
        LOG.create-github-logfood:     "source_connection": {
        LOG.create-github-logfood:       "name": "connections/github",
        LOG.create-github-logfood:       "options": {
        LOG.create-github-logfood:         "oauth_provider": "OAUTH_PROVIDER_GITHUB_MCP"
        LOG.create-github-logfood:       }
        LOG.create-github-logfood:     }
        LOG.create-github-logfood:   },
        LOG.create-github-logfood:   "create_time": "2026-11-28T02:17:34.582507588Z",
        LOG.create-github-logfood:   "created_by": "tester@databricks.com",
        LOG.create-github-logfood:   "effective_owner": "tester@databricks.com",
        LOG.create-github-logfood:   "metastore_id": "7a1112d5-4e50-42f9-7a11-12d54e504449",
        LOG.create-github-logfood:   "name": "mcp-services/system.ai.github",
        LOG.create-github-logfood:   "updated_by": "tester@databricks.com"
        LOG.create-github-logfood: }

latest (v1.28.0):

acceptance_test.go:1402: Diff:
        --- cmd/aitools/mcp/list-and-remove/output.txt
        +++ /tmp/TestAcceptcmdaitoolsmcplist-and-remove247354159/002/output.txt
        @@ -141,56 +141,6 @@
         ]
         
         >>> jq [.servers[] | {name, profile, agents: (.agents | keys)}] home/.databricks/aitools/mcp.json
        -[
        -  {
        -    "name": "genie_one_mcp-logfood",
        -    "profile": "logfood",
        -    "agents": [
        -      "claude-code"
        -    ]
        -  },
        -  {
        -    "name": "github-logfood",
        -    "profile": "logfood",
        -    "agents": [
        -      "claude-code"
        -    ]
        -  }
        -]
        +jq: error: Could not open file home/.databricks/aitools/mcp.json: No such file or directory
         
        -=== remove --all removes what this CLI wrote and nothing else
        -
        ->>> [CLI] aitools mcp remove --all --output json
        -{
        -  "removed": [
        -    {
        -      "name": "genie_one_mcp-logfood",
        -      "service": "system.ai.genie_one_mcp",
        -      "profile": "logfood",
        -      "agents": [
        -        "claude-code"
        -      ]
        -    }
        -  ],
        -  "skipped": [
        -    {
        -      "name": "github-logfood",
        -      "agent": "claude-code",
        -      "reason": "Claude Code has an entry named github-logfood that was changed outside this CLI; left in place. To remove it, delete the entry from [TEST_TMP_DIR]/home/.claude.json by hand and run `databricks aitools mcp remove --names github-logfood` again"
        -    }
        -  ]
        -}
        -
        ->>> jq .mcpServers | keys home/.claude.json
        -[
        -  "github-logfood",
        -  "web_search"
        -]
        -
        ->>> [CLI] aitools mcp list
        -Profile logfood  ([DATABRICKS_URL], config file [TEST_TMP_DIR]/.databrickscfg)
        -  github-logfood           system.ai.github               Claude Code (modified)
        -  changed outside this CLI in Claude Code: delete the entry from [TEST_TMP_DIR]/home/.claude.json by hand and run `databricks aitools mcp remove --names github-logfood` again
        -
        -Unmanaged Databricks MCP entries (not changed by this command):
        -  Claude Code    web_search           ug mcp-proxy
        +Exit code: 2
        
    acceptance_test.go:1180: 
        LOG.create-genie_one_mcp-dogfood: {
        LOG.create-genie_one_mcp-dogfood:   "comment": "Ask questions about your data",
        LOG.create-genie_one_mcp-dogfood:   "create_time": "2026-11-28T02:17:45.171402887Z",
        LOG.create-genie_one_mcp-dogfood:   "created_by": "tester@databricks.com",
        LOG.create-genie_one_mcp-dogfood:   "effective_owner": "tester@databricks.com",
        LOG.create-genie_one_mcp-dogfood:   "metastore_id": "7a1112d7-c575-fc9a-7a11-12d7c575fd7a",
        LOG.create-genie_one_mcp-dogfood:   "name": "mcp-services/system.ai.genie_one_mcp",
        LOG.create-genie_one_mcp-dogfood:   "updated_by": "tester@databricks.com"
        LOG.create-genie_one_mcp-dogfood: }
    acceptance_test.go:1180: 
        LOG.create-genie_one_mcp-logfood: {
        LOG.create-genie_one_mcp-logfood:   "comment": "Ask questions about your data",
        LOG.create-genie_one_mcp-logfood:   "create_time": "2026-11-28T02:17:45.138441990Z",
        LOG.create-genie_one_mcp-logfood:   "created_by": "tester@databricks.com",
        LOG.create-genie_one_mcp-logfood:   "effective_owner": "tester@databricks.com",
        LOG.create-genie_one_mcp-logfood:   "metastore_id": "7a1112d7-c37f-0a9a-7a11-12d7c37f0bd2",
        LOG.create-genie_one_mcp-logfood:   "name": "mcp-services/system.ai.genie_one_mcp",
        LOG.create-genie_one_mcp-logfood:   "updated_by": "tester@databricks.com"
        LOG.create-genie_one_mcp-logfood: }
    acceptance_test.go:1180: 
        LOG.create-github-logfood: {
        LOG.create-github-logfood:   "comment": "Repositories, issues, pull requests",
        LOG.create-github-logfood:   "config": {
        LOG.create-github-logfood:     "source_connection": {
        LOG.create-github-logfood:       "name": "connections/github",
        LOG.create-github-logfood:       "options": {
        LOG.create-github-logfood:         "oauth_provider": "OAUTH_PROVIDER_GITHUB_MCP"
        LOG.create-github-logfood:       }
        LOG.create-github-logfood:     }
        LOG.create-github-logfood:   },
        LOG.create-github-logfood:   "create_time": "2026-11-28T02:17:45.156069233Z",
        LOG.create-github-logfood:   "created_by": "tester@databricks.com",
        LOG.create-github-logfood:   "effective_owner": "tester@databricks.com",
        LOG.create-github-logfood:   "metastore_id": "7a1112d7-c48c-0391-7a11-12d7c48c04bd",
        LOG.create-github-logfood:   "name": "mcp-services/system.ai.github",
        LOG.create-github-logfood:   "updated_by": "tester@databricks.com"
        LOG.create-github-logfood: }
TestAccept/cmd/aitools/mcp/list-check: branch ✅ | main (e6f3460) ❌ | latest (v1.28.0) ❌

main (e6f3460):

acceptance_test.go:1402: Diff:
        --- cmd/aitools/mcp/list-check/output.txt
        +++ /tmp/TestAcceptcmdaitoolsmcplist-check1346782772/002/output.txt
        @@ -31,67 +31,10 @@
           github-logfood           system.ai.github               Claude Code  signed in
         
         === A recorded binary that is gone is reported as missing
        +Traceback (most recent call last):
        +  File "[TESTROOT]/bin/update_file.py", line 27, in <module>
        +    with open(filename, "rb") as fobj:
        +         ~~~~^^^^^^^^^^^^^^^^
        +FileNotFoundError: [Errno 2] No such file or directory: 'home/.databricks/aitools/mcp.json'
         
        ->>> [CLI] aitools mcp list --check --output json
        -{
        -  "profiles": [
        -    {
        -      "profile": "logfood",
        -      "host": "[DATABRICKS_URL]",
        -      "config_file": "[TEST_TMP_DIR]/.databrickscfg",
        -      "status": "ok",
        -      "servers": [
        -        {
        -          "name": "genie_one_mcp-logfood",
        -          "service": "system.ai.genie_one_mcp",
        -          "host": "[DATABRICKS_URL]",
        -          "sign_in_required": false,
        -          "status": "ok",
        -          "agents": [
        -            {
        -              "name": "claude-code",
        -              "path": "[TEST_TMP_DIR]/home/.claude.json",
        -              "status": "installed"
        -            }
        -          ],
        -          "check": {
        -            "token": "ok",
        -            "binary": "failed"
        -          }
        -        },
        -        {
        -          "name": "github-logfood",
        -          "service": "system.ai.github",
        -          "host": "[DATABRICKS_URL]",
        -          "sign_in_required": true,
        -          "status": "ok",
        -          "agents": [
        -            {
        -              "name": "claude-code",
        -              "path": "[TEST_TMP_DIR]/home/.claude.json",
        -              "status": "installed"
        -            }
        -          ],
        -          "check": {
        -            "token": "ok",
        -            "sign_in": "ok",
        -            "binary": "failed"
        -          }
        -        }
        -      ]
        -    }
        -  ],
        -  "unmanaged": [],
        -  "warnings": []
        -}
        -
        -=== logout ends the sign-in; list --check shows it needed again
        -
        ->>> [CLI] aitools mcp logout system.ai.github --profile logfood
        -Signed out of system.ai.github on profile logfood.
        -
        ->>> [CLI] aitools mcp list --check
        -Profile logfood  ([DATABRICKS_URL], config file [TEST_TMP_DIR]/.databrickscfg)  token ok
        -  genie_one_mcp-logfood    system.ai.genie_one_mcp        Claude Code  binary missing
        -  github-logfood           system.ai.github               Claude Code  sign-in needed, binary missing
        -  to sign in: run `DATABRICKS_CONFIG_FILE=[TEST_TMP_DIR]/.databrickscfg databricks aitools mcp login system.ai.github --profile logfood`
        +Exit code: 1
        
    acceptance_test.go:1180: 
        LOG.create-genie_one_mcp-logfood: {
        LOG.create-genie_one_mcp-logfood:   "comment": "Ask questions about your data",
        LOG.create-genie_one_mcp-logfood:   "create_time": "2026-11-28T02:17:36.644755150Z",
        LOG.create-genie_one_mcp-logfood:   "created_by": "tester@databricks.com",
        LOG.create-genie_one_mcp-logfood:   "effective_owner": "tester@databricks.com",
        LOG.create-genie_one_mcp-logfood:   "metastore_id": "7a1112d5-c93b-aa1d-7a11-12d5c93bab47",
        LOG.create-genie_one_mcp-logfood:   "name": "mcp-services/system.ai.genie_one_mcp",
        LOG.create-genie_one_mcp-logfood:   "updated_by": "tester@databricks.com"
        LOG.create-genie_one_mcp-logfood: }
    acceptance_test.go:1180: 
        LOG.create-github-logfood: {
        LOG.create-github-logfood:   "comment": "Repositories, issues, pull requests",
        LOG.create-github-logfood:   "config": {
        LOG.create-github-logfood:     "source_connection": {
        LOG.create-github-logfood:       "name": "connections/github",
        LOG.create-github-logfood:       "options": {
        LOG.create-github-logfood:         "oauth_provider": "OAUTH_PROVIDER_GITHUB_MCP"
        LOG.create-github-logfood:       }
        LOG.create-github-logfood:     }
        LOG.create-github-logfood:   },
        LOG.create-github-logfood:   "create_time": "2026-11-28T02:17:36.681441780Z",
        LOG.create-github-logfood:   "created_by": "tester@databricks.com",
        LOG.create-github-logfood:   "effective_owner": "tester@databricks.com",
        LOG.create-github-logfood:   "metastore_id": "7a1112d5-cb6b-75e3-7a11-12d5cb6b772a",
        LOG.create-github-logfood:   "name": "mcp-services/system.ai.github",
        LOG.create-github-logfood:   "updated_by": "tester@databricks.com"
        LOG.create-github-logfood: }

latest (v1.28.0):

acceptance_test.go:1402: Diff:
        --- cmd/aitools/mcp/list-check/output.txt
        +++ /tmp/TestAcceptcmdaitoolsmcplist-check1516409265/002/output.txt
        @@ -31,67 +31,10 @@
           github-logfood           system.ai.github               Claude Code  signed in
         
         === A recorded binary that is gone is reported as missing
        +Traceback (most recent call last):
        +  File "[TESTROOT]/bin/update_file.py", line 27, in <module>
        +    with open(filename, "rb") as fobj:
        +         ~~~~^^^^^^^^^^^^^^^^
        +FileNotFoundError: [Errno 2] No such file or directory: 'home/.databricks/aitools/mcp.json'
         
        ->>> [CLI] aitools mcp list --check --output json
        -{
        -  "profiles": [
        -    {
        -      "profile": "logfood",
        -      "host": "[DATABRICKS_URL]",
        -      "config_file": "[TEST_TMP_DIR]/.databrickscfg",
        -      "status": "ok",
        -      "servers": [
        -        {
        -          "name": "genie_one_mcp-logfood",
        -          "service": "system.ai.genie_one_mcp",
        -          "host": "[DATABRICKS_URL]",
        -          "sign_in_required": false,
        -          "status": "ok",
        -          "agents": [
        -            {
        -              "name": "claude-code",
        -              "path": "[TEST_TMP_DIR]/home/.claude.json",
        -              "status": "installed"
        -            }
        -          ],
        -          "check": {
        -            "token": "ok",
        -            "binary": "failed"
        -          }
        -        },
        -        {
        -          "name": "github-logfood",
        -          "service": "system.ai.github",
        -          "host": "[DATABRICKS_URL]",
        -          "sign_in_required": true,
        -          "status": "ok",
        -          "agents": [
        -            {
        -              "name": "claude-code",
        -              "path": "[TEST_TMP_DIR]/home/.claude.json",
        -              "status": "installed"
        -            }
        -          ],
        -          "check": {
        -            "token": "ok",
        -            "sign_in": "ok",
        -            "binary": "failed"
        -          }
        -        }
        -      ]
        -    }
        -  ],
        -  "unmanaged": [],
        -  "warnings": []
        -}
        -
        -=== logout ends the sign-in; list --check shows it needed again
        -
        ->>> [CLI] aitools mcp logout system.ai.github --profile logfood
        -Signed out of system.ai.github on profile logfood.
        -
        ->>> [CLI] aitools mcp list --check
        -Profile logfood  ([DATABRICKS_URL], config file [TEST_TMP_DIR]/.databrickscfg)  token ok
        -  genie_one_mcp-logfood    system.ai.genie_one_mcp        Claude Code  binary missing
        -  github-logfood           system.ai.github               Claude Code  sign-in needed, binary missing
        -  to sign in: run `DATABRICKS_CONFIG_FILE=[TEST_TMP_DIR]/.databrickscfg databricks aitools mcp login system.ai.github --profile logfood`
        +Exit code: 1
        
    acceptance_test.go:1180: 
        LOG.create-genie_one_mcp-logfood: {
        LOG.create-genie_one_mcp-logfood:   "comment": "Ask questions about your data",
        LOG.create-genie_one_mcp-logfood:   "create_time": "2026-11-28T02:17:46.446220746Z",
        LOG.create-genie_one_mcp-logfood:   "created_by": "tester@databricks.com",
        LOG.create-genie_one_mcp-logfood:   "effective_owner": "tester@databricks.com",
        LOG.create-genie_one_mcp-logfood:   "metastore_id": "7a1112d8-1172-2965-7a11-12d811722ad0",
        LOG.create-genie_one_mcp-logfood:   "name": "mcp-services/system.ai.genie_one_mcp",
        LOG.create-genie_one_mcp-logfood:   "updated_by": "tester@databricks.com"
        LOG.create-genie_one_mcp-logfood: }
    acceptance_test.go:1180: 
        LOG.create-github-logfood: {
        LOG.create-github-logfood:   "comment": "Repositories, issues, pull requests",
        LOG.create-github-logfood:   "config": {
        LOG.create-github-logfood:     "source_connection": {
        LOG.create-github-logfood:       "name": "connections/github",
        LOG.create-github-logfood:       "options": {
        LOG.create-github-logfood:         "oauth_provider": "OAUTH_PROVIDER_GITHUB_MCP"
        LOG.create-github-logfood:       }
        LOG.create-github-logfood:     }
        LOG.create-github-logfood:   },
        LOG.create-github-logfood:   "create_time": "2026-11-28T02:17:46.462260405Z",
        LOG.create-github-logfood:   "created_by": "tester@databricks.com",
        LOG.create-github-logfood:   "effective_owner": "tester@databricks.com",
        LOG.create-github-logfood:   "metastore_id": "7a1112d8-1266-e8ad-7a11-12d81266e9bf",
        LOG.create-github-logfood:   "name": "mcp-services/system.ai.github",
        LOG.create-github-logfood:   "updated_by": "tester@databricks.com"
        LOG.create-github-logfood: }
TestAccept/cmd/aitools/mcp/login-flips-active: branch ✅ | main (e6f3460) ❌ | latest (v1.28.0) ❌

main (e6f3460):

acceptance_test.go:1402: Diff:
        --- cmd/aitools/mcp/login-flips-active/output.txt
        +++ /tmp/TestAcceptcmdaitoolsmcplogin-flips-active2537659052/002/output.txt
        @@ -78,13 +78,6 @@
         Signed in to system.ai.github on profile logfood.
         
         >>> jq [.servers[] | {name, service, profile, agents: (.agents | keys)}] home/.databricks/aitools/mcp.json
        -[
        -  {
        -    "name": "github-logfood",
        -    "service": "system.ai.github",
        -    "profile": "logfood",
        -    "agents": [
        -      "claude-code"
        -    ]
        -  }
        -]
        +jq: error: Could not open file home/.databricks/aitools/mcp.json: No such file or directory
        +
        +Exit code: 2
        
    acceptance_test.go:1180: 
        LOG.create-genie_one_mcp-logfood: {
        LOG.create-genie_one_mcp-logfood:   "comment": "Ask questions about your data",
        LOG.create-genie_one_mcp-logfood:   "create_time": "2026-11-28T02:17:36.553794462Z",
        LOG.create-genie_one_mcp-logfood:   "created_by": "tester@databricks.com",
        LOG.create-genie_one_mcp-logfood:   "effective_owner": "tester@databricks.com",
        LOG.create-genie_one_mcp-logfood:   "metastore_id": "7a1112d5-c3cf-b7c4-7a11-12d5c3cfb923",
        LOG.create-genie_one_mcp-logfood:   "name": "mcp-services/system.ai.genie_one_mcp",
        LOG.create-genie_one_mcp-logfood:   "updated_by": "tester@databricks.com"
        LOG.create-genie_one_mcp-logfood: }
    acceptance_test.go:1180: 
        LOG.create-github-logfood: {
        LOG.create-github-logfood:   "comment": "Repositories, issues, pull requests",
        LOG.create-github-logfood:   "config": {
        LOG.create-github-logfood:     "source_connection": {
        LOG.create-github-logfood:       "name": "connections/github",
        LOG.create-github-logfood:       "options": {
        LOG.create-github-logfood:         "oauth_provider": "OAUTH_PROVIDER_GITHUB_MCP"
        LOG.create-github-logfood:       }
        LOG.create-github-logfood:     }
        LOG.create-github-logfood:   },
        LOG.create-github-logfood:   "create_time": "2026-11-28T02:17:36.600974569Z",
        LOG.create-github-logfood:   "created_by": "tester@databricks.com",
        LOG.create-github-logfood:   "effective_owner": "tester@databricks.com",
        LOG.create-github-logfood:   "metastore_id": "7a1112d5-c69f-a0f6-7a11-12d5c69fa23d",
        LOG.create-github-logfood:   "name": "mcp-services/system.ai.github",
        LOG.create-github-logfood:   "updated_by": "tester@databricks.com"
        LOG.create-github-logfood: }
FAIL

latest (v1.28.0):

acceptance_test.go:1402: Diff:
        --- cmd/aitools/mcp/login-flips-active/output.txt
        +++ /tmp/TestAcceptcmdaitoolsmcplogin-flips-active1540071709/002/output.txt
        @@ -78,13 +78,6 @@
         Signed in to system.ai.github on profile logfood.
         
         >>> jq [.servers[] | {name, service, profile, agents: (.agents | keys)}] home/.databricks/aitools/mcp.json
        -[
        -  {
        -    "name": "github-logfood",
        -    "service": "system.ai.github",
        -    "profile": "logfood",
        -    "agents": [
        -      "claude-code"
        -    ]
        -  }
        -]
        +jq: error: Could not open file home/.databricks/aitools/mcp.json: No such file or directory
        +
        +Exit code: 2
        
    acceptance_test.go:1180: 
        LOG.create-genie_one_mcp-logfood: {
        LOG.create-genie_one_mcp-logfood:   "comment": "Ask questions about your data",
        LOG.create-genie_one_mcp-logfood:   "create_time": "2026-11-28T02:17:46.248603389Z",
        LOG.create-genie_one_mcp-logfood:   "created_by": "tester@databricks.com",
        LOG.create-genie_one_mcp-logfood:   "effective_owner": "tester@databricks.com",
        LOG.create-genie_one_mcp-logfood:   "metastore_id": "7a1112d8-05aa-c284-7a11-12d805aac39b",
        LOG.create-genie_one_mcp-logfood:   "name": "mcp-services/system.ai.genie_one_mcp",
        LOG.create-genie_one_mcp-logfood:   "updated_by": "tester@databricks.com"
        LOG.create-genie_one_mcp-logfood: }
    acceptance_test.go:1180: 
        LOG.create-github-logfood: {
        LOG.create-github-logfood:   "comment": "Repositories, issues, pull requests",
        LOG.create-github-logfood:   "config": {
        LOG.create-github-logfood:     "source_connection": {
        LOG.create-github-logfood:       "name": "connections/github",
        LOG.create-github-logfood:       "options": {
        LOG.create-github-logfood:         "oauth_provider": "OAUTH_PROVIDER_GITHUB_MCP"
        LOG.create-github-logfood:       }
        LOG.create-github-logfood:     }
        LOG.create-github-logfood:   },
        LOG.create-github-logfood:   "create_time": "2026-11-28T02:17:46.281071916Z",
        LOG.create-github-logfood:   "created_by": "tester@databricks.com",
        LOG.create-github-logfood:   "effective_owner": "tester@databricks.com",
        LOG.create-github-logfood:   "metastore_id": "7a1112d8-079a-30c6-7a11-12d8079a3206",
        LOG.create-github-logfood:   "name": "mcp-services/system.ai.github",
        LOG.create-github-logfood:   "updated_by": "tester@databricks.com"
        LOG.create-github-logfood: }
FAIL

2 more failure details omitted, see the full report in the run.

@eng-dev-ecosystem-bot

eng-dev-ecosystem-bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Collaborator

✅ Integration test report

Commit: c3d8e68

Run: 46097012333

Env 💚​RECOVERED ✅​pass 🙈​skip Time
💚​ aws linux-2core-8gb 1 173 27 4:47
💚​ aws-windows-latest-4core-16gb 1 173 27 3:57
💚​ azure linux-2core-8gb 1 172 27 3:27
💚​ azure-windows-latest-4core-16gb 1 172 27 3:43
💚​ gcp linux-2core-8gb 1 173 27 3:59
💚​ gcp-windows-latest-4core-16gb 1 173 27 3:39
Test Name aws linux-2core-8gb aws-windows-latest-4core-16gb azure linux-2core-8gb azure-windows-latest-4core-16gb gcp linux-2core-8gb gcp-windows-latest-4core-16gb
💚​ TestAccept 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R
Top 6 slowest tests (at least 2 minutes):
duration env testname
3:59 gcp linux-2core-8gb TestAccept
3:55 aws-windows-latest-4core-16gb TestAccept
3:52 aws linux-2core-8gb TestAccept
3:42 azure-windows-latest-4core-16gb TestAccept
3:37 gcp-windows-latest-4core-16gb TestAccept
3:19 azure linux-2core-8gb TestAccept

denik and others added 2 commits November 28, 2026 00:20
…file

The section in the skills state file is no longer removed: a v1.28.0 binary
on the same machine still reads it, and removing it could drop a record that
binary added later. The records file is kept when it has no servers, so that
it stays the only source once it exists. MCP code no longer writes the skills
state file at all.

A records file from a newer CLI is read for the fields this CLI knows, so
serve and list keep working, and add and remove refuse it before they change
an agent config. A file without a schema version is refused.

Co-authored-by: Isaac <no-reply@databricks.com>
# Conflicts:
#	acceptance/cmd/aitools/mcp/agent-cli-concurrent-edit/script
#	acceptance/cmd/aitools/mcp/state-across-cli-versions/output.txt
#	acceptance/cmd/aitools/mcp/state-across-cli-versions/script
#	acceptance/cmd/aitools/mcp/state-across-cli-versions/test.toml

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants