Skip to main content
Glama

Cedulon

Слой аудита для расходов между агентами: подписанный манифест сделки, политика fail-closed, подписанная квитанция о расходах (может быть привязана к SCITT).

Cedulon — не платежный рельс. Он находится поверх x402 и AP2.

Пакеты опубликованы в npm, а MCP-сервер — в реестре MCP, но здесь ничто не касается денег: никаких реальных кошельков и сетевых рельсов, только имитационные фикстуры. cedulon_spend совершает расчеты на имитационном рельсе и сообщает об этом в собственном описании.

Основные пакеты не имеют зависимостей времени выполнения; пакет MCP-сервера зависит только от официального MCP SDK.

Требования

  • Node.js 22 или новее (20+ для библиотек; скрипты используют удаление типов Node)

  • npm 10 или новее

Related MCP server: dingdawg-agent-wallet

Установка и запуск (чистый клон)

npm install
npx tsc --noEmit
npm run test:all
npm run demo

Ожидается, что npm run tamper завершится с ненулевым кодом (измененные байты не проходят проверку).

npm run demo:unguarded показывает незащищенную дыру: 100/100 разрешено.

npm run audit должен завершиться с кодом 0 (audit: balanced).

npm run demo:bypass должен завершиться с ненулевым кодом: audit: 1 settlement without receipt → FAIL.

npm run demo:bypasses печатает четыре строки FAIL (отсутствующая квитанция, неверная сумма, null-ref, мусорная голова цепочки) и завершается с кодом 0, только если каждый обход обнаружен; пропущенный обход приводит к ненулевому коду.

npm run demo:live сверяет реальное окно Base Sepolia USDC вместо фикстуры. Режим только для чтения: ему нужен RPC URL в CEDULON_RPC_URL; кошелек, ключ или транзакция не требуются. Для аккаунта, по которому у вас нет квитанций, каждый расчет, сообщаемый сетью, возвращается как разрыв.

Третья сторона может воспроизвести это, не доверяя нам: docs/RUN_AS_VERIFIER.md.

Пятиминутный путь, включая конфигурацию MCP-хоста: docs/QUICKSTART.md.

MCP-сервер

Cedulon может работать как локальный MCP-сервер на stdio. Хост общается по JSON-RPC через stdin/stdout. Пять инструментов — это тонкие обертки над существующими пакетами; они не реализуют заново политику, квитанции или аудит.

Tool

Arguments

Result

cedulon_spend

amount (string), currency, payee, nonce, необязательный tool

Разрешено → подписанная квитанция JSON. Отказано → { ok: false, reason } (например, limit-amount).

cedulon_audit

необязательный extraSettlements[] (ref, amount, currency, timestampMs)

{ ok, summary, findings }. При сбалансированных книгах выводится audit: balanced.

cedulon_verify_receipt

объект receipt, или coseHex + publicKeyPem, необязательные поля контрподписи

{ ok, receipt, countersignature }

cedulon_export_ledger

нет

Квитанции + контрольная точка + выгрузка в JSON-форме demo:export

cedulon_status

нет

{ version, policy, receiptCount, chainHead }

Claude Desktop / Claude Code / Cursor. Ничего клонировать и ничего собирать не нужно:

{
  "mcpServers": {
    "cedulon": {
      "command": "npx",
      "args": ["-y", "@cedulon/mcp-server"]
    }
  }
}

В Claude Code эта конфигурация — одна команда:

claude mcp add cedulon -- npx -y @cedulon/mcp-server

Ограничения политики берутся из окружения: CEDULON_MAX_AMOUNT, CEDULON_MAX_CUMULATIVE, CEDULON_MAX_PAYMENTS, CEDULON_WINDOW_MS, CEDULON_ALLOWED_PAYEES, CEDULON_ALLOWED_CURRENCIES, CEDULON_ALLOWED_TOOLS, CEDULON_PAYER. Установите CEDULON_STATE_PATH, чтобы сохранить цепочку квитанций между перезапусками; без него реестр хранится в памяти.

Если вместо этого вы работаете внутри этого репозитория, непосредственно с исходниками:

npm run mcp

Сервер указан в реестре MCP как io.github.dogrucanemek-alt/cedulon; server.json — это запись, из которой он опубликован.

