Providers

Anthropic Claude

Use the anthropic adapter for Claude Messages API requests.

Build a Messages Request

const { request } = await connector.createProviderContextRequest(
  "anthropic",
  {
    task: "Answer using the customer's saved support preferences.",
    tokenBudget: 1800
  },
  {
    model: "claude-opus-4-8",
    maxTokens: 1200,
    input: "Draft the support reply."
  }
);

// Send `request` with your Anthropic client:
// await anthropic.messages.create(request)

The SDK places Neutron memory into the system field and keeps the current task in messages.

Remote MCP

Anthropic MCP-capable hosts can receive Neutron as an MCP server definition.

const { request } = await connector.createProviderContextRequest(
  "anthropic",
  { task: "Prepare agent context for renewal planning." },
  {
    model: "claude-opus-4-8",
    maxTokens: 1500,
    input: "What should the account team know?",
    mcp: {
      serverUrl: "https://mcp.neutronai.dev/mcp",
      serverLabel: "neutron_memory",
      authorization: process.env.NEUTRON_MCP_TOKEN,
      allowedTools: ["memory_agent_context", "memory_recall"]
    }
  }
);

Use a Neutron token scoped to the tenant and scopes the Claude workflow is allowed to access.