Saltar al contenido
ClickHouse Loom
Esc
↑↓navegar↵abrir⌘Jvista previa
En esta página

MCP source setup

MCP source controls register a fixed selection against the signed-in owner’s connection and an ordinary destination namespace or collection. They use the common operation transport and the existing source registry, state and retirement machinery. The automatic personal namespace cannot hold these sources.

Setup and identity

Connect an account, discover its configured read capabilities, choose exact resource IDs and a destination, then preview the access rule before registration. Connecting, listing and previewing import no documents. Approved profile responses include the exact ASCII HTTPS credential-destination origin. A display label is not a verified remote account identity. Registration discovers whether the configured resources or reviewed read mapping are available. An action-only server cannot pass this check. Discovery does not read the selection or prove that the owner can read each document.

knowledge.source.mcp_add takes org, namespace, the owner’s slot, a UUID request_id, ordered resource_ids, mode, reader_policy, an optional label and confirm_copy_authority. It accepts no owner, endpoint, tool mapping, schema or credential. Operator configuration and the authenticated connection supply those values. The configured selection and UTF-8 byte limits apply before admission.

The registry name and source UUID derive from the organization, destination, canonical owner, connection slot and request UUID. Labels are bounded display metadata. Retrying a lost response returns only the exact active registration with the same binding, selection, mode, audience and label. Changed arguments, a stopped connection, a paused or retired source, or a replacement connection refuse. knowledge.source.mcp_inspect can reconcile the original owned slot and request UUID without repeating the mutation. A replacement binding requires a separate registration and consent; existing copies, history and checkpoints keep their identity.

Modes and access

Mode Stored content Scope and refresh
live No knowledge copy Only selected IDs; durable import and explicit refresh are unavailable
snapshot A selected copy One import per selection or explicit refresh
selected_refresh A selected copy Periodic attempts for those exact IDs when source sync is enabled

No mode includes recursion or future matching items. Notifications, incomplete listings, read refusals and missing resources are not deletion instructions. Upstream ACLs, complete enumeration and deletion tracking remain unsupported. A registered state is not an attestation of current upstream access. Responses report whether global source sync is disabled; accepting a refresh request does not mean an import has completed.

owner_only requires both the source owner and current destination access. Adding collection members or broadening inherited grants does not publish this material. collection_copy means intentional publication through the destination’s current, inherited and future reader grants. It does not mirror upstream permissions.

A collection copy requires an approved operator profile, current destination administrator authority and explicit confirmation of publication authority over the exact selected material. The handler creates a versioned consent record binding the authenticated publisher, destination and hash of the ordered exact IDs. The caller cannot supply this proof. An update of a collection copy requires fresh confirmation. Every later read also requires current source, connection, profile and destination authority. Publication audience is immutable for a registration: a private-to-team change requires a new source and fresh upstream reads. Existing private document history is never republished through an update. Live sharing is unsupported.

Every stored document carries the scope digest and server time of its actual successful selected read. Reads require the current selected URI and digest, within the reported read_evidence_stale_seconds bound. Selection and mode changes advance a server-controlled scope_revision; removing and re-adding an identity cannot reuse old read proof. Labels and pause preserve this revision. A snapshot stops automatic refresh, so its read access expires until an explicit refresh renews evidence. Bytes remain stored. Neither source-level completion nor retained bytes grant read access. Both reader policies use protected mirrors; collection grants alone cannot bypass the source checks.

Lifecycle controls

Operation Effect on source and retained content
knowledge.source.mcp_list Lists only the caller’s registrations in the requested destination
knowledge.source.mcp_inspect Returns only an owned source; a foreign ID answers as missing
knowledge.source.mcp_update Replaces selection, mode and label; the audience is fixed, and retained IDs keep source document identity
knowledge.source.mcp_pause Sets contract pause state; retains registration, copies and checkpoints
knowledge.source.mcp_resume Revalidates the original connection binding before clearing pause
knowledge.source.mcp_refresh Requests an explicit import attempt for a copy mode through existing source state
knowledge.source.mcp_remove Retires the source, retaining copies unless delete_documents=true explicitly requests asynchronous erasure

Removing selected IDs does not declare upstream deletion or request erasure of stored copies. Retirement and pause refuse source reads while retaining content; retention does not promise that the copies remain readable. Erasure requests use the existing retirement machinery and report erasure_requested, without claiming deletion has finished. Unsupported contract versions remain opaque and can be inspected as unsupported or retired without interpreting their payloads.

Disabling self-service blocks registration before any remote discovery. Existing list, inspect and remove controls remain available. Selection changes use the existing connection and cannot replace credentials.

Write boundary

Remote discovery finishes before writer locks are taken. Mutations acquire the SCIM subject barrier, connection account lease and destination source lease in that order. Under those locks they recheck the caller, destination grants, namespace validity, erasure state and exact stored registration. Add also checks name availability and existing quotas. Immediately before admission, the registration authority checks the current connection, profile approval, standing, fence and destination writer authority.

Generic source rows carry generic_config_json, generic_items_json, connection_slot and a contract version. The ordinary config and items projections remain empty. Application codecs apply deployment limits to the stored opaque columns. Source changes retain the registration UUID and use the existing store’s complete version-row writes. The common source worker dispatches supported selected copies to the MCP engine; live and paused sources do not schedule imports. No separate source database or worker framework is introduced.

Refresh requests merge into existing state without clearing checkpoints. A selection marker prevents a label-only change from requesting another snapshot. Mutation audit subjects omit private source labels, resource IDs and counts.

See document sources for the shared document, retirement and erasure lifecycle.

Live retrieval and retention

The existing protected live-search route uses an explicitly approved search mapping. It intersects one bounded candidate page with the saved selection, then performs an actual selected read for each retained result. Search snippets and resource listings carry no read proof. A resource-only server supports direct selected live reads; it does not thereby expose a search operation. Neither path imports content or saves a memory. Returned citations use the stable source resource URI, not an untrusted result link.

Protected publication rechecks the requesting reader, source and connection and repeats retained reads before release. Changed content, schema drift or lost authority drops the result. A configured preissued bearer is sent only to the approved upstream origin; Loom credentials are never forwarded. Interactive OAuth enrollment, refresh, local commands and legacy SSE are unsupported.

The host holds live content while the request runs. Protected-result handling, private diagnostics, session protection and the existing publication machinery still apply; this is not a promise of zero host, client or conversation retention. Imports persist ordinary documents, originals and chunks under the existing storage authority and erasure rules. Pausing, disconnecting, removing a selection or retiring a source retains those bytes unless the writer explicitly requests erasure. No upgrade deletes content or infers a replacement service endpoint.

¿Te ha resultado útil esta página?