npm run mcpb собирает .mcpb-бандл — zip-архив, содержащий сервер и его зависимости, который настольный хост устанавливает в один клик, с ограничениями политики, доступными в виде настроек. Он устанавливает выпущенный npm-пакет, а не упаковывает рабочее дерево, так что бандл содержит то, что npm выдал бы вам, и версия должна уже быть выпущена. Результат попадает в build/ и является артефактом релиза, а не исходным кодом.

smithery.yaml — это более старый формат экосистемы, и он не отправляется; текущие инструкции Smithery принимают HTTPS-эндпоинт или .mcpb-бандл.

Структура

packages/core           policy engine + Decision Token (workspace dep on @cedulon/cose)
packages/cose           deterministic CBOR + COSE_Sign1 (Ed25519)
packages/manifest       signed trade manifest
packages/receipts       spend receipt (COSE default, JSON legacy)
packages/checkpoint     epoch checkpoints + in-process transparency log
packages/audit          rail-extract completeness checker
packages/mcp-guard      MCP tools/call wrapper (mock)
packages/mcp-server     stdio MCP server (official SDK)
packages/x402-adapter   HTTP 402 adapter + mock rail extract
packages/base-extract   read-only Base Sepolia USDC → RailExtract
examples/demo           runaway, dispute, bypass, audit CLI
spec/                   draft-dogru-cedulon-01 (current), -00, plus the
                        reattestation and streaming drafts
THREAT_MODEL.md
docs/RUN_AS_VERIFIER.md

Названия брендов берутся только из packages/core/src/brand.ts.

Как цитировать

Метаданные цитирования находятся в CITATION.cff. Архивная версия -00 опубликована как https://doi.org/10.5281/zenodo.22099792

Лицензия

Apache-2.0

Available Tools

5 tools
cedulon_auditA
Read-only

Reconcile the in-process receipt chain and checkpoint against the rail extract. Returns audit: balanced or findings.

ParametersJSON Schema
NameRequiredDescriptionDefault
trustNoRail key you hold out of band: { publicKeyPem, accountId?, railId?, windowStartMs?, windowEndMs? }
manifestNoA Trade Manifest you were presented with. Omit for a no-manifest deployment. Present without manifestTrust is unauthenticated-manifest.
payeeTrustNoPayee keys you hold out of band, keyed by payee: { "payee-1": publicKeyPem }
issuerTrustNoIssuer key(s) you hold out of band: { publicKeyPem: string | string[] }. Without it the audit checks this server's records against this server's own key.
witnessTrustNoTransparency log key you hold out of band: { publicKeyPem: string | string[] }
manifestTrustNoManifest publisher key(s) you hold out of band: { publicKeyPem: string | string[] }
extraSettlementsNoOptional extra extract rows, used to inject a bypass settlement in tests

TDQS

A3.7/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With readOnlyHint=true and openWorldHint=false, the annotations already cover the safety profile and closed-world assumption. The description adds the outcome contract ('balanced or findings') and names the comparison sources, but it does not explain what findings contain, how failures are expressed, or any other behavioral caveats. No contradiction with annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences with no filler: the purpose is front-loaded ('Reconcile...') and the outcome is stated in the second sentence. Every phrase earns its place, and the description is appropriately sized for an audit tool whose parameters are documented in the schema.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 7-parameter nested-object tool with no output schema, the description is a bit thin: it gives the high-level result ('balanced or findings') but not the shape of findings or any guidance on how trust/manifest inputs affect the audit. The rich schema compensates for parameter coverage, but the return contract remains under-specified.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the description does not need to repeat parameter details. The description itself adds no parameter-level semantics, but the schema already explains trust, manifest, payee/issuer/witness/manifest trust, and extraSettlements in enough detail. Baseline 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb ('Reconcile') and identifies the exact resources involved: the in-process receipt chain and checkpoint are compared against the rail extract. It also says the result is either 'balanced or findings,' which distinguishes this audit/reconciliation tool from siblings like spend, verify_receipt, export_ledger, and status.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies the tool is for reconciliation and audit-style checks, so an agent can infer it is not for spending, single-receipt verification, exporting, or status. However, it never explicitly says when to use this tool instead of a sibling, nor does it mention any conditions or exclusions.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

