Feature: expose tool input schemas in CLI mode

Đang mở
#3,057 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
55/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
c
Lĩnh vực
cli

Hướng nghiên cứu

Start by locating the CLI argument parsing and per-tool help code, then find the existing input schema source it uses. Trace how CLI-specific flag names and aliases are represented and how command startup opens the index or starts an MCP session. Done means a schema command prints the selected tool's argument names, types, defaults, and applicable CLI names as JSON, then exits without starting a session or opening an index.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

editor/integration enhancement
Problem

I use the local CLI from scripts and coding agents. codebase-memory-mcp cli search_code --help is useful for people, but a script has to scrape it or keep its own copy of the supported arguments. For example, the ranked-page flag is --result-offset on search_code and --offset on search_graph. Our local checker has to keep that distinction in a small version-specific table.

Request

Could the CLI expose a tool's argument schema as JSON, for example:

codebase-memory-mcp cli --schema search_code

The exact spelling is flexible. The command would print the schema on stdout and exit without opening an index or starting an MCP session. Reusing the schema that already powers per-tool help would give local automation a stable way to check names, types, and defaults. If there are CLI-specific flag names or aliases, it would be useful to include those too.

I checked the CLI on v0.12.1. This is about input discovery, not making tool results JSON by default (see #2298).

Ngôn ngữ chính
C
Star
45.8k
Fork
3.8k
Merge trung bình
2 ngày 18 giờ
Pull request đã merge (30 ngày)
108

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của DeusData/codebase-memory-mcp

Tất cả issue của DeusData/codebase-memory-mcp

Issue tương tự

Thêm issue về C

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.