Import selected MCP resources with explicit sync and access guarantees
Maintainer thường phản hồi trong vòng 1 ngà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
- 12/100
Hướng nghiên cứu
This is a design-level proposal: read issue #1189 first, then the source request model at server/knowledge/api/models_sources.py (line ~170) to see how source kinds and selected items are expressed today, and follow the existing knowledge write path from source ingestion through extraction and indexing. Treat the open pull request #1227 as work already under way and coordinate with it rather than starting fresh. Done means the capability contract, selection/preview, refresh and erasure semantics in the acceptance criteria are implemented and covered by deterministic tests for repeat import, changed content, lost access and cancellation.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Component
Knowledge (documents)
Use case
A user wants a few documents from an existing MCP server indexed in Loom, while leaving the rest of the service untouched. They need to know whether this is a saved snapshot, a periodically refreshed selection or a source whose permissions remain synchronized.
A readable tool response is not enough evidence to promise reliable synchronization or sharing with other people.
Describe the solution you'd like
Add selected import on top of the common outbound MCP source. Reuse knowledge documents, extraction, indexing and source lifecycle operations. Publish a capability contract that determines which behaviors a source can offer.
Acceptance criteria:
- Import only explicitly selected resource identities or supported selection rules. Listing a server or connecting an account imports nothing. Folder recursion and inclusion of future items require an explicit choice.
- Retain the source connection, stable resource identity, citation address and revision or content hash with each imported document. Repeated imports update the same source document instead of creating unrelated copies.
- Distinguish live lookup, selected snapshots and continuous synchronization in API responses and the UI. Offer each mode only when the server or its reviewed mapping supplies the required contract.
- Use resource subscriptions or list-change notifications as refresh hints, not as proof of a complete change or deletion history. A partial listing, timeout, permission refusal or tool error cannot be interpreted as a successful complete listing or deletion.
- Make update, disappearance, access-loss and explicit-removal behavior part of the source contract. Preserve existing stale-access refusal, retirement and erasure behavior. Show an unsupported capability instead of claiming synchronization that cannot be verified.
- If per-document reader permissions cannot be established, imported personal material stays owner-only. Do not infer permissions from a tool description, email in returned text, collection membership or the fact that the source owner could read it. Any intentional team publication needs its own explicit authority and existing organization policy.
- Support editing the selection, an explicit refresh, pause, source retirement and deletion of stored copies through consistent API, SDK, CLI and UI operations. Explain which actions retain the copy and which request erasure.
- Preview the selected scope and storage mode before import. Bound enumeration, content sizes, work and retries using the existing source worker controls. Never request an entire workspace to implement an individual-resource selection.
- Use deterministic tests for repeat import, changed content, incomplete pagination, lost access, unavailable permissions, cancellation and isolation between two users. Exercise the actual knowledge write path; no model benchmark or paid provider is required.
Describe alternatives you've considered
A one-off tool call followed by knowledge.add loses the continuing source identity and lifecycle. A new provider-specific connector can add capabilities absent from an MCP server, but should not be required merely to fetch and store a selected resource.
Where the need comes from
The need is mine, an AI tool helped shape the proposal
Additional context
Product proposal from source review, not a claim that arbitrary MCP servers currently support these guarantees. The current source input accepts native source kinds and selected items or links: source request model.
Depends on https://github.com/ClickHouse/loom/issues/1189. Build on the common outbound MCP source. Existing access checks and source lifecycle remain prerequisites; this issue does not weaken them to accommodate a server with fewer capabilities.
- Ngôn ngữ chính
- Python
- Star
- 263
- Fork
- 47
- Merge trung bình
- 14 giờ 21 phút
- Pull request đã merge (30 ngày)
- 873
Chuẩn bị môi trường
Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.
- Có Dockerfile hoặc tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
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 ClickHouse/loom
-
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 76/100
ClickHouse/loom#2014 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Options of loom period-digest, reextract, reconcile-status and demote-activity-narration print no help textCó thể đã có người làm @VanshajPoonia đã nhận hôm nay. Đang mởbug good first issue help wanted up-for-grabs
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
ClickHouse/loom#1988 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
A compiler-tier checkout fetch from a shallow mirror never records its headCó thể đã có người làm @KaloyanNaumov đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 35/100
ClickHouse/loom#2016 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Delta workers fetch the compiler-tier checkout under a hard-coded 600 s limitCó thể đã có người làm @KaloyanNaumov đã nhận hôm nay. Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 35/100
ClickHouse/loom#2012 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
loom participant retire cannot retire an orphaned participant after container replacement or host rebootCó thể đã có người làm @l0K1ngg đã nhận hôm nay. Đang mởbug help wanted up-for-grabs
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
ClickHouse/loom#2007 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của ClickHouse/loom
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
TigreGotico/orthography2ipa#2950 ·
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 78/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Unstructured-IO/unstructured#4876 ·
Maintainer thường phản hồi trong vòng 6 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
openfoodfacts/openfoodfacts-python#579 ·
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 90/100
fairagro/m4.2_sql_to_arc#388 ·
Maintainer thường phản hồi trong vòng 1 ngày