cedulon_export_ledgerA
Read-only

Export receipts, checkpoint, and rail extract in the same JSON shape as npm run demo:export.

ParametersJSON Schema
NameRequiredDescriptionDefault

No parameters

TDQS

A4/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnlyHint=true and openWorldHint=false, covering the safety and world-scope behavior. The description adds the useful detail that output matches npm run demo:export, but it does not disclose any other behavioral traits such as output size, asynchronous behavior, or prerequisites, so it only partially contributes beyond annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, front-loaded sentence with no redundant words. It clearly communicates the operation, the target data, and the output format without padding.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a zero-parameter tool, the description is mostly sufficient: it names the data kinds and the output shape. It relies on familiarity with 'npm run demo:export' and leaves terms like 'checkpoint' and 'rail extract' undefined, but in a project context this is likely enough for an agent to invoke the tool correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema has zero parameters and coverage is effectively 100%, so no parameter documentation is needed. The description's mention of the three export categories adds context about what the tool operates on, but since there are no configurable inputs, there is little parameter semantics to add.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific verb ('Export') and the exact resources ('receipts, checkpoint, and rail extract'), making the tool's function immediately clear. It also distinguishes itself from siblings by being the export operation, as opposed to spend, audit, verify, or status actions. The reference to the demo:export JSON shape further pins down intent.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies when to use this tool: any time an export of receipts, checkpoint, or rail extract data is needed in the demo:export shape. However, it does not explicitly mention alternatives or state when not to use it, leaving routing to siblings to be inferred rather than spelled out.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

cedulon_spendA

Policy-gated spend on the mock rail. Allow returns a signed COSE receipt JSON. Deny returns the fail-closed reason.

ParametersJSON Schema
NameRequiredDescriptionDefault
toolNoCalling tool name recorded on the request
nonceYes
payeeYes
amountYesInteger amount as a decimal string
currencyYes

TDQS

A3.5/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

The description discloses both possible outcomes—an allow path returning a signed COSE receipt JSON and a deny path returning the fail-closed reason. This goes beyond the annotations, which only indicate hints like readOnly false and idempotent false. It doesn't explain the policy itself, but it clearly communicates the behavioral contract.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is extremely concise: two short sentences, front-loaded with the primary action, and each sentence adds distinct value. There is no filler, redundancy, or unnecessary background.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

While the description explains return variants, it does not cover policy prerequisites, parameter formats, or the meaning of nonce, payee, and currency. With no output scheme and only 40% schema description coverage, these omissions make it difficult for an agent to invoke the tool correctly the first time.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters1/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is only 40%, yet the description adds no parameter-level meaning for nonce, payee, or currency, and does not even mention 'amount' or 'tool'. With most parameters undocumented in both schema and description, the agent has little guidance on how to set valid inputs.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly identifies the action ('spend'), the resource ('mock rail'), and the policy-gating nature of the operation. It also distinguishes the tool from siblings like cedulon_verify_receipt and cedulon_audit by describing the spend-specific outcome.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies this tool is used when a policy-gated spend should be attempted, and sibling names suggest the other tools serve different purposes. However, it does not explicitly state when to use this tool over alternatives, nor does it provide exclusions or condition-based routing.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

cedulon_statusA
Read-only

Server version, policy summary, receipt count, and chain head hash.

ParametersJSON Schema
NameRequiredDescriptionDefault

No parameters

TDQS

A3.5/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

The annotations already declare readOnlyHint=true and openWorldHint=false, covering the safety profile. The description adds useful context about the specific data fields exposed, but does not disclose any further behavioral details such as response format, freshness, or failure modes. This is comparable to a straightforward status read where the annotations carry the main burden.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, compact sentence that front-loads the most important information: it enumerates exactly what the status tool exposes. Every word earns its place and there is no redundant or filler content.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a parameterless status endpoint with read-only annotations, the description is largely sufficient: it names the key result fields. There is no output schema to supplement the return values, but the listed fields are concrete enough for an agent to understand what this tool offers in the context of its siblings.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The tool takes zero parameters and the schema is empty, so there are no parameter semantics to document. With 0 params, the baseline of 4 applies, and the description does not need to compensate for any parameter coverage gap.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The title 'Server status' plus the description's list of returned data ('Server version, policy summary, receipt count, and chain head hash') clearly identifies this as a read-only status tool. It is distinct from the sibling tools (spend, audit, verify_receipt, export_ledger), though it lacks an explicit verb such as 'returns' or 'gets'.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no explicit guidance on when to choose this tool versus its siblings such as cedulon_audit or cedulon_export_ledger. There is no stated condition, exclusion, or mention of alternatives; usage is only weakly implied by the word 'status' in the title.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

