feat: add ICA metering exporter as first pure-Python plugin - #170
Open
jonpspri wants to merge 8 commits into
Open
feat: add ICA metering exporter as first pure-Python plugin#170jonpspri wants to merge 8 commits into
jonpspri wants to merge 8 commits into
Conversation
…CI selection, and release info Signed-off-by: Jonathan Springer <jps@s390x.com>
…ugin Signed-off-by: Jonathan Springer <jps@s390x.com>
…ts shim in integration conftest Signed-off-by: Jonathan Springer <jps@s390x.com>
Signed-off-by: Jonathan Springer <jps@s390x.com>
…re routing Keep ci-install-built-wheel.yaml unchanged because it remains the Rust wheel-helper workflow. Signed-off-by: Jonathan Springer <jps@s390x.com>
…rkflows Signed-off-by: Jonathan Springer <jps@s390x.com>
Signed-off-by: Jonathan Springer <jps@s390x.com>
jonpspri
requested review from
gandhipratik203,
lucarlig and
msureshkumar88
as code owners
August 24, 2026 20:52
Signed-off-by: Jonathan Springer <jps@s390x.com>
lucarlig
approved these changes
Aug 25, 2026
lucarlig
left a comment
Collaborator
There was a problem hiding this comment.
LGTM
A few non-blocking follow-ups:
- Parse the gateway’s actual
ToolResultshape (_metaandcontent) so token counts and error messages aren’t dropped. - Reject duplicate plugin slugs across the Rust and Python roots.
- Add
capabilities: [read_headers]to the README configuration example.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Ports the ICA Metering Exporter from IBM/mcp-context-forge PR #5696 at head commit
be937dd5743d0abbdc0ce8886b6be93f95c9d3dcinto cpex-plugins as the repository's first pure-Python plugin.Notable deviations from the source PR
request_headers_varaccess with the CPEX boundaryextensions.http.headers.headersNameError in the persona-header loop. This correction is worth feeding back upstream to IBM/mcp-context-forge.Design decisions
Test evidence
The complete local validation sequence is recorded in
.omo/evidence/task-*.txtsummaries (local execution evidence, intentionally not committed):detect-secretsscan/audit gates: green.Gateway capability and registration
Gateway registration must grant the plugin the
read_headerscapability for caller attribution throughextensions.http.headers; without it, the gateway strips inbound headers.Gateway-side registration in
mcp-context-forge/plugins/config.yamlis intentionally out of scope for this cpex-plugins pull request.