@odatano/core-mcp 0.2.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -4,6 +4,20 @@ All notable changes to `@odatano/core-mcp` are documented in this file.
4
4
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
5
5
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
6
 
7
+ ## [0.2.1] - 2026-09-19
8
+
9
+ ### Changed
10
+
11
+ - **The ODATANO ACCESS key (`oda_…`) is the documented credential.** Set
12
+ `ODATANO_BASE_URL=https://api.odatano.dev` and `ODATANO_TOKEN=oda_…`; the
13
+ key goes as a plain `Authorization: Bearer` and the gateway swaps in the
14
+ agent grant, meters the key in units and fronts both ODATANO and
15
+ NIGHTGATE. Get one at `POST https://api.odatano.dev/keys` (x402), from a
16
+ giveaway code, or by signing in at the console. An `odat_…` grant
17
+ (`x-agent-token`) still works against a direct ODATANO instance. No code
18
+ change: the client already sent a prefix-less token as a bearer; a test
19
+ now pins that header shape.
20
+
7
21
  ## [0.2.0] - 2026-08-16
8
22
 
9
23
  ### Changed
package/README.md CHANGED
@@ -57,9 +57,9 @@ Configuration is environment-driven:
57
57
 
58
58
  | Variable | Default | Purpose |
59
59
  |---|---|---|
60
- | `ODATANO_BASE_URL` | `http://localhost:4004` | ODATANO host app |
61
- | `ODATANO_USERNAME` / `ODATANO_PASSWORD` | unset | Basic auth (CAP mocked/dev auth, e.g. `alice`) |
62
- | `ODATANO_TOKEN` | unset | Bearer JWT (XSUAA / `auth: jwt`); an `odat_…` value is reserved for the planned ODATANO agent-grant token (sent as `x-agent-token`) |
60
+ | `ODATANO_BASE_URL` | `http://localhost:4004` | ODATANO host app, or the ODATANO ACCESS gateway (`https://api.odatano.dev`) |
61
+ | `ODATANO_TOKEN` | unset | **The usual credential: an ODATANO ACCESS key `oda_…`** (sent as `Authorization: Bearer`; buy one at `POST https://api.odatano.dev/keys`, redeem a code, or sign in at the console). An `odat_…` agent-grant token (sent as `x-agent-token`) works against a direct ODATANO instance; anything else is sent as a plain bearer (XSUAA / `auth: jwt`) |
62
+ | `ODATANO_USERNAME` / `ODATANO_PASSWORD` | unset | Basic auth, operator or CAP mocked/dev auth (e.g. `alice`); not for agents |
63
63
  | `ODATANO_SERVICE_PREFIX` | `/odata/v4` | Prefix before `cardano-odata`, `cardano-transaction`, `cardano-sign`, `cardano-worker`, `cardano-indexer` |
64
64
  | `ODATANO_TIMEOUT_MS` | `30000` | Per-request timeout |
65
65
  | `ODATANO_MCP_MAX_ROWS` | `50` | Default `$top` for `query_entity` and cap on arrays in tool output |
package/dist/config.d.ts CHANGED
@@ -7,9 +7,12 @@ export interface OdatanoMcpConfig {
7
7
  /** Base URL of the ODATANO host app, e.g. http://localhost:4004 */
8
8
  baseUrl: string;
9
9
  /**
10
- * Token credential. An `odat_...` value is reserved for the planned ODATANO
11
- * agent-grant token (sent as `x-agent-token`, optionally alongside basic
12
- * transport auth); anything else is sent as `Authorization: Bearer`.
10
+ * Token credential. The usual value is an ODATANO ACCESS gateway key
11
+ * (`oda_...`, base URL https://api.odatano.dev), sent as
12
+ * `Authorization: Bearer`; the gateway swaps in the agent grant. An
13
+ * `odat_...` agent-grant token goes as `x-agent-token` (direct ODATANO,
14
+ * optionally alongside basic transport auth); anything else is a plain
15
+ * bearer (XSUAA / `auth: jwt`).
13
16
  */
14
17
  token?: string;
15
18
  /** Basic-auth credentials for CAP mocked/dev auth (e.g. `alice`). */
@@ -1 +1 @@
1
- {"version":3,"file":"config.js","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AA2BA,8DAA8D;AAC9D,MAAM,CAAC,MAAM,QAAQ,GAAG;IACtB,KAAK,EAAE,eAAe;IACtB,WAAW,EAAE,qBAAqB;IAClC,IAAI,EAAE,cAAc;IACpB,MAAM,EAAE,gBAAgB;IACxB,OAAO,EAAE,iBAAiB;CAClB,CAAC;AAIX,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,CAAC;AAED,MAAM,UAAU,UAAU,CAAC,MAAyB,OAAO,CAAC,GAAG;IAC7D,MAAM,OAAO,GAAG,CAAC,GAAG,CAAC,gBAAgB,IAAI,uBAAuB,CAAC,CAAC,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;IACtF,IAAI,aAAa,GAAG,GAAG,CAAC,sBAAsB,IAAI,WAAW,CAAC;IAC9D,IAAI,CAAC,aAAa,CAAC,UAAU,CAAC,GAAG,CAAC;QAAE,aAAa,GAAG,IAAI,aAAa,EAAE,CAAC;IACxE,aAAa,GAAG,aAAa,CAAC,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;IAClD,OAAO;QACL,OAAO;QACP,KAAK,EAAE,GAAG,CAAC,aAAa,IAAI,SAAS;QACrC,QAAQ,EAAE,GAAG,CAAC,gBAAgB,IAAI,SAAS;QAC3C,QAAQ,EAAE,GAAG,CAAC,gBAAgB,IAAI,SAAS;QAC3C,aAAa;QACb,SAAS,EAAE,WAAW,CAAC,oBAAoB,EAAE,GAAG,CAAC,kBAAkB,EAAE,KAAK,CAAC;QAC3E,OAAO,EAAE,WAAW,CAAC,sBAAsB,EAAE,GAAG,CAAC,oBAAoB,EAAE,EAAE,CAAC;QAC1E,gBAAgB,EAAE,IAAI,CAAC,GAAG,CAAC,8BAA8B,CAAC;KAC3D,CAAC;AACJ,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@odatano/core-mcp",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "MCP server exposing ODATANO (Cardano OData bridge, SAP CAP) to AI agents: reads, unsigned tx builds, signing handoff, submit",
5
5
  "license": "Apache-2.0",
6
6
  "publishConfig": {