Skip to content

[DO NOT MERGE] Experiment: model-free tool CLI and MCP server on one adapter - #1609

Draft
hkaltai wants to merge 1 commit into
mainfrom
tool-cli-daemon
Draft

hkaltai wants to merge 1 commit into
mainfrom
tool-cli-daemon

Conversation

@hkaltai

@hkaltai hkaltai commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

Do not merge — just experiments. This branch exists only to evaluate how Claude Code (and other agents) should call altimate-code data tools directly, over MCP or from the shell.

What this experiment contains

Validation

🤖 Generated with Claude Code


Summary by cubic

Experimental branch, not for merge: evaluates how external coding agents call altimate-code data tools directly, via a new model-free tool CLI or mcp serve over stdio.

  • tool list | schema | run | context | daemon and mcp serve execute the same adapter, so both share compact schemas, sql_execute options, result spill files, answer_commit, and read-only enforcement.
  • A per-project daemon keeps connections and the schema cache warm between calls and releases DuckDB/SQLite file locks.
  • mcp serve defaults to the original five tools plus impact, lineage, PII, data-diff, equivalence and translation tools; --all-tools opens the full 70-tool allow-list.
  • MCP requests are forced read-only; DROP DATABASE, DROP SCHEMA and TRUNCATE stay blocked even with --allow-write.
  • link --claude-md writes CLI routing guidance into CLAUDE.md for clients that cannot use MCP.

Behavior changes

  • schema_inspect lists schemas and up to 500 tables with catalog row estimates when table is omitted; MongoDB catalog discovery is bounded and closes cursors early.
  • answer_commit accepts asked and readings arguments, and its rejection checks moved into a dedicated module with per-turn limits.
  • The analyst now requests high reasoning effort on adaptive-thinking models unless the user or agent config sets one.

Validation: typecheck clean; test/altimate/tool-cli + test/cli/help 50/50; ALTIMATE_MCP_E2E=1 test/altimate/mcp-server 101/101; other affected test files 761/761.

Written for commit 18e72ea. Summary will update on new commits.

View guided diff Turn on auto-fix

Do not merge: experiment for evaluating direct altimate-code tools in Claude Code.

- Bring in `altimate-code mcp serve` and the workspace tools from the MCP draft branches
- `tool list|schema|run|context|daemon`: run the same adapter as `mcp serve` without a model
- `mcp serve` default set adds impact, lineage, PII, data-diff, equivalence and translation tools; `--all-tools` exposes the full allow-list
- Long-running per-project process keeps connections warm and releases DuckDB/SQLite file locks between calls
- `--connections` / `ALTIMATE_TOOL_CONNECTIONS`, `--args -` from stdin, `tool schema` for one tool
- DROP DATABASE, DROP SCHEMA and TRUNCATE stay blocked even with `--allow-write`
- `link --claude-md` writes CLI routing guidance for clients without MCP

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Oct 28, 2026

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions

Copy link
Copy Markdown

This PR doesn't fully meet our contributing guidelines and PR template.

What needs to be fixed:

  • PR description is missing required template sections. Please use the PR template.
  • "Cost side effects" section is missing or empty. Describe any model calls, queries or cloud resources whose cost grows with user data, or write "None".

Please edit this PR description to address the above within 2 hours, or it will be automatically closed.

If you believe this was flagged incorrectly, please let a maintainer know.

@github-actions

Copy link
Copy Markdown

Hey! Your PR title [DO NOT MERGE] Experiment: model-free tool CLI and MCP server on one adapter doesn't follow conventional commit format.

Please update it to start with one of:

  • feat: or feat(scope): new feature
  • fix: or fix(scope): bug fix
  • docs: or docs(scope): documentation changes
  • chore: or chore(scope): maintenance tasks
  • refactor: or refactor(scope): code refactoring
  • test: or test(scope): adding or updating tests

Where scope is the package name (e.g., app, desktop, opencode).

See CONTRIBUTING.md for details.

@github-actions

Copy link
Copy Markdown

👋 This PR was automatically closed by our quality checks.

Common reasons:

  • New GitHub account with limited contribution history
  • PR description doesn't meet our guidelines
  • Contribution appears to be AI-generated without meaningful review

If you believe this was a mistake, please open an issue explaining your intended contribution and a maintainer will help you.

@github-actions

Copy link
Copy Markdown

👋 This PR was automatically closed by our quality checks.

Common reasons:

  • New GitHub account with limited contribution history
  • PR description doesn't meet our guidelines
  • Contribution appears to be AI-generated without meaningful review

If you believe this was a mistake, please open an issue explaining your intended contribution and a maintainer will help you.

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.

1 participant