cedulon_verify_receiptA
Read-only

Verify a spend receipt COSE_Sign1 (and payee countersignature when present). Supply expectIssuerKeyPem to check it against a key you already hold; without one the receipt is only checked against the key it carries, which any key satisfies.

ParametersJSON Schema
NameRequiredDescriptionDefault
coseHexNo
receiptNoFull SignedReceipt object from cedulon_spend
publicKeyPemNo
counterCoseHexNo
expectPayeeKeyPemNoPayee key you hold out of band, for the countersignature.
payeePublicKeyPemNo
expectIssuerKeyPemNoIssuer key you hold out of band. Omit and the check is self-referential.

TDQS

A3.9/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations only declare readOnlyHint, so the description carries the burden of behavioral caveats. It adds the important warning that omitting expectIssuerKeyPem makes verification self-referential and 'any key satisfies' it, which prevents an agent from over-trusting a nominally verified receipt.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is two dense sentences with no filler. It front-loads the primary purpose and then delivers the single most important usage caveat, making every word earn its place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With 7 optional parameters, no required fields, no output schema, and no guidance on which parameter combinations are valid, the description is not complete enough for reliable invocation. It explains the issuer-key pitfall but leaves the receipt/countersignature input representations and the verification result unspecified.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is only 43%, and the free-text description explains only expectIssuerKeyPem behaviorally. The relationship between coseHex, receipt, counterCoseHex, publicKeyPem, and payeePublicKeyPem is left unstated, so an agent cannot confidently choose among the seven optional input modes from the description alone.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with the verb 'Verify' and names the specific resource: a spend receipt COSE_Sign1 plus the optional payee countersignature. This clearly separates it from spend/audit/export/status siblings and makes the tool's operation unambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides concrete conditional guidance: supply expectIssuerKeyPem when you want to check against a key you already hold, and omit it when you accept the receipt's self-carried key. It does not name alternative tools, but the parameter-level when/how instructions are clear enough for correct invocation.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

TDQS

A3.9/5.0
Disambiguation5/5

Each tool has a clearly distinct role: spend creates a receipt, audit reconciles, verify_receipt validates a receipt, export_ledger exports data, and status reports server state. There is no overlap or ambiguity between tool purposes.

Naming Consistency4/5

All tools share the cedulon_ prefix and lowercase snake_case style, which is predictable. Minor inconsistency exists between single-word action names (spend, audit) and verb_noun names (verify_receipt, export_ledger), plus status is a noun rather than an action.

Tool Count5/5

Five tools is well-scoped for a focused server handling spend, verification, audit, export, and status. Each tool contributes a distinct capability without redundancy or bloat.

Completeness4/5

The tool surface covers the core lifecycle of creating, verifying, auditing, exporting, and monitoring receipts. Minor gaps exist such as no explicit receipt lookup by ID or cancellation/refund flow, but for a mock rail server the set appears functionally complete.

Maintenance

ActivityMaintained
ResponsivenessWithin a week

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    C
    maintenance
    Dual-rail MCP server for initiating and verifying MPP and x402 payments, plus MPP-attested identity claims, enabling agent-native financial settlement.
    MIT
  • A
    license
    A
    quality
    A
    maintenance
    Post-quantum, tamper-evident receipts for consequential agent actions. Provides tools for auditing, gating decisions, and egress classification with quantum-hardened security.
    7
    Apache 2.0
  • F
    license
    Not graded
    quality
    B
    maintenance
    Provides policy-driven runtime authorization and security evaluation for MCP-based agents, including MCP streaming HTTP gateway, mock MCP servers, deterministic agent demos, and audited tool invocation with redacted PostgreSQL audit chains.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/dogrucanemek-alt/cedulon'

If you have feedback or need assistance with the MCP directory API, please join our Discord server