You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- The current main server setup in `apps/agent/src/server/index.ts` does **not** register `@dkg/plugin-epcis` by default.
21
+
- This means `/epcis/*` routes and EPCIS MCP tools are unavailable in the default runtime until the plugin is mounted.
22
+
-`epcis.read` and `epcis.write` are still declared OAuth scopes, but they only take effect for EPCIS once the plugin and HTTP scope guards are enabled.
23
+
18
24
## Quick Start
19
25
20
-
1. Ensure publisher plugin and epcis plugin is enabled in server plugin registration:
21
-
-`apps/agent/src/server/index.ts` should include `dkgPublisherPlugin` in the `plugins` array.
26
+
1. Enable EPCIS + publisher plugins in server plugin registration (this is not enabled by default in this repo):
22
27
-`apps/agent/src/server/index.ts` should include `epcisPlugin` in the `plugins` array.
28
+
-`apps/agent/src/server/index.ts` should include `dkgPublisherPlugin` in the `plugins` array.
29
+
- If you want route-level EPCIS scope enforcement, apply `applyEpcisHttpScopeGuards(api, authorized)` in the auth middleware plugin.
23
30
2. Run publisher plugin setup:
24
31
-`cd packages/plugin-dkg-publisher && npm run setup`
25
32
- This initializes publisher configuration (including `.env.publisher`) for the publisher flow.
@@ -56,13 +63,15 @@ Implementation note: EPCIS MCP tool handlers are guarded with `withRequiredMcpSc
56
63
-`GET /epcis/events`
57
64
Queries EPCIS events with filtering and pagination.
58
65
59
-
-`GET /epcis/asset/*ual`
60
-
Retrieves an EPCIS asset by UAL.
66
+
-`GET /epcis/events/track`
67
+
Tracks a single EPC across all event types using full traceability.
-`/change-password` and `/profile` → require authentication (empty scope list)
121
120
- Only users or tokens with those scopes can access the corresponding routes.
122
121
122
+
EPCIS scopes (`epcis.read`, `epcis.write`) are included in OAuth configuration, but EPCIS routes/tools are available only after the EPCIS plugin is mounted.
123
+
124
+
When EPCIS is enabled and HTTP guards are applied, this mapping is used:
0 commit comments