Skip to content

Refactor tutorial MCP integration to ContextForge and Keycloak - #256

Merged
MisterVVP merged 21 commits into
dev-extend-production-tutorials-with-mcp-integrationfrom
dev-refactor-pr-#255-for-contextforge-keycloak-integration
Sep 29, 2026
Merged

MisterVVP merged 21 commits into
dev-extend-production-tutorials-with-mcp-integrationfrom
dev-refactor-pr-#255-for-contextforge-keycloak-integration

Conversation

@MisterVVP

@MisterVVP MisterVVP commented Sep 27, 2026 •

Copy link
Copy Markdown
Owner

Motivation

  • Replace the tutorial-only custom MCP fixture with a realistic third-party MCP/OAuth setup.
  • Keep the production tutorials deterministic and CI-friendly while showing a clearer separation between A2A agent communication and MCP resource access.
  • Make the local and Docker Compose tutorial workflows easy to discover and run.

Changes

  • Refactored Customer Support Copilot to use ContextForge v1.0.10 for MCP resources and Keycloak 26.7.4 for OAuth.
  • Added a short-lived client_credentials flow for the mcp-agent client, verified HTTPS with an ephemeral local CA, and a least-privilege ContextForge service principal with servers.use and resources.read.
  • Added ContextForge bootstrap automation that configures Keycloak trust, registers the deterministic ticket resource, creates the virtual MCP server, requests the access token, and writes the runtime MCP environment for the specialist.
  • Simplified the shared C++ MCP client to a stateless MCP 2025-11-25 resources/read request with bearer authentication, bounded timeouts, response validation, and no token logging.
  • Added Docker Compose coverage for the authenticated Customer Support flow, including an unauthenticated rejection check and an authenticated MCP preflight before the A2A agents start.
  • Restored Job Application Assistant to its file-based A2A-only flow and removed the old custom MCP server fixture.
  • Kept host-native tutorial smoke deterministic through scripts/run_tutorials.sh.
  • Refactored the root and tutorial READMEs so the supported local and Docker Compose entry points are short, explicit, and consistent.
  • Updated MCP client unit tests for the stateless request/response behavior and error handling.

@MisterVVP MisterVVP added the codex Automatic label added by codex agent. Should not be used label Sep 27, 2026 — with ChatGPT Codex Connector
@MisterVVP MisterVVP added documentation Improvements or additions to documentation enhancement New feature or request AI agent AI agent contribution and removed codex Automatic label added by codex agent. Should not be used labels Sep 27, 2026
@MisterVVP MisterVVP self-assigned this Sep 27, 2026
@MisterVVP MisterVVP added the human Human contribution label Sep 28, 2026
@MisterVVP
MisterVVP marked this pull request as ready for review September 29, 2026 14:03
@MisterVVP
MisterVVP merged commit fd3d5e5 into dev-extend-production-tutorials-with-mcp-integration Sep 29, 2026
@MisterVVP
MisterVVP deleted the dev-refactor-pr-#255-for-contextforge-keycloak-integration branch September 29, 2026 14:03
MisterVVP added a commit that referenced this pull request Sep 29, 2026
…256)

- Replace the tutorial-only custom MCP fixture with a realistic
third-party MCP/OAuth setup.
- Keep the production tutorials deterministic and CI-friendly while
showing a clearer separation between A2A agent communication and MCP
resource access.
- Make the local and Docker Compose tutorial workflows easy to discover
and run.

- Refactored Customer Support Copilot to use ContextForge `v1.0.10` for
MCP resources and Keycloak `26.7.4` for OAuth.
- Added a short-lived `client_credentials` flow for the `mcp-agent`
client, verified HTTPS with an ephemeral local CA, and a least-privilege
ContextForge service principal with `servers.use` and `resources.read`.
- Added ContextForge bootstrap automation that configures Keycloak
trust, registers the deterministic ticket resource, creates the virtual
MCP server, requests the access token, and writes the runtime MCP
environment for the specialist.
- Simplified the shared C++ MCP client to a stateless MCP `2025-11-25`
`resources/read` request with bearer authentication, bounded timeouts,
response validation, and no token logging.
- Added Docker Compose coverage for the authenticated Customer Support
flow, including an unauthenticated rejection check and an authenticated
MCP preflight before the A2A agents start.
- Restored Job Application Assistant to its file-based A2A-only flow and
removed the old custom MCP server fixture.
- Kept host-native tutorial smoke deterministic through
`scripts/run_tutorials.sh`.
- Refactored the root and tutorial READMEs so the supported local and
Docker Compose entry points are short, explicit, and consistent.
- Updated MCP client unit tests for the stateless request/response
behavior and error handling.

---------

Co-authored-by: Vladimir Pavlov <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AI agent AI agent contribution documentation Improvements or additions to documentation enhancement New feature or request human Human contribution

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant