Repository navigation
Description
Component
Knowledge (documents)
Use case
A user already has an MCP server for a document service and wants Loom to search or read selected knowledge through it. Supporting that service should not require a new provider-specific connector in Loom.
Loom already serves MCP to agents and supports live lookup through native connected sources. The missing workflow is consuming an external MCP server as a knowledge source. These are different directions of integration.
Describe the solution you'd like
Make an outbound, read-only MCP source the default integration path for new services. Reuse the existing knowledge retrieval, provenance and private-result handling rather than introducing a general agent execution service.
Acceptance criteria:
- Support remote HTTP MCP discovery and per-user authorization. Bind each connection to its signed-in owner and organization. Keep credentials sealed and out of prompts, tool arguments and public diagnostics. Preserve token audience and origin checks.
- Use standard resource listing and reading where available. For servers that expose search and read as tools, accept an explicit reviewed mapping of tool names, arguments and result fields. Do not require a new provider SDK or compiled connector for each mapping.
- Discover and display supported capabilities. An MCP server with search and read is not assumed to provide complete enumeration, revisions, deletion events or document permissions. Tool descriptions and read-only hints alone do not authorize execution.
- Allow only the configured read operations. Neither model output nor returned content can select another endpoint, connection, identity or tool. Apply bounded requests, result sizes, pagination, cancellation and operator-controlled endpoint policy.
- Return normalized evidence with source identity, citation address and an actual read receipt. A second user cannot borrow the first user's connection or cached results. Revocation prevents subsequent reads and delivery under the existing privacy contract.
- Live lookup does not create a durable knowledge index or save memories. State what transient processing, diagnostic records and downstream host retention still occur; do not describe ephemeral retrieval as an unconditional no-retention guarantee.
- Demonstrate the same client with two independent test servers: one exposing resources and one exposing mapped tools. Cover denied access, revoked credentials, invalid result schemas, cancellation and an attempted tool/scope expansion without model calls.
- Provide the same connection and source controls through the API, supported SDKs, CLI and dashboard. Keep intended answer audience separate from the source owner's ability to read.
Existing native integrations need not be removed by this issue. A future native connector should name a required capability that the available MCP server cannot supply; connection errors must not cause an automatic switch to broader credentials.
Describe alternatives you've considered
Adding another native API integration for each requested service duplicates connection and retrieval work. Exposing every discovered tool to an agent makes Loom responsible for unrelated actions and does not establish a knowledge-source contract.
Where the need comes from
The need is mine, an AI tool helped shape the proposal
Additional context
Product request based on source and API review, not a reproduced runtime incident. No external service or private dataset was queried for this proposal.
Build on live connected-source lookup in #890 and private MCP result handling in #1067. #1181 covers the audience of an agent's answer. #869 covers administrator control of self-service source registration.
The MCP resources specification defines listing and reading, with optional change notifications. The tools specification defines tool schemas rather than a common application-specific search or permission schema.
Activity
zlareb1 commentedon Nov 23, 2026
Implementation remains incomplete. The bounded client prerequisite is tracked in #1194, and storage/lifecycle preparation in #1209. Both are rebased onto the separate main correction in #1213 and have fresh entire-source reviews with no verified findings. Exact-head normal hosted checks remain mandatory; neither is being merged on a waiver.
The unpublished integration branch now includes owner-scoped connection operations, bounded profile configuration and explicit structured, JSON-text and plain-text mappings. Synthetic interoperability has94selected passing cases. Connection handling has50focused cases. Source execution uses actual official-SDK resources and mapped tools through knowledge upsert, original/chunk builders and guarded publication; the latest54case module passes after correcting the actual opaque-store representation and adding selection-bound publication consent and pause checks. These are unit store seams, not database, bucket, search-index or external provider qualification.
The access preview reports owner-only versus explicit collection publication and unsupported upstream ACL evidence. Team destinations do not by themselves broaden private source material. Reader checks, live retrieval, complete setup/edit surfaces and native connector removal are still in progress. No runtime configuration, mirror activation, deployment or external service qualification has occurred.
Quality gaps remain explicit. The normal analyzer gate needs its actual generated SQL-shape manifest, and the new operation reach manifest must come from the actual generator. Those full captures will remain hosted; no protected integration fixture is opened locally. No paid model/provider/benchmark call, production data or local database is used. A local budget lookup accidentally used regex dots and matched a guarded setting definition; it was stopped, recorded and not investigated further. A stopped function-gate location lookup is also retained without an alternate lookup. No bound, assertion or gate is relaxed.
zlareb1 commentedon Nov 23, 2026
Both prerequisite branches now include current main. The client head is
04992b44c41bb65b71626491ea7e49cee5da664a; the lifecycle head is3b69a89aaa1dce9424e2499620bc2cd1f254de91. Fresh independent whole-source reviews and exact-head hosted checks are running. The prior client head passed all 59 checks; that result does not approve the new head.The prior lifecycle head passed both storage-authority qualification cells. Ordinary CI still failed. The analyzer manifest differs by three added and three removed statement shapes; the new workflow preserves that failure and exports the actual generator candidate. The other failing unit shard identifies the three new codec settings missing from the generated defaults snapshot. The correction and another review/check cycle remain required. No gate or threshold has been relaxed.
The general source implementation is still incomplete. Newly authored focused controls cover immutable publication audience, monotonic selection revisions and owner/namespace-bound pagination without selected resource IDs: 29 cases pass. Protected document admission now requires a current per-document selected-read proof; 12 focused cases pass, including stale/future times, changed selection, unselected identities and malformed shared-mode registration. These synthetic checks do not qualify actual database writes, external servers, deployment or the full privacy path. Native replacement, remaining public surfaces and hosted end-to-end qualification remain outstanding.
zlareb1 commentedon Nov 23, 2026
The current general-source implementation remains unpublished and incomplete. The selected refresh engine and protected live path now share successful-read validation. A focused 85-case batch passes against real SDK resource and mapped-tool fixtures with explicit storage/embedding seams. Unchanged content refreshes only access and read metadata; it preserves original bytes, chunks, revision and authorship. Per-item read failure invalidates that item's evidence without deleting bytes. These are unit results, not database, external-server or full privacy qualification.
The common worker now routes supported MCP copy modes to that engine and excludes live, paused and unsupported selections. New route/state cases pass. Protected indexed admission requires each document's current selection digest and read time; snapshot access expires without explicit refresh while bytes remain stored. Publication audience is fixed per source registration. The source setup and preview explain these limits. New request-UUID reconciliation inspects an uncertain source save without repeating its mutation.
Both prerequisites have fresh whole-source reviews with no findings: client
04992b44c41bb65b71626491ea7e49cee5da664a, lifecycle3b69a89aaa1dce9424e2499620bc2cd1f254de91. The lifecycle analyzer candidate comes from its actual hosted generator, with exactly three added and three removed shapes. Its defaults snapshot still needs regeneration. Ordinary failing gates remain required. Main has advanced again, so the repository's composition rule requires another rebase, fresh review and exact-head hosted run before merge.Independent workers are implementing the integrated dashboard, protected browse/direct live-read controls and real-store hosted functional/privacy qualification. Native source removal, remaining generated SDK/CLI surfaces, client readiness and capacity qualification are still outstanding. No runtime setting, deployment or external service qualification is claimed.
zlareb1 commentedon Nov 23, 2026
Observed MCP mapping-schema drift stops the exact current connection and denies its old copy proofs. The account write retains the sealed credential, generation and all other fields; registrations, document bytes, originals, history and checkpoints remain. Recovery requires a new owner-approved binding. An individual unavailable resource still invalidates only its own read proof.
The new import case first failed because the connection stayed active. The shared checked-session boundary covers import, live retrieval, browse and owner discovery. Focused checks: seven quarantine cases pass, including actual SDK discovery and changed/foreign-generation races; the affected live/browse/read set previously passed 57 cases. Selected strict typing and lint pass. These are synthetic unit seams, not hosted storage or external-provider qualification.
Bounded metadata discovery and fair source dispatch are being joined to the existing leased worker, with actual deployment settings and a separate durable progress key. Independent workers returned an authored 10,000-registration/1,000-eligible-source hosted qualification; it has not run. The frontend and SDK changes also still require hosted qualification and final protected-session integration. Native source removal, generated contracts, current-main composition, fresh reviews and exact-head CI remain incomplete. No runtime configuration or deployment changed.
zlareb1 commentedon Nov 23, 2026
The bounded scheduler is joined to the existing source lease and import engine. Nineteen focused scheduler/worker cases pass, including lazy selected import and stale-profile rejection. Its physical query limits and concurrency limits come from deployment settings; hosted capacity remains unrun.
Native contract cleanup exposed three integration failures: sealed fields appeared in the source representation, explicit legacy retirement was blocked by the unsupported-kind guard, and an old test still expected native credential admission. Representations hide config/sealed fields, explicit version-zero retirement retains opaque metadata under existing authority, and native credentials refuse use or rotation. The affected suite passed 51 cases; its remaining case then passed after a test import correction. No stored content was erased by cleanup.
Trusted catalog bounds are actual settings, including the cache key. Profile tests pass 87 cases and profile API tests pass 44 after the fixture was seeded from real settings defaults. The intermediate API run failed 26 cases because its fake settings omitted the added fields. Selected strict typing passes on five source modules. Actual settings, Python SDK and Ruby SDK generators succeeded; defaults and worker snapshot generators each pass two cases.
The replacement uses a fleet admission barrier before any current connection is usable. The marker changes no schema object or content. Mixed-build and exact-head hosted evidence are pending. Ruby/Rust protection and dashboard/CLI integration remain unqualified; local native and frontend suites have not run. The client correction, lifecycle snapshot corrections, current-main composition, fresh whole-source reviews and hosted checks still block merging the prerequisites and general replacement. Runtime configuration is unchanged.
zlareb1 commentedon Nov 23, 2026
An independent static review requested changes in the authored Ruby/Rust protection layer. An automatic call could carry clean family A while omitting an already-protected client-bound family B from its suppression guard. Response observation retained both, but that was too late to prevent dispatch. The candidate now checks their union before dispatch, including pending responses; Ruby also checks before opening the connection. New cases cover different bound/retained families and cloned clients. Native execution remains unrun, so this is a source correction rather than a behavioral pass.
The review also found an incorrect operation name in both SDK examples and a fake-response test. They use
knowledge.source.mcp_readafter correction. The review verified its twelve candidate file hashes before and after, and was preliminary; it does not replace the required entire-source review after each push.The dashboard handoff remains incomplete: manual action intent, broad read classification and opaque downloads must work through the protected transport. A completion worker is implementing those paths. A bounded opaque GET observer is authored: it marks every contributor before returning bytes and preserves cancellation cleanup. Its tests, frontend tests, native SDK tests and actual hosted source/scale qualification remain pending. Normal hosted unit and functional jobs install the actual source SDK; a Ruby qualification job runs the maintained SDK test suite. No gate, assertion or threshold was relaxed. No runtime configuration changed.
zlareb1 commentedon Nov 23, 2026
The general replacement is implemented in a local checkpoint, with qualification still pending. The joined code includes the shared MCP engine, selected import and refresh, existing live retrieval, account and destination controls, native document-source removal, protected dashboard requests and common CLI dispatch. The functional and scale qualifications are authored; neither has run yet. No external service has been qualified or runtime configuration changed.
Current main maintains seven SDKs. Python, TypeScript, Ruby and Rust have authored protected-session support; Go, Java and .NET remain required. Independent workers are implementing the missing client support. SDK parity is incomplete until all maintained clients pass their native hosted tests.
Prerequisite status:
655ac4fa1ca1643e9a586b04317a4e276fb10bd1has a fresh independent entire-source review with no findings. Its focused client/cancellation run passed 233 cases. Hosted unit shard 4 failed the unchanged listing budget:9476 <= 9475. Main at64bc761215bf572ced0a0d21fd4bd666c4ba1375failed the same assertion in shard 3. The assertion and limit remain unchanged; no merge waiver or unchanged rerun is requested. Other checks are still running.e744e0e6982b0ef185cc40d1c46269912c9510e1passed both hosted offline restore jobs. Its fresh independent review and remaining exact-head checks are pending. The settings snapshot correction passed both focused cases.The general PR, complete client/native/frontend checks, actual knowledge-write/privacy qualification and final review remain required. Synthetic MCP qualification will be reported as synthetic, with explicit transport, authentication and capability limits.
zlareb1 commentedon Nov 23, 2026
Static join review found a control-parity defect before hosted qualification: the new strict MCP inputs reject undeclared fields, while the current Go, Ruby and Rust generic request builders insert identity fields such as
agentunconditionally. The native mock fixtures currently accept those extra keys, so they cannot establish that the actual source APIs accept the requests.The server input contract remains strict. A worker is correcting the shared SDK wire-argument paths and checking the Python and TypeScript generic paths as well. Existing typed memory and conversation identity behavior must remain covered. Java's complete-wire operation path already avoids that injection; .NET is still being joined. No SDK parity or native runtime pass is claimed.
The hosted qualification now includes the declared Go minimum and current toolchain, Java 17, .NET 8 and Ruby, alongside the normal Python, TypeScript and Rust gates. These jobs and the 34-case real-store functional census are authored but unrun. All local native and integration execution remains deferred to hosted CI.