1. Conduid
  2. Developer Tools
  3. Lucid AI SDK
MCP server · Developer Tools

Lucid AI SDK

Lucid SDK

Unclaimed devtools
52Fair

Scored 6 months ago · breakdown

About Lucid AI SDK

Lucid AI SDK is an MCP server published by lucid-fdn in the Developer Tools category: lucid SDK.

The repository has 119 stars and 0 forks, with the last commit 5 months ago. Recent commit activity is the strongest signal that reported issues will get attention.

Install

From source
git clone https://github.com/lucid-fdn/lucid-ai-sdk

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Tools (7)

AgentsInitialize agents, process epochs, generate proofs of contribution

Parameters not published.

EpochsManage on-chain anchoring epochs

Parameters not published.

HealthCheck system, database, Redis, and service health

Parameters not published.

MatchEvaluate policies and match compute nodes to models

Parameters not published.

PassportsCreate, list, update, and search model/compute/tool/dataset/agent passports

Parameters not published.

PayoutsCalculate and verify payout splits

Parameters not published.

ReceiptsCreate inference receipts, verify proofs, inspect the MMR

Parameters not published.

Ask AI

✦

Ask AI about Lucid AI SDK

Powered by Claude · Grounded in docs

I know everything about Lucid AI SDK. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

  • ✓README presentThe repository ships documentation.

5 checks have not been run yet.

README

Lucid AI SDK

GitHub

Official SDK and MCP server for the LucidLayer API by Raijin Labs.

Packages

Package Description Version
raijin-labs-lucid-ai TypeScript SDK client library 0.4.1
raijinlabs-mcp MCP (Model Context Protocol) server 0.2.2

TypeScript SDK

The SDK provides a typed client for the LucidLayer API, covering passports, receipts, epochs, compute matching, payouts, and AI agent orchestration.

Install

npm install raijin-labs-lucid-ai

Quick Start

import { RaijinLabsLucidAi } from "raijin-labs-lucid-ai";

const sdk = new RaijinLabsLucidAi({
  serverURL: "https://api.lucid.foundation",
});

// Check system health
const health = await sdk.health.checkSystemHealth();
console.log("Status:", health.status);

// Create a model passport
const passport = await sdk.passports.create({
  type: "model",
  owner: "YOUR_WALLET_ADDRESS",
  name: "my-model",
  version: "1.0.0",
  tags: ["nlp", "inference"],
  metadata: {
    schema_version: "1.0",
    model_passport_id: "mdl-my-model",
    format: "gguf",
    runtime_recommended: "vllm",
    requirements: { min_vram_gb: 24 },
  },
});
console.log("Passport ID:", passport.passportId);

Match Compute to a Model

// Evaluate a policy against compute and model metadata
const match = await sdk.match.explain({
  policy: {
    policyVersion: "1.0",
    allowRegions: ["us-east-1"],
    latency: { p95MsBudget: 3000, hardTimeoutMs: 10000 },
    cost: { maxPricePer1kTokensUsd: 0.05 },
    privacy: { storeInputs: false, redactPii: true },
  },
  computeMeta: {
    schema_version: "1.0",
    compute_passport_id: "cmp-my-node",
    provider_type: "cloud",
    regions: ["us-east-1"],
    hardware: { gpu: "NVIDIA-A100-80GB", vram_gb: 80 },
    runtimes: [{ name: "vllm", version: "0.4.0", image: "vllm/vllm:0.4.0" }],
    endpoints: { inference_url: "http://localhost:8080/v1" },
  },
  modelMeta: {
    schema_version: "1.0",
    model_passport_id: "mdl-my-model",
    format: "gguf",
    runtime_recommended: "vllm",
    requirements: { min_vram_gb: 24 },
  },
});
console.log("Allowed:", match.allowed, "Reasons:", match.reasons);

Create Receipts and Verify Proofs

// Create an inference receipt
const receipt = await sdk.receipts.create({
  modelPassportId: "mdl-my-model",
  computePassportId: "cmp-my-node",
  policyHash: match.policyHash,
  runtime: "vllm",
  tokensIn: 128,
  tokensOut: 256,
  ttftMs: 120,
  totalLatencyMs: 850,
});
console.log("Receipt ID:", receipt.receipt.runId);

// Verify the receipt with inclusion proof
const verification = await sdk.receipts.verify({
  receiptId: receipt.receipt.runId,
});
console.log("Valid:", verification.isValid);

Agent MMR (Proof of Contribution)

// Initialize an agent and process contribution vectors
await sdk.agents.initAgent({ agentId: "my-agent" });

await sdk.agents.processAgentEpoch({
  agentId: "my-agent",
  epochNumber: 1,
  vectors: [
    "Inference completed with 256 tokens",
    "Model loaded in 1.2 seconds",
  ],
});

// Generate a cryptographic proof for a specific contribution
const proof = await sdk.agents.generateAgentProof({
  agentId: "my-agent",
  epochNumber: 1,
  vectorText: "Inference completed with 256 tokens",
});
console.log("Proof:", proof);

See typescript/README.md for the full API reference, and typescript/examples/ for a complete walkthrough.

MCP Server

The MCP server exposes all LucidLayer API operations as tools for AI assistants (Claude, Cursor, VS Code, etc.).

Claude Code

claude mcp add raijinlabs-mcp npx raijinlabs-mcp start --

Claude Desktop / Cursor / VS Code

Add to your MCP configuration:

{
  "mcpServers": {
    "RaijinlabsMcp": {
      "command": "npx",
      "args": ["raijinlabs-mcp", "start"]
    }
  }
}

Available Tools

Once connected, your AI assistant gains access to tools for:

  • Passports - Create, list, update, and search model/compute/tool/dataset/agent passports
  • Match - Evaluate policies and match compute nodes to models
  • Receipts - Create inference receipts, verify proofs, inspect the MMR
  • Epochs - Manage on-chain anchoring epochs
  • Payouts - Calculate and verify payout splits
  • Agents - Initialize agents, process epochs, generate proofs of contribution
  • Health - Check system, database, Redis, and service health

See mcp/README.md for full setup instructions across all supported clients.

Development

Both packages are generated from the shared openapi.yaml spec using Speakeasy.

Building

# SDK
cd typescript && npm install && npm run build

# MCP server
cd mcp && npm install && npm run build

License

MIT

README copy captured when this server was indexed; it may lag the repository. The original is authoritative.

Questions

About Lucid AI SDK

How do I install Lucid AI SDK?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is Lucid AI SDK safe to use with an AI agent?

Its trust score is 52 out of 100 (fair). It passes 1 of the 1 static security checks run so far. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Lucid AI SDK still maintained?

Yes — the last commit was 5 months ago. The repository has 119 stars and 0 forks.