Skip to content

feat(mcp): add uteke_doc_move tool - #591

Merged
ajianaz merged 1 commit into
developfrom
feat/585-mcp-doc-move
Jul 6, 2026
Merged

ajianaz merged 1 commit into
developfrom
feat/585-mcp-doc-move

Conversation

@ajianaz

@ajianaz ajianaz commented Jul 6, 2026

Copy link
Copy Markdown
Collaborator

Summary

Closes #585

Add uteke_doc_move tool to uteke-mcp, enabling MCP agents to reorganize document hierarchy.

Changes

  • tool_doc_move() — tool definition with inputSchema (id, parent, namespace)
  • exec_doc_move() — executor calling uteke.doc_move()
  • Registered in tools/list and tools/call dispatcher

Tool Schema

{
  "name": "uteke_doc_move",
  "description": "Move a document to a new parent or root. Updates parent_id in the documents table.",
  "inputSchema": {
    "type": "object",
    "properties": {
      "id": { "type": "string", "description": "Document UUID or slug to move" },
      "parent": { "type": "string", "description": "New parent document slug or UUID. Omit to move to root." },
      "namespace": { "type": "string", "description": "Namespace (optional)" }
    },
    "required": ["id"]
  }
}

Testing

  • rustfmt --check passes on modified file
  • cargo check not runnable locally (missing OpenSSL for transitive ort-sys dep), relies on CI

@ajianaz ajianaz added type:feature New feature scope:mcp MCP (Model Context Protocol) server tools labels Jul 6, 2026
@github-actions

github-actions Bot commented Jul 6, 2026 •

Copy link
Copy Markdown

🔍 Cora AI Code Review

⚠️ Review recommended — warnings found.

🟡 Warning (1)

  • unknown:? — Cora AI review could not complete: LLM API returned status 500: Error proxying request to container: There are more than 4096 concurrent connections inbound to the container, surpassing the limit. Review was skipped; no code quality issues were found by the automated check.

Review powered by cora-cli · BYOK · MIT

- Add tool_doc_move() with inputSchema: id (required), parent (optional), namespace (optional)
- Add exec_doc_move() calling uteke.doc_move()
- Register in tools/list and tools/call dispatcher
@ajianaz
ajianaz force-pushed the feat/585-mcp-doc-move branch from 2dc8be9 to 03d2e33 Compare July 6, 2026 14:26
@ajianaz
ajianaz merged commit 36061f5 into develop Jul 6, 2026
9 checks passed
@ajianaz
ajianaz deleted the feat/585-mcp-doc-move branch July 6, 2026 14:31
ajianaz added a commit that referenced this pull request Aug 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope:mcp MCP (Model Context Protocol) server tools type:feature New feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

MCP: add uteke_doc_move tool

1 participant