Feature request: Expose HackMD comments through the API and MCP
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Ít trao đổi
- Công nghệ
- typescript
Hướng nghiên cứu
Bắt đầu từ các đường dẫn mã của hackmd-cli cho API công khai, CLI và các tích hợp MCP, sau đó so sánh các khả năng note-update hiện có của chúng với quy trình bình luận được yêu cầu. Công việc hoàn tất khi có thể liệt kê và lọc các bình luận, lấy văn bản và anchor của chúng, quản lý các phản hồi, giải quyết hoặc mở lại các thread, đồng thời duy trì danh tính của bình luận qua các lần cập nhật ghi chú.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
I want to use HackMD as the review interface for content stored in Git.
Git is the single source of truth. An automated process updates the HackMD note from the repository, reviewers leave comments in HackMD, and an agent processes those comments into a GitHub pull request.
HackMD currently supports programmatic note updates, but comments are not available through the public API, CLI or MCP.
Desired workflow
-
Content is pushed from Git to an existing HackMD note.
-
Reviewers leave paragraph or text-selection comments.
-
An agent retrieves open comments.
-
The agent classifies comments as:
- safe to action automatically;
- requiring clarification;
- requiring operator review;
- not actionable.
-
The agent applies appropriate changes on a Git branch and creates a pull request.
-
The operator reviews and merges the pull request.
-
The merged content is pushed back to HackMD.
-
Actioned comments are resolved.
-
Remaining comments stay open for later review.
Required capabilities
Please expose note comments through the public API and HackMD MCP.
The integration needs to:
- list comments for a note;
- filter open, resolved or recently updated comments;
- retrieve comment text, replies, author and timestamps;
- retrieve selected text and anchor context;
- identify comments whose anchors are no longer valid;
- reply to comments;
- resolve and reopen comment threads.
Incremental retrieval through webhooks or an updatedSince filter would also be useful.
Suggested MCP tools
list_note_comments
get_note_comment
reply_to_note_comment
resolve_note_comment
reopen_note_comment
Key requirement
Updating an existing note must preserve comment identity.
When a comment can no longer be attached to the current text, the API should return it as detached while preserving the original selected text and surrounding context.
Why this matters
This would allow HackMD to remain the human-friendly review surface while Git remains authoritative.
HackMD would manage comments and review context. External systems would manage branches, pull requests, automated changes and approvals.
- Ngôn ngữ chính
- TypeScript
- Star
- 176
- Fork
- 13
- Merge trung bình
- 4 giờ 35 phút
- Pull request đã merge (30 ngày)
- 4
Chuẩn bị môi trường
Chúng tôi chưa kiểm tra các tệp thiết lập môi trường của dự án này. 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
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của hackmdio/hackmd-cli
-
Config commandĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
hackmdio/hackmd-cli#45 · 2 bình luận ·
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
hackmdio/hackmd-cli#118 ·
-
login problemĐang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 45/100
hackmdio/hackmd-cli#108 · 1 bình luận ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 52/100
hackmdio/hackmd-cli#89 ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
hackmdio/hackmd-cli#87 ·
Tất cả issue của hackmdio/hackmd-cli
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
openedx/frontend-app-authoring#3274 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
🎙️ task - fix(deployer): deploy --env prep runs deploy:dev where the repo declares deploy:prepĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
-
area/documentation status/need-triage
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 95/100
google-gemini/gemini-cli#29548 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
sdk-typescript vector-store
Độ khó 2/5 Nửa ngày Mức phù hợp với người mới 82/100
mem0ai/mem0#7495 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 1 ngày