Same response structure
SDK, HTTP, and MCP return the same context fields and source identity.
Give any agent or application the data this step needs through an SDK, HTTP, or MCP. Keep it ready or deliver it elsewhere when the workflow requires.
import {
ContextModeImmediate,
OperationSaved,
RemacClient,
} from "@remac/sdk";
const client = new RemacClient({
apiKey: process.env.REMAC_API_KEY,
});
const context = await client.retrieveContext({
mode: ContextModeImmediate,
question:
"Retrieve this customer's active subscription, invoices from the last 90 days, payment authorizations, open billing cases, and current refund rules.",
targets: [{
source_id: "src_3IwUXvAFxyH1oNYNbokDbW4czWf",
operation: OperationSaved,
input: {
operation_id: "op_3IwUXtXUm0HdpgglZBML693GZRt",
input: { customer_id: "cus_8142" },
},
}],
result_limit: 20,
save_result: false,
});MCP connects supported agents and coding tools. Applications using OpenRouter call Remac through an SDK or HTTP before the model request.
Coding agents and IDEs
Agent systems and model routing
Every method uses the same request meaning. Switch languages or use the HTTP and MCP contracts directly.
import {
ContextModeImmediate,
OperationSaved,
RemacClient,
} from "@remac/sdk";
const client = new RemacClient({
apiKey: process.env.REMAC_API_KEY,
});
const context = await client.retrieveContext({
mode: ContextModeImmediate,
question:
"Retrieve this customer's active subscription, invoices from the last 90 days, payment authorizations, open billing cases, and current refund rules.",
targets: [{
source_id: "src_3IwUXvAFxyH1oNYNbokDbW4czWf",
operation: OperationSaved,
input: {
operation_id: "op_3IwUXtXUm0HdpgglZBML693GZRt",
input: { customer_id: "cus_8142" },
},
}],
result_limit: 20,
save_result: false,
});Each guide connects a Remac access method to a complete developer workflow.
Call one saved source operation and return the current subscription, payment, case, and policy records.
Open guide →Agents / MCPAdd the Remac MCP endpoint, then call retrieve_context from Claude Code, Cursor, GitHub Copilot, or Codex.
Open guide →Context / Python SDKCreate a Collection, keep it current with a Pipeline, then retrieve records in synchronized mode.
Open guide →Pipelines / Go SDKPrepare selected Notion content, create embeddings where required, and replace the matching vector points.
Open guide →Pipelines / HTTP APISend separate prepared outputs to Kafka, Amazon S3, and an HTTPS case endpoint from one Pipeline run.
Open guide →Operations / HTTP APIRead the Pipeline execution and see which configured destinations are pending, delivered, or failed.
Open guide →Remac keeps source access, context preparation, and destination delivery behind stable contracts.
SDK, HTTP, and MCP return the same context fields and source identity.
Remac prepares a separate payload for each selected destination after the source returns.
A safe destination retry reuses the stored payload. It does not repeat preparation.
One failed destination does not erase a confirmed result from another destination.
Start with one context request, then add synchronized context or destination delivery when the workflow needs it.