{"owner":"IBM","repo":"mcp-context-forge","hasSkills":true,"totalSkillsCount":191,"totalTokensCount":75340,"categories":["anthropic-skill","root-instruction","claude-rule","project-spec","plugin-manifest","marketplace","subagent-persona"],"hasMcp":true,"mcpConfig":{"mcpServers":{"mcp-context-forge":{"command":"npx","args":["-y","@modelcontextprotocol/server-mcp-context-forge"]}}},"found":[".agents/skills/mcp-helpers/SKILL.md",".agents/skills/contextforge-web-ui/SKILL.md",".agents/skills/observability-audit-sessions/SKILL.md",".agents/skills/alembic-migrations/SKILL.md",".agents/skills/pr-review/SKILL.md","AGENTS.md","CLAUDE.md","charts/AGENTS.md","docs/AGENTS.md",".agents/skills/asd-ste100/SKILL.md",".agents/skills/secret-detection/SKILL.md",".agents/skills/github-issues/SKILL.md","llms/api.md","plugins/AGENTS.md","plugins/README.md","plugins/config-pii-guardian-policy.yaml","plugins/config.yaml","plugins/install.yaml","plugins/plugin_parity_config.yaml","plugins/primary_worker_multiinstance_config.yaml","tests/AGENTS.md",".github/tools/CLEANUP.md","plugins/ai_artifacts_normalizer/README.md","plugins/ai_artifacts_normalizer/plugin-manifest.yaml","plugins/altk_json_processor/README.md","plugins/altk_json_processor/plugin-manifest.yaml","plugins/argument_normalizer/README.md","plugins/cached_tool_result/README.md","plugins/cached_tool_result/plugin-manifest.yaml","plugins/circuit_breaker/README.md","plugins/circuit_breaker/plugin-manifest.yaml","plugins/citation_validator/README.md","plugins/citation_validator/plugin-manifest.yaml","plugins/code_formatter/README.md","plugins/code_formatter/plugin-manifest.yaml","plugins/code_safety_linter/README.md","plugins/code_safety_linter/plugin-manifest.yaml","plugins/content_moderation/README.md","plugins/content_moderation/TESTING.md","plugins/content_moderation/plugin-manifest.yaml","plugins/deny_filter/README.md","plugins/deny_filter/plugin-manifest.yaml","plugins/external/config-stdio.yaml","plugins/external/config.yaml","plugins/file_type_allowlist/README.md","plugins/file_type_allowlist/plugin-manifest.yaml","plugins/harmful_content_detector/README.md","plugins/harmful_content_detector/plugin-manifest.yaml","plugins/header_filter/README.md","plugins/header_filter/config.yaml","plugins/header_injector/README.md","plugins/header_injector/plugin-manifest.yaml","plugins/html_to_markdown/README.md","plugins/html_to_markdown/plugin-manifest.yaml","plugins/json_repair/README.md","plugins/json_repair/plugin-manifest.yaml","plugins/jwt_claims_extraction/README.md","plugins/jwt_claims_extraction/plugin-manifest.yaml","plugins/license_header_injector/README.md","plugins/license_header_injector/plugin-manifest.yaml","plugins/markdown_cleaner/README.md","plugins/markdown_cleaner/plugin-manifest.yaml","plugins/privacy_notice_injector/README.md","plugins/privacy_notice_injector/plugin-manifest.yaml","plugins/regex_filter/README.md","plugins/regex_filter/plugin-manifest.yaml","plugins/resource_filter/README.md","plugins/resource_filter/plugin-manifest.yaml","plugins/response_cache_by_prompt/README.md","plugins/response_cache_by_prompt/plugin-manifest.yaml","plugins/robots_license_guard/README.md","plugins/robots_license_guard/plugin-manifest.yaml","plugins/safe_html_sanitizer/README.md","plugins/safe_html_sanitizer/plugin-manifest.yaml","plugins/schema_guard/README.md","plugins/schema_guard/plugin-manifest.yaml","plugins/span_attribute_customizer/README.md","plugins/sparc_static_validator/README.md","plugins/sparc_static_validator/plugin-manifest.yaml","plugins/summarizer/README.md","plugins/summarizer/plugin-manifest.yaml","plugins/timezone_translator/README.md","plugins/timezone_translator/plugin-manifest.yaml","plugins/tools_telemetry_exporter/README.md","plugins/tools_telemetry_exporter/plugin-manifest.yaml","plugins/toon_encoder/README.md","plugins/toon_encoder/plugin-manifest.yaml","plugins/unified_pdp/README.md","plugins/unified_pdp/default_rules.json","plugins/vault/README.md","plugins/vault/config_vault_e2e.yaml","plugins/vault/plugin-manifest.yaml","plugins/virus_total_checker/README.md","plugins/virus_total_checker/plugin-manifest.yaml","plugins/watchdog/README.md","plugins/watchdog/plugin-manifest.yaml","plugins/webhook_notification/README.md","plugins/webhook_notification/TESTING.md","plugins/webhook_notification/plugin-manifest.yaml","plugins/webhook_notification/test_config.yaml",".agents/skills/asd-ste100/README.md","plugins/examples/custom_auth_example/README.md","plugins/examples/custom_auth_example/plugin-manifest.yaml","plugins/examples/simple_token_auth/README.md","plugins/examples/simple_token_auth/plugin-manifest.yaml","plugins/external/cedar/README.md","plugins/external/clamav_server/README.md","plugins/external/llmguard/README.md","plugins/external/llmguard/docker-compose.yaml","plugins/external/opa/README.md","plugins/resources/server/config-http.yaml","plugins/resources/server/config-stdio.yaml","tests/performance/plugins/config.yaml",".agents/skills/asd-ste100/.claude-plugin/marketplace.json",".agents/skills/asd-ste100/.claude-plugin/plugin.json",".agents/skills/asd-ste100/examples/before-after.md",".agents/skills/asd-ste100/examples/linter-edge-cases.md",".agents/skills/asd-ste100/references/writing-rules.md","docs/docs/architecture/plugins/gateway-hooks.md","docs/docs/architecture/plugins/security-hooks.md","docs/docs/using/agents/a2a.md","docs/docs/using/agents/autogen.md","docs/docs/using/agents/beeai.md","docs/docs/using/agents/crewai.md","docs/docs/using/agents/index.md","docs/docs/using/agents/langchain.md","docs/docs/using/agents/langgraph.md","docs/docs/using/agents/llamaindex.md","docs/docs/using/agents/openai-sdk.md","docs/docs/using/agents/semantic-kernel.md","docs/docs/using/plugins/grpc-transport.md","docs/docs/using/plugins/http-auth-hooks.md","docs/docs/using/plugins/index.md","docs/docs/using/plugins/lifecycle.md","docs/docs/using/plugins/migration-to-cpex.md","docs/docs/using/plugins/mtls.md","docs/docs/using/plugins/plugins.md","docs/docs/using/plugins/unix-socket-transport.md","plugins/external/cedar/cedarpolicyplugin/plugin-manifest.yaml","plugins/external/cedar/examples/config-cedar.yaml","plugins/external/cedar/examples/config-dsl.yaml","plugins/external/llmguard/examples/config-all-in-one.yaml","plugins/external/llmguard/examples/config-complex-policy.yaml","plugins/external/llmguard/examples/config-input-output-filter.yaml","plugins/external/llmguard/examples/config-input-output-sanitizer.yaml","plugins/external/llmguard/examples/config-separate-plugins-filters-sanitizers.yaml","plugins/external/llmguard/llmguardplugin/plugin-manifest.yaml","plugins/external/opa/opapluginfilter/plugin-manifest.yaml","tests/performance/payloads/tools/convert_time.json","tests/performance/payloads/tools/get_system_time.json","tests/performance/payloads/tools/list_tools.json","plugins/external/cedar/resources/plugins/config.yaml","plugins/external/cedar/resources/runtime/config.yaml","plugins/external/clamav_server/resources/plugins/config.yaml","plugins/external/llmguard/resources/plugins/config.yaml","plugins/external/llmguard/resources/runtime/config.yaml","plugins/external/opa/resources/plugins/config.yaml","plugins/external/opa/resources/runtime/config.yaml","tests/unit/mcpgateway/plugins/fixtures/install.yaml","tests/unit/mcpgateway/plugins/fixtures/configs/agent_context.yaml","tests/unit/mcpgateway/plugins/fixtures/configs/agent_filter.yaml","tests/unit/mcpgateway/plugins/fixtures/configs/agent_passthrough.yaml","tests/unit/mcpgateway/plugins/fixtures/configs/context_multiplugins.yaml","tests/unit/mcpgateway/plugins/fixtures/configs/context_plugin.yaml","tests/unit/mcpgateway/plugins/fixtures/configs/context_stdio_external_plugins.yaml","tests/unit/mcpgateway/plugins/fixtures/configs/cross_hook_context.yaml","tests/unit/mcpgateway/plugins/fixtures/configs/error_plugin.yaml","tests/unit/mcpgateway/plugins/fixtures/configs/error_plugin_raise_error_false.yaml","tests/unit/mcpgateway/plugins/fixtures/configs/error_stdio_external_plugin.yaml","tests/unit/mcpgateway/plugins/fixtures/configs/init_hooks_plugins_test.yaml","tests/unit/mcpgateway/plugins/fixtures/configs/invalid_single_plugin.yaml","tests/unit/mcpgateway/plugins/fixtures/configs/test_hook_patterns_config.yaml","tests/unit/mcpgateway/plugins/fixtures/configs/tool_headers_metadata_plugin.yaml","tests/unit/mcpgateway/plugins/fixtures/configs/tool_headers_plugin.yaml","tests/unit/mcpgateway/plugins/fixtures/configs/valid_grpc_external_plugin.yaml","tests/unit/mcpgateway/plugins/fixtures/configs/valid_grpc_external_plugin_manager.yaml","tests/unit/mcpgateway/plugins/fixtures/configs/valid_multiple_plugins.yaml","tests/unit/mcpgateway/plugins/fixtures/configs/valid_multiple_plugins_filter.yaml","tests/unit/mcpgateway/plugins/fixtures/configs/valid_no_plugin.yaml","tests/unit/mcpgateway/plugins/fixtures/configs/valid_single_filter_plugin.yaml","tests/unit/mcpgateway/plugins/fixtures/configs/valid_single_plugin.yaml","tests/unit/mcpgateway/plugins/fixtures/configs/valid_single_plugin_passthrough.yaml","tests/unit/mcpgateway/plugins/fixtures/configs/valid_stdio_external_plugin.yaml","tests/unit/mcpgateway/plugins/fixtures/configs/valid_stdio_external_plugin_overrides.yaml","tests/unit/mcpgateway/plugins/fixtures/configs/valid_stdio_external_plugin_passthrough.yaml","tests/unit/mcpgateway/plugins/fixtures/configs/valid_stdio_external_plugin_regex.yaml","tests/unit/mcpgateway/plugins/fixtures/configs/valid_strhttp_external_plugin_overrides.yaml","tests/unit/mcpgateway/plugins/fixtures/configs/valid_strhttp_external_plugin_regex.yaml","tests/unit/mcpgateway/plugins/fixtures/configs/valid_tool_hooks.yaml","tests/unit/mcpgateway/plugins/fixtures/configs/valid_unix_external_plugin.yaml","tests/unit/mcpgateway/plugins/fixtures/configs/valid_unix_external_plugin_manager.yaml"],"skills":{".agents/skills/mcp-helpers/SKILL.md":"---\nname: mcp-helpers\ndescription: Generate a gateway JWT, expose a stdio MCP server over HTTP/SSE with `mcpgateway.translate`, or register an MCP server in a local gateway.\n---\n\n# MCP Helpers\n\n```bash\n# Generate JWT token\npython -m mcpgateway.utils.create_jwt_token --username admin@example.com --exp 10080 --secret KEY\n\n# Export for API calls\nexport MCPGATEWAY_BEARER_TOKEN=$(python -m mcpgateway.utils.create_jwt_token --username admin@example.com --exp 0 --secret KEY)\n\n# Expose stdio server via HTTP/SSE\npython -m mcpgateway.translate --stdio \"uvx mcp-server-git\" --port 9000\n```\n\n## Add an MCP Server\n\n1. Start: `python -m mcpgateway.translate --stdio \"server-command\" --port 9000`\n2. Register: `POST /gateways`\n3. Create virtual server: `POST /servers`\n4. Access via SSE/WebSocket endpoints\n",".agents/skills/contextforge-web-ui/SKILL.md":"---\nname: contextforge-web-ui\ndescription: Run or configure the ContextForge Web UI (`web_ui` service, `--profile ui`, `WEB_UI_*` variables in `docker-compose.yml` and `.env.example`). Not for the built-in Admin UI.\n---\n\n# ContextForge Web UI\n\nA BFF-style frontend for the gateway API. It is separate from the built-in Admin UI (`MCPGATEWAY_UI_ENABLED`). Source and docs: https://github.com/contextforge-org/contextforge-web-ui\n\n- Runs as `web_ui` plus a dedicated `web_ui_redis` session store in `docker-compose.yml`.\n- Enabled with `--profile ui`. `--profile testing` also pulls it in.\n- `web_ui` waits until `gateway` and `web_ui_redis` are healthy.\n\n```bash\n# Start the gateway plus the web UI\ndocker compose --profile ui up -d\n\n# Access\nopen http://localhost:${WEB_UI_PORT:-3001}\n```\n\nConfiguration (see the commented `WEB_UI_*` block in `.env.example`):\n\n| Variable | Default | Purpose |\n|----------|---------|---------|\n| `WEB_UI_IMAGE` | see `docker-compose.yml` | Image to pull. Pinned to a specific released version *and* digest, never `latest`. The release checklist bumps it (`docs/docs/development/release-management.md`). Keep the value in `docker-compose.yml` only, so copies cannot drift. |\n| `WEB_UI_PORT` | `3001` | Host **and** container port. The image reads `PORT` at startup, so both sides of the mapping stay in sync. |\n| `WEB_UI_HOST` | `0.0.0.0` | Bind address inside the container. Keep `0.0.0.0` in Docker. |\n| `WEB_UI_CONTEXTFORGE_URL` | `http://gateway:4444` | Gateway API base URL the UI talks to (internal compose network). |\n| `WEB_UI_COOKIE_SECURE` | `false` | Set `true` once the UI is served over HTTPS. |\n| `WEB_UI_REDIS_URL` | `redis://web_ui_redis:6379/0` | Session store, separate from the gateway's cache `redis` service. |\n\nFor feature docs, auth flow details, and upstream options beyond this compose file, see the [contextforge-web-ui repo](https://github.com/contextforge-org/contextforge-web-ui).\n",".agents/skills/observability-audit-sessions/SKILL.md":"---\nname: observability-audit-sessions\ndescription: Change code that writes traces, spans, metrics, or audit entries. Use when you touch `ObservabilityService`, `ObservabilityMiddleware`, `instrumentation/sqlalchemy.py`, or a `log_action()` / `log_audit()` call site, or when you size connection pools.\n---\n\n# Observability and Audit Trail Session Behavior\n\nObservability writes and audit writes use sessions separate from the main request transaction. This is an intentional trade-off.\n\n## Observability Transaction Behavior\n\n**Issue #3883 - Separate Session Pattern**\n\nThe HTTP middleware reuses one observability session per traced request. This means:\n\n- Observability data persists even when the main request fails.\n- Traces can show \"in progress\" or partial states for failed requests.\n- Observability writes are **NOT atomic** with the main request transaction.\n- You get visibility into partial failures at the cost of atomicity.\n\n### Implementation Details\n\n**Write methods** (create independent sessions unless callers supply a supported `obs_db` parameter):\n- `start_trace()`, `end_trace()`\n- `start_span()`, `end_span()`\n- `add_event()`, `record_token_usage()`, `record_metric()`, `delete_old_traces()`\n\n**Query methods** (use request-scoped sessions):\n- `get_trace()`, `get_traces()`, `get_spans()`, etc.\n- These accept a `db: Session` parameter for RBAC/token scoping.\n\n**Context managers** (create one independent session for the lifecycle):\n- `trace_span()`, `trace_tool_invocation()`, `trace_a2a_request()`\n\n**Middleware lifecycle**: Commit parent traces and HTTP spans before request processing so independent child writers can see them. Commit span and trace completion independently. Roll back caught span failures before attempting trace completion. Keep this session separate from application transactions.\n\n**Pattern**: SQL instrumentation also reuses a session for each query span in `instrumentation/sqlalchemy.py`.\n\n## Audit Trail Transaction Behavior\n\n**Issue #2871 - Separate Session Pattern**\n\n`AuditTrailService.log_action()` (`mcpgateway/services/audit_trail_service.py`) opens its own `SessionLocal()` when no `db` is supplied. It closes and rolls back that session itself. Callers in `tool_service.py`, `resource_service.py`, `gateway_service.py`, `prompt_service.py`, `server_service.py`, and `admin.py` must **never** pass `db=db` (the caller's request-scoped session) to `log_action()`. In `admin.py`, plugin-view audit logging goes through `log_audit()`. It is a thin wrapper over `log_action()` and inherits the same optional-session behavior.\n\nPassing the shared session caused **\"This transaction is inactive\"** errors. The main CRUD operation already calls `db.commit()` before the audit call. A second commit on the same session leaves it in a state that breaks rollback on later errors.\n\n- `log_action()` swallows its own exceptions and returns `None` on failure. It does not propagate them to the caller in production.\n- The main resource (tool/gateway/resource/prompt/server) is committed **before** `log_action()` runs. An audit-logging failure never rolls back persisted data. The generic `except Exception` handlers of callers still call `db.rollback()` and surface an error to the API caller, even though the row is already committed.\n- Do not add `db: Session` back to a `log_action()` call site. If a service needs the audit entry in the same transaction as the main write, that is a deliberate design change that requires review.\n\n**Middleware**: `ObservabilityMiddleware` creates one observability session per HTTP trace lifecycle and closes it after completion. Child spans, metrics, and SQL instrumentation can create additional sessions. The middleware does not create `request.state.db`.\n\n**Security**: Query operations use request-scoped sessions for RBAC/token scoping. Write operations are not RBAC-protected. Observability visibility is platform-wide.\n\n**Connection Pool Sizing**: Session allocations do not equal simultaneous connections. Commits release connections before subsequent lifecycle operations. Size pools from measured concurrent connection use, worker counts, and database limits. The SQLite lifecycle comparison measures session allocations and checkouts. It does not establish production capacity. See `docs/docs/manage/tuning.md` for measurements and limitations.\n",".agents/skills/alembic-migrations/SKILL.md":"---\nname: alembic-migrations\ndescription: Create or review an Alembic migration in `mcpgateway/alembic`. Use when you add a column or table, change `mcpgateway/db.py` models, fix \"Multiple heads\", or write a `downgrade()` that reads `settings`.\n---\n\n# Alembic Database Migrations\n\nEvery change to a model in `mcpgateway/db.py` needs a matching Alembic migration. This includes every new column and table.\n\n## Migration Chain Rules\n\n- Work on one migration at a time. Merge or finish one migration before you start the next.\n- The `revision` -> `down_revision` links form one linked list. The chain never branches.\n- Each migration has exactly one parent. `alembic heads` shows exactly one head.\n- A new migration sets `down_revision` to the current head.\n\n## Create a Migration\n\n```bash\n# CRITICAL: Always check the current head FIRST\ncd mcpgateway && alembic heads\n\n# Generate a new migration (auto-generates from model changes)\nalembic revision --autogenerate -m \"add_column_to_table\"\n\n# Or create an empty migration for manual edits\nalembic revision -m \"add_column_to_table\"\n```\n\n## Migration File Requirements\n\nThe `down_revision` MUST point to the current head. Read the head from `alembic heads`. Never copy the value from an older migration.\n\n```python\n# CORRECT: points to the actual current head (verified with `alembic heads`)\nrevision: str = \"<new_revision_id>\"\ndown_revision: Union[str, Sequence[str], None] = \"<current_head_id>\"\n\n# WRONG: creates multiple heads (breaks all tests)\ndown_revision: Union[str, Sequence[str], None] = \"<some_older_revision_id>\"\n```\n\n## Idempotent Migrations Pattern\n\nWrite idempotent migrations. Check state before you change it:\n\n```python\ndef upgrade() -> None:\n    inspector = sa.inspect(op.get_bind())\n\n    # Skip if table doesn't exist (fresh DB uses db.py models directly)\n    if \"my_table\" not in inspector.get_table_names():\n        return\n\n    # Skip if column already exists\n    columns = [col[\"name\"] for col in inspector.get_columns(\"my_table\")]\n    if \"new_column\" in columns:\n        return\n\n    op.add_column(\"my_table\", sa.Column(\"new_column\", sa.String(), nullable=True))\n```\n\n## Verification\n\nRun these commands from `mcpgateway/`.\n\n### Inspect the chain\n\n```bash\nalembic heads              # must show exactly ONE head\nalembic current            # revision the DB is at\nalembic history --verbose  # full chain\nalembic branches           # find branch points\n```\n\n### Upgrade\n\n```bash\nalembic upgrade head              # apply all\nalembic upgrade +1                # apply the next one\nalembic upgrade <revision_id>     # apply up to a specific revision\nalembic upgrade <rev>:head --sql  # print the SQL only (offline mode, no DB change)\n```\n\n### Downgrade\n\n```bash\nalembic downgrade -1              # revert the latest migration\nalembic downgrade <revision_id>   # revert to a specific revision\nalembic downgrade base            # revert everything\nalembic downgrade head:-1 --sql   # print the SQL only (offline mode, no DB change)\n```\n\n### Round-trip test of a new migration\n\n```bash\nalembic upgrade head && alembic downgrade -1 && alembic upgrade head\n```\n\nRun the test suite to confirm the migrations work:\n\n```bash\nmake test\n```\n\nDone when `alembic heads` prints one head, the round-trip test passes, and `make test` passes.\n\n## Common Errors\n\n- **\"Multiple heads are present\"**: `down_revision` points to the wrong parent. Set it to the actual current head.\n- **\"Target database is not up to date\"**: Run `alembic upgrade head` first.\n\n## Hermetic Downgrade: Config Snapshot Pattern\n\nA `downgrade()` that reads runtime configuration (`mcpgateway.config.settings`) **must** snapshot those values into `migration_metadata` during `upgrade()`. `downgrade()` reads the snapshot back. The migration is then hermetic: database state determines its behavior, not the current environment.\n\n```python\nfrom mcpgateway.config import settings\nfrom sqlalchemy import inspect, text\n\nREVISION = \"<your_revision_id>\"\n\ndef upgrade() -> None:\n    bind = op.get_bind()\n    # ... schema changes ...\n\n    # Snapshot any settings values used in downgrade\n    if \"migration_metadata\" in inspect(bind).get_table_names():\n        bind.execute(\n            text(\n                \"INSERT INTO migration_metadata (revision, key, value, created_at) \"\n                \"VALUES (:rev, :key, :val, CURRENT_TIMESTAMP) \"\n                \"ON CONFLICT (revision, key) DO UPDATE SET value = excluded.value\"\n            ),\n            {\"rev\": REVISION, \"key\": \"some_setting\", \"val\": settings.some_setting},\n        )\n\ndef downgrade() -> None:\n    bind = op.get_bind()\n\n    # Read from snapshot; fall back to live settings only if table is absent\n    # (pre-existing DB that was upgraded before this pattern was introduced)\n    cfg = {}\n    if \"migration_metadata\" in inspect(bind).get_table_names():\n        rows = bind.execute(\n            text(\"SELECT key, value FROM migration_metadata WHERE revision = :rev\"),\n            {\"rev\": REVISION},\n        ).all()\n        cfg = {r[0]: r[1] for r in rows}\n\n    some_setting = cfg.get(\"some_setting\") or settings.some_setting\n\n    # ... use some_setting for downgrade logic ...\n\n    # Clean up snapshot rows\n    if \"migration_metadata\" in inspect(bind).get_table_names():\n        bind.execute(\n            text(\"DELETE FROM migration_metadata WHERE revision = :rev\"),\n            {\"rev\": REVISION},\n        )\n```\n\n**Rule:** If a migration imports `settings` and uses it in `downgrade()`, follow this pattern. A migration that uses `settings` only in `upgrade()` (for example, to seed initial data) is exempt.\n",".agents/skills/pr-review/SKILL.md":"---\nname: pr-review\ndescription: Review a PR, branch, or diff in this repository. Use before you create or update a PR, when a branch is ready for review, or before you post `gh pr review`. Defines the procedure, finding format, severity levels, blocking criteria, and tone.\n---\n\n# PR Review\n\nA review reports every issue as a finding the author can act on. A review changes no files.\n\n## Rebase on origin/main\n\n1. Run `git fetch origin`.\n2. Run `git rebase origin/main`.\n\nIf the rebase hits conflicts, resolve them. When both sides changed the same logic substantively, ask the user which side wins. Resolve `.secrets.baseline` conflicts with the `secret-detection` skill.\n\n## Gather Context\n\n1. **Diff**: Collect all changes between `origin/main` and HEAD, plus staged and unstaged working-tree changes. Treat them as one unit. Staging status is never a finding.\n2. **PR metadata**: When a PR exists, read the description, review comments, and linked issues (`gh pr view`, `gh pr view --comments`, `gh issue view N`).\n3. **Scope**: Compare the PR description against the linked issues. Partial coverage of an issue is acceptable when the PR says so. Unstated gaps and scope drift are findings.\n4. **Conventions**: Read `AGENTS.md` and `CONTRIBUTING.md`. Use their linter and test commands exactly.\n\n## Review Order\n\nReview the diff in this order. Severity comes from *Blocking Criteria* below, not from the category.\n\n1. Security: injection, leaked secrets, auth gaps, OWASP top 10, Layer 1 / Layer 2 violations.\n2. Correctness: logic errors, edge cases, mismatch with linked issues.\n3. Test coverage: changed code has tests, including deny-path tests for security changes.\n4. Linter compliance: run project linters on touched files and report violations. Do not fix them (see *Optional Lint Auto-Fix*).\n5. Performance: N+1 queries, unnecessary allocations, bottlenecks.\n6. Redundancy: duplicated logic, copy-paste patterns, shared-utility opportunities.\n7. Design: structural quality (see *Design Guidance*).\n8. Consistency: adherence to documented conventions.\n9. Alembic migrations (conditional): idempotence, reversibility, cross-database compatibility, `batch_alter_table` for SQLite. Apply the `alembic-migrations` skill.\n\n## Optional Lint Auto-Fix\n\nNever auto-fix formatting during a review. A reviewer who edits the reviewed code changes the PR under review. Report `black`, `isort`, `autoflake`, pylint, bandit, and mypy findings for the author to address. Include the exact command and output.\n\nRun the auto-fix only when the user explicitly asks for it, for example a local developer who reviews their own branch. Fix files the PR touched only. Never run formatters on the whole codebase. That pollutes the diff.\n\n```bash\nPY_FILES=\"$(git diff --diff-filter=d --name-only origin/main -- '*.py')\"\nif [ -n \"$PY_FILES\" ]; then\n  make autoflake isort black TARGET=\"$PY_FILES\"\nfi\n```\n\nRun the linters again to check the fixes. Report the fix as a minor finding, for example \"Auto-fixed: ran autoflake/isort/black on N files\".\n\n## Design Guidance\n\n### Structure and modularity\n\n- **Single-responsibility violations**: Name each responsibility and suggest a split.\n- **God functions**: More than 50 lines of logic or more than 3 levels of nesting. Name the extraction points.\n- **Long parameter lists**: More than 5 parameters often means a missing config object or dataclass.\n- **Tight coupling**: Modules that reach into each other's internals. Suggest an interface boundary.\n- **Deep nesting**: Suggest early returns, guard clauses, or extracted helpers.\n\n### Polymorphism\n\nLong `if`/`elif`/`else` chains often want polymorphic dispatch. Look for these in changed code and adjacent code:\n\n- **Type-switching conditionals**, for example `if transport == \"sse\": ... elif transport == \"websocket\": ...`. Suggest an ABC or Protocol with one implementation per variant.\n- **Behavior chosen by enum or string**. Suggest Strategy or Template Method.\n- **Scattered object creation**. Suggest a factory method or registry.\n- **Simple dispatch**. A `dict[key, callable]` table is a good intermediate step.\n- **Copy-paste behavior across classes**. Suggest a `Protocol` or mixin.\n- **Missing abstract parents**. Classes with a shared interface and no common base need an ABC with `@abstractmethod`.\n\n### Missing abstractions\n\n- A pattern repeated at 3 or more call sites needs a shared utility or base class.\n- A data class whose related logic lives in other modules needs that logic moved next to the data.\n\n## Second Opinions\n\nAfter your own review, run these tools as background tasks. If a tool is missing or fails, skip it and note the reduced coverage.\n\n- `codex exec review --base origin/main`\n- `git diff origin/main..HEAD | bob \"Review this diff for correctness, security, and design quality. Be specific about line-level issues.\"`\n\nAttribute each finding to its source. Resolve contradictions.\n\n## Finding Format\n\nWrite each finding as a compact block that reads well in a GitHub comment:\n\n```markdown\n**severity** · `path:line`\nProblem: what is wrong and why it matters.\nFix: the concrete change.\n```\n\nUse short sentences. Add detail only when the problem or fix needs it. Make each fix concrete: name the method to extract, the class to create, the interface to define. \"Consider refactoring\" is not a fix. The delivery channel (file, agent toolkit, `gh pr review`) is per-PR. Ask the user which channel applies before you post externally.\n\n## Severity\n\n| Severity | Meaning | Disposition |\n|----------|---------|-------------|\n| blocking | Meets a blocking criterion with evidence in the diff or linked artifacts | Merge gate. No waiver |\n| functionally-impacting | Affects behavior or maintainability, below the blocking bar | Fix before merge unless the PR documents a waiver |\n| suggestion | A better way exists. Optional | May be deferred |\n| minor | Polish | May be deferred |\n\n## Blocking Criteria\n\nA finding is blocking if and only if it meets one of these criteria with evidence in the diff or linked artifacts. If there is no evidence, the finding is not blocking:\n\n1. Correctness bug in changed code, reachable in real use (includes data loss).\n2. Security regression, or a security-sensitive change without deny-path regression tests (unauthenticated, wrong team, insufficient permission, feature disabled).\n3. Violates a documented Security Invariant or design decision (see *Authentication & RBAC Overview* and *Synchronous SQLAlchemy in Async Handlers* in `AGENTS.md`).\n4. Breaks a consumer contract unflagged: HTTP API, environment variables or their defaults, database schema, Helm values, MCP/A2A wire behavior.\n5. Adds or changes a model without a matching Alembic migration.\n6. The PR does not deliver what it claims.\n\nWhen severity stays ambiguous after investigation, mark the finding blocking and name the missing evidence. The next pass resolves it.\n\nNot blocking: style and naming (Ruff owns these), the sync-SQLAlchemy-in-async pattern, doc polish, test-count aesthetics.\n\n## Output\n\n```markdown\n# PR Review: [branch-name]\n\n## Summary\n[1-2 sentences: what changed, whether it meets the PR and issue goals]\n\n## Findings\n[one block per finding, grouped blocking, functionally-impacting, suggestion, minor]\n\n## Recommendation\n[Exactly ONE of: \"Ready to merge\" | \"Ready after addressing findings\" | \"Needs significant rework\"]\n[1 sentence of justification]\n```\n\n## Rules\n\n- Change no files. Report every finding for the author. Run the lint auto-fix only on explicit user request.\n- Never mention AI or coding assistants in any output.\n\n## Tone\n\nCourteous by structure, direct by sentence. Lead with what works. State severity so the author knows what must change. Write as a respectful senior colleague: direct about problems, never harsh, never hedged. Prose follows *Agent Prose* in `AGENTS.md`. Before you post, rewrite the summary, findings, and recommendation with the `asd-ste100` skill in STE-flavored mode. Done when each sentence is 25 words or fewer, active, and keeps every severity and hedge.\n","AGENTS.md":"# AGENTS.md\n\nGuidelines for AI coding assistants working with this repository.\n\nFor domain-specific guidance, see subdirectory AGENTS.md files:\n- `tests/AGENTS.md` - Testing conventions and workflows\n- `plugins/AGENTS.md` - Plugin framework and development\n- `charts/AGENTS.md` - Helm chart operations\n- `docs/AGENTS.md` - Documentation authoring\n\n**Note:** The `llms/` directory holds LLM guidance of two kinds: end-user runtime guidance for using ContextForge, and work prompts for agents changing this repository. Where `llms/` guidance overlaps an `AGENTS.md` file, the `AGENTS.md` file is authoritative.\n\n## Skills\n\nTask-specific guidance lives in `.agents/skills/`. `.bob/skills` links to that directory. Load the matching skill before you start the task:\n\n- `asd-ste100`: write or rewrite prose for humans (review findings, issue and PR text, commit bodies) in ASD-STE100 style.\n- `pr-review`: write review findings, assign severity, judge blocking criteria.\n- `alembic-migrations`: add or change a database model, column, or migration.\n- `observability-audit-sessions`: change trace, span, metric, or audit writes.\n- `secret-detection`: resolve a `detect-secrets` finding or `.secrets.baseline` change.\n- `github-issues`: create, label, or triage an issue.\n- `contextforge-web-ui`: run or configure the `web_ui` compose service.\n- `mcp-helpers`: generate a JWT or register an MCP server locally.\n\n## Project Overview\n\nContextForge is an open source registry and proxy that federates MCP, A2A, and REST/gRPC APIs with centralized governance, discovery, and observability. It federates tools, agents, and APIs, optimizes agent and tool calling, and supports plugins, auth/RBAC, rate-limiting, virtual servers, multi-transport protocols, and an optional Admin UI.\n\n## Project Structure\n\n```\nmcpgateway/                 # Core FastAPI application\n├── main.py                 # Application entry point\n├── config.py               # Environment configuration\n├── db.py                   # SQLAlchemy ORM models and session management\n├── schemas.py              # Pydantic validation schemas\n├── services/               # Business logic layer (50+ services)\n├── routers/                # HTTP endpoint definitions (19 routers)\n├── middleware/             # Cross-cutting concerns (16 middleware)\n├── transports/             # Protocol implementations (SSE, WebSocket, stdio, streamable HTTP)\n├── plugins/                # Plugin integration (uses cpex external package)\n└── alembic/                # Database migrations\n\ntests/                      # Test suite (see tests/AGENTS.md)\nplugins/                    # Plugin implementations (see plugins/AGENTS.md)\ncharts/                     # Helm charts (see charts/AGENTS.md)\ndocs/                       # Architecture and usage documentation (see docs/AGENTS.md)\na2a-agents/                 # A2A agent implementations (used for testing/examples)\nllms/                       # End-user LLM guidance (not for code agents)\n```\n\n## Essential Commands\n\n### Setup\n```bash\ncp .env.example .env && make install-dev check-env    # Complete setup\nmake venv                          # Create virtual environment with uv\nmake install-dev                   # Install with dev dependencies (includes build-ui)\nmake check-env                     # Verify .env against .env.example\nmake build-ui                      # Rebuild Admin UI JS bundle (requires npm)\n```\n\n### Development\n```bash\nmake dev                          # Dev server on :8000 with autoreload\nmake serve                        # Production gunicorn on :4444\nmake serve-ssl                    # HTTPS on :4444 (creates certs if needed)\n```\n\n### Code Quality\n```bash\n# After writing code\nmake pre-commit\n\n# Before committing, use ty, mypy and pyrefly to check just the new files, then run:\nmake ruff bandit interrogate pylint verify\n```\n\n## Authentication & RBAC Overview\n\nContextForge implements a **two-layer security model**:\n\n1. **Token Scoping (Layer 1)**: Controls what resources a user CAN SEE (data filtering)\n2. **RBAC (Layer 2)**: Controls what actions a user CAN DO (permission checks)\n\n### Token Scoping Quick Reference\n\n**API / legacy tokens** — JWT `teams` claim is the sole authority (`normalize_token_teams()`):\n\n| JWT `teams` State | `is_admin: true` | `is_admin: false` |\n|-------------------|------------------|-------------------|\n| Key MISSING | PUBLIC-ONLY `[]` | PUBLIC-ONLY `[]` |\n| `teams: null` | ADMIN BYPASS | PUBLIC-ONLY `[]` |\n| `teams: []` | PUBLIC-ONLY `[]` | PUBLIC-ONLY `[]` |\n| `teams: [\"t1\"]` | Team + Public | Team + Public |\n\n**Session tokens** (`token_use: \"session\"`) — DB is the authority; JWT `teams` only narrows (`resolve_session_teams()`):\n\n| JWT `teams` State | DB admin? | Result | Access Level |\n|-------------------|-----------|--------|--------------|\n| any | yes | `None` | ADMIN BYPASS (DB authority) |\n| Missing/null/`[]` | no | DB teams | Full DB membership |\n| `[\"t1\"]` | no | intersection | Narrowed to overlap |\n| `[\"revoked\"]` | no | `[]` | Public-only (fail-closed) |\n\n**Key behaviors:**\n\n- **API/legacy tokens**: Missing `teams` key = public-only access (secure default). Admin bypass requires BOTH `teams: null` AND `is_admin: true`. `normalize_token_teams()` in `mcpgateway/auth.py` is the single source of truth.\n- **Token creation defaults to the creator's personal team**: `POST /tokens` (and admin-delegated creation) with no `team_id` no longer mints a `teams: null` (public-only) token for non-admin callers. `TokenCatalogService.get_default_team_id()` resolves the caller's (or, for admin delegation, the target's) personal team and `routers/tokens.py::create_token` uses it when the caller belongs to that team; it falls back to single-team inheritance, then to `team_id=None` plus a `TokenCreateResponse.warnings` entry only when neither applies (no personal team and multiple/zero teams). Un-narrowed admins are exempt — `team_id=None` for them is a deliberate global-scope token. The permission-containment check (`_get_caller_permissions`) still uses the *requested* `team_id`, not the defaulted one, so this does not raise the ceiling on what `scope.permissions` a caller may request. Separately, `derive_token_team_id()` in `mcpgateway/auth.py` — the function that turns a single-team token's claim into `request.state.team_id` for RBAC/rate-limit/routing context — excludes personal teams, since a personal team auto-grants `team_admin`; a personal-team-scoped token instead falls through to `check_any_team`, matching how `PermissionService._get_user_roles` already treats personal teams.\n- **Session tokens**: Admin bypass is determined by the DB `is_admin` flag, not the JWT `teams` claim. Non-admin sessions can be narrowed via JWT `teams`. `resolve_session_teams()` in `mcpgateway/auth.py` is the single policy point.\n- **Layer 1 only**: Token scoping controls visibility (what you can see). RBAC (Layer 2) is evaluated independently — session-token narrowing does not restrict which team roles are checked for permissions.\n- **External IdP tokens**: identities provisioned from trusted external SSO providers (see `SSO_API_TOKEN_AUTH_ENABLED`) are dispatched through the session-token table above (`resolve_session_teams()`), not the API/legacy table — `is_admin`/`teams` come from the persisted local user record, never from the external token's claims.\n\n### Implementation Helpers\n\nLayer-1 derivation is centralized in `mcpgateway/auth_context.py`. Route handlers must call these rather than re-deriving the rule inline:\n\n- `get_scoped_resource_access_context(request, user)` → `(user_email, token_teams)` — the visibility scope to pass into service fetch/list/read calls. Admin bypass is signalled by `token_teams=None` while `user_email` is **kept**, so the service can still owner-match the admin's own private rows. Public-only is `(email, [])`.\n- `get_request_identity(request, user)` → `(user_email, is_admin)` — the requester's own identity, for audit capture and header masking. Use when you need the identity independent of the visibility scope.\n- `get_rpc_filter_context(request, user)` → `(user_email, token_teams, is_admin)` — the raw pre-rule triple. Reserved for the few sites that genuinely need `is_admin` or the un-normalized teams (auth-context forwarding, run-ownership capture, tool-execution authorization); these carry a `Layer-1 exception` comment naming the reason.\n\nThe derived triple is memoized on `request.state` per principal, so calling the scope and identity helpers together costs one derivation rather than two.\n\n### Security Invariants (Required)\n\n- Treat `public` as platform-public scope, not internet-anonymous scope.\n- Explicit exception: when `MCP_REQUIRE_AUTH` is `false`, unauthenticated `/mcp` requests are allowed with public-only visibility — **unless** the target virtual server has `oauth_enabled` set to `True`, in which case unauthenticated requests are rejected with 401 regardless of the global setting.\n- Keep the two-layer model on every path:\n  - Layer 1: token scoping controls what a caller can see.\n  - Layer 2: RBAC controls what a caller can do.\n- Do not re-implement token team interpretation logic; use `normalize_token_teams()` for API/legacy tokens and `resolve_session_teams()` for session tokens (both in `mcpgateway/auth.py`).\n- Do not re-implement Layer 1 token scope semantics; use `token_scope_grants()` in `mcpgateway/middleware/rbac.py`, the single policy point shared by the RBAC decorators and `TokenScopingMiddleware`. Empty token scopes mean \"inherit from RBAC at runtime\" (what `TokenCatalogService._generate_token()` emits for tokens created without an explicit scope) and must never be treated as deny-all; `*` grants everything and `<category>.*` grants that category.\n- Do not accept inbound client auth tokens via URL query parameters.\n- Legacy `INSECURE_ALLOW_QUERYPARAM_AUTH` is interop-only for outbound peer auth and must remain opt-in and host-restricted.\n- High-risk transports must be feature-flagged and disabled by default.\n- Transport/session endpoints must authenticate before session establishment (or message forwarding) and enforce RBAC before processing actions.\n- Token-scoped route authorization must be default-deny for unmapped protected paths.\n- Never trust client-provided ownership fields (`owner_email`, `team_id`, session owner); derive authorization from authenticated identity and server-side state.\n- Security-sensitive changes must include deny-path regression tests (unauthenticated, wrong team, insufficient permissions, feature disabled).\n- A `token-exchange` OAuth grant (RFC 8693 / On-Behalf-Of) exists for gateways; with it, the user's inbound JWT is exchanged with a trusted Authorization Server and **never forwarded upstream** — only the exchanged token is sent to the downstream MCP server.\n- `token_url` on a `token-exchange` gateway is an SSRF / egress boundary: the user's ContextForge JWT is POSTed to it as the `subject_token`, it is validated at config time, and creating or modifying token-exchange gateways is a privileged action.\n- Audit token-exchange operations via the structured logging sink with a `correlation_id`; never log raw subject tokens or exchanged tokens.\n\n#### UAID Cross-Gateway Security\n\n- UAID cross-gateway routing requires explicit domain allowlist (fail-closed default)\n- Empty `UAID_ALLOWED_DOMAINS` blocks all cross-gateway routing unless `UAID_ALLOW_ALL_DOMAINS=true`\n- Cross-gateway calls forward bearer tokens for RBAC enforcement on remote gateways\n- Both gateways must trust the same JWT issuer (shared `JWT_SECRET_KEY` or federated SSO)\n- `UAID_ALLOW_ALL_DOMAINS=true` is unsafe for production (bypasses allowlist validation)\n- Startup validation logs ERROR if A2A enabled but allowlist not configured\n- Remote gateway 401/403 responses raise `A2AAgentError` with troubleshooting guidance\n\n### Built-in Roles\n\n| Role | Scope | Key Permissions |\n|------|-------|-----------------|\n| `platform_admin` | global | `*` (all) |\n| `team_admin` | team | teams.*, tools.read/execute, resources.read |\n| `developer` | team | CRUD on gateways, servers, tools, resources, prompts, and A2A agents; execution/invocation; token self-service; dashboard access; team read/join |\n| `viewer` | team | tools.read/execute, resources.read |\n\nThe `developer` role includes gateway registration, update, and deletion.\nSee the [complete built-in permission table](docs/docs/manage/rbac.md#built-in-rbac-roles) before assigning this role.\n\n### Documentation\n\n- **Full RBAC guide**: `docs/docs/manage/rbac.md`\n- **Multi-tenancy architecture**: `docs/docs/architecture/multitenancy.md`\n- **OAuth token delegation**: `docs/docs/architecture/oauth-design.md`\n### User Identity Extraction\n\n**Canonical Email Precedence**: All user-email extraction helpers use a consistent **email-over-sub** precedence order to ensure forensic accuracy across visibility checks and audit logs:\n\n- When a user dict contains both `email` and `sub` keys, `email` takes precedence\n- The canonical implementation is `get_user_email()` in `mcpgateway/auth_context.py`\n- All other helpers (including `admin.get_user_email`) re-export or delegate to this canonical implementation\n- This ensures that the identity used for RBAC evaluation matches the identity logged in audit trails\n\n**Rationale**: The `email` field is the human-readable identifier used throughout AGENTS.md and user-facing documentation. Consistent precedence prevents forensic confusion where an incident review pivots on a logged email that differs from the principal actually evaluated by RBAC.\n\n**Two accessors**: `get_user_email()` in `mcpgateway/auth_context.py` is the e-mail-attribute accessor. `get_user_id()` in the same module is the identity accessor. Phase 1 populates both with the same value. Audit (`AuditTrail.user_id`) and observability (`ObservabilityTrace.user_email`) identity fields hold the canonical user_id from `get_user_id()`; the column names stay unchanged for compatibility. Routers compute `get_user_id(user)` and pass it to services as the `user_id` keyword; services keep `user_email` for ownership checks.\n\n\n## Separate-Session Writes\n\nObservability and audit writes use sessions separate from the request transaction. Never pass `db=db` to `AuditTrailService.log_action()` or `log_audit()`. Load the `observability-audit-sessions` skill before you change either write path.\n\n\n## Key Environment Variables\n\nDefaults come from `mcpgateway/config.py`. `.env.example` intentionally overrides a few for local/dev convenience.\n\n```bash\n# Core\nHOST=127.0.0.1                  # .env.example uses 0.0.0.0\nPORT=4444\nDATABASE_URL=sqlite:///./mcp.db   # or postgresql+psycopg://...\nREDIS_URL=redis://localhost:6379/0\nRELOAD=false\n\n# Auth\nJWT_SECRET_KEY=your-secret-key\nBASIC_AUTH_USER=admin\nBASIC_AUTH_PASSWORD=changeme        # pragma: allowlist secret\nAUTH_REQUIRED=true                   # Set false ONLY for development\nAUTH_ENCRYPTION_SECRET=             # REQUIRED: generate with: make init-secrets-patch-env  # pragma: allowlist secret\n\n# Features\nMCPGATEWAY_UI_ENABLED=false          # .env.example sets true\nMCPGATEWAY_ADMIN_API_ENABLED=false   # .env.example sets true\nMCPGATEWAY_A2A_ENABLED=true\nPLUGINS_ENABLED=false\nPLUGINS_CONFIG_FILE=plugins/config.yaml\n\n# Logging\nLOG_LEVEL=ERROR\nLOG_TO_FILE=false\nSTRUCTURED_LOGGING_DATABASE_ENABLED=false\n\n# Observability\nOBSERVABILITY_ENABLED=false\nOTEL_EXPORTER_OTLP_ENDPOINT=          # .env.example sets http://localhost:4317\n```\n\n## Technology Stack\n\n- **FastAPI** with **Pydantic** validation and **SQLAlchemy** ORM (Starlette ASGI)\n- **HTMX + Alpine.js** for admin UI\n- **SQLite** default, **PostgreSQL** support, **Redis** for caching/federation\n- **Alembic** for migrations\n\n### Synchronous SQLAlchemy in Async Handlers (Design Decision)\n\nThe codebase deliberately uses synchronous SQLAlchemy sessions (e.g. `SessionLocal().begin()`) inside async FastAPI handlers and ASGI middleware, relying on FastAPI's event-loop management to handle blocking operations. Do not flag this as a bug or attempt to convert individual call sites to async without a broader migration plan. This design decision may be revisited in the future alongside a potential migration to async database drivers.\n\n## Coding Standards\n\n- **Python >= 3.12** with type hints; strict mypy\n- **Formatting**: Ruff (line length 200)\n- **Linting**: Ruff (`E3`,`E4`,`E7`,`E9`,`F`,`D1`), Pylint per `pyproject.toml`\n- **Naming**: `snake_case` functions/modules, `PascalCase` classes, `UPPER_CASE` constants\n- **Imports**: Group per isort sections (stdlib, third-party, first-party `mcpgateway`, local)\n- **Readability**: *Clean Code* — implement per [`docs/docs/development/coding-standards.md`](docs/docs/development/coding-standards.md)\n\n### Code Comments\n\n- Comments are a last resort. Make the code self-documenting first: extract a function or rename a thing until the comment becomes redundant.\n- A comment earns its place only when code cannot express a durable constraint: security rationale, upstream workaround, dependency-pin reason.\n- Comments never carry transient implementation process or decisions. Decisions go to an ADR (`docs/docs/architecture/adr/`), process to the commit body, tasks to an issue.\n- Docstrings are API contract, not comments: Ruff `D1`/`D417` and interrogate enforce presence and parameter coverage; summary line first, then the contract.\n- Fix a comment in the same change that fixes its code.\n\n## Agent Prose (ASD-STE100)\n\nAll agent-authored prose follows the ASD-STE100 writing rules. The controlled dictionary is not enforced; domain, protocol, and code terms count as technical names.\n\n- One instruction per sentence: 20 words or fewer for instructions, 25 for description.\n- Active voice, present tense. Imperative for instructions: \"Add a test\", never \"a test should be added\".\n- One word, one meaning: a token stays a token, never also a credential or a key.\n- Positive constructions. No hedging (\"worth considering\"), no idioms.\n- Technical names verbatim: `normalize_token_teams()`, `DB_POOL_SIZE`, `QueuePool limit exceeded`.\n\nCovers code comments and docstrings, commit bodies, PR descriptions, review findings, issue bodies and comments, CHANGELOG entries. Exempt: identifiers, log and error strings, `docs/` prose, ephemeral working notes.\n\nApply the `asd-ste100` skill (STE-flavored mode) to rewrite prose. Full rules and worked examples per artifact: [`docs/docs/development/agent-prose.md`](docs/docs/development/agent-prose.md).\n\n## Commit & PR Standards\n\n- **Sign commits**: `git commit -s` (DCO requirement). Preserve sign-off on rewritten commits (rebases, conflict resolutions).\n- **Conventional Commits**: `feat:`, `fix:`, `docs:`, `refactor:`, `chore:`. Subjects keep that format; bodies follow *Agent Prose*.\n- **Link issues**: `Closes #123`\n- Include tests for behavior changes.\n- Every PR whose behavior can be exercised through a live gateway must include a full black-box test against a running gateway; see [`tests/live_gateway/`](tests/live_gateway/) for examples.\n- Green lint and tests before PR.\n- Don't push until asked.\n\n### Pre-Merge Validation Gate\n\nRun from the worktree root, in order. Each command must pass, or the PR must document a waiver, before the PR is ready:\n\n| Command | Validates |\n|---------|-----------|\n| `make ruff interrogate pylint` | Lint, docstring coverage, deeper static analysis |\n| `make test` | Full rstest suite |\n| `make coverage diff-cover` | Coverage of changed lines vs. base |\n| `make docker-nuke docker-prod testing-up` | Rebuilds and launches the production-style gateway stack |\n| `make test-e2e` | MCP protocol E2E and RBAC against the live gateway |\n| `make detect-secrets-scan` | No new secrets in files changed vs `main`; exits non-zero on live/unaudited findings (jq merge preserves out-of-scope audited entries; remediate with `make detect-secrets-audit`) |\n\nDistinct from the per-edit hygiene chain in *Essential Commands → Code Quality* (`make autoflake isort black pre-commit`, then `make ruff bandit interrogate pylint verify`): hygiene runs continuously; this gate runs once before declaring a PR ready.\n\n## Maintenance Guardrails (Brief)\n\n- Source of truth precedence: `mcpgateway/config.py` and runtime code > `Makefile` targets/dependencies > `.env.example` (dev overrides) > docs/comments.\n- When auditing repo state, prioritize active source directories and ignore transient/workbench content unless explicitly requested: `todo/`, `tmp/`, `artifacts/`, `logs/`, `coverage/`.\n- Avoid brittle numeric claims (counts of services/routers/middleware/plugins) unless you are actively validating and updating them in the same change; otherwise describe with approximate wording.\n\n## Important Constraints\n\n- Never mention AI assistants in PRs/diffs\n- Do not include test plans or effort estimates in PRs\n- Never create files unless absolutely necessary; prefer editing existing files\n- Never proactively create documentation files unless explicitly requested\n- Never commit secrets; use `.env` for configuration\n\n## Key Files\n\n- `README.md` - Canonical project overview and quick start\n- `mcpgateway/main.py` - Application entry point\n- `mcpgateway/config.py` - Environment configuration\n- `mcpgateway/db.py` - SQLAlchemy ORM models and session management\n- `mcpgateway/schemas.py` - Pydantic schemas\n- `pyproject.toml` - Project configuration\n- `Makefile` - Build automation\n- `.env.example` - Environment template\n\n## CLI Tools Available\n\n- `gh` for GitHub operations\n- `make` for build/test automation\n- `uv` for virtual environment management and for `uv tool run` linter invocations\n- Dev-group tools installed in the venv: `rstest`, `pytest`, `mypy`, `bandit`, `pre-commit`, etc. (see `pyproject.toml` `[dependency-groups]`)\n- Formatters and linters (`ruff`, `vulture`, `interrogate`, `radon`, `yamllint`, `tomlcheck`) are pinned in the `Makefile` and invoked on demand via `uv tool run`; always prefer the Makefile targets (`make black`, `make ruff`, etc.) over calling the underlying tools directly\n","CLAUDE.md":"# AGENTS.md\n\nGuidelines for AI coding assistants working with this repository.\n\nFor domain-specific guidance, see subdirectory AGENTS.md files:\n- `tests/AGENTS.md` - Testing conventions and workflows\n- `plugins/AGENTS.md` - Plugin framework and development\n- `charts/AGENTS.md` - Helm chart operations\n- `docs/AGENTS.md` - Documentation authoring\n\n**Note:** The `llms/` directory holds LLM guidance of two kinds: end-user runtime guidance for using ContextForge, and work prompts for agents changing this repository. Where `llms/` guidance overlaps an `AGENTS.md` file, the `AGENTS.md` file is authoritative.\n\n## Skills\n\nTask-specific guidance lives in `.agents/skills/`. `.bob/skills` links to that directory. Load the matching skill before you start the task:\n\n- `asd-ste100`: write or rewrite prose for humans (review findings, issue and PR text, commit bodies) in ASD-STE100 style.\n- `pr-review`: write review findings, assign severity, judge blocking criteria.\n- `alembic-migrations`: add or change a database model, column, or migration.\n- `observability-audit-sessions`: change trace, span, metric, or audit writes.\n- `secret-detection`: resolve a `detect-secrets` finding or `.secrets.baseline` change.\n- `github-issues`: create, label, or triage an issue.\n- `contextforge-web-ui`: run or configure the `web_ui` compose service.\n- `mcp-helpers`: generate a JWT or register an MCP server locally.\n\n## Project Overview\n\nContextForge is an open source registry and proxy that federates MCP, A2A, and REST/gRPC APIs with centralized governance, discovery, and observability. It federates tools, agents, and APIs, optimizes agent and tool calling, and supports plugins, auth/RBAC, rate-limiting, virtual servers, multi-transport protocols, and an optional Admin UI.\n\n## Project Structure\n\n```\nmcpgateway/                 # Core FastAPI application\n├── main.py                 # Application entry point\n├── config.py               # Environment configuration\n├── db.py                   # SQLAlchemy ORM models and session management\n├── schemas.py              # Pydantic validation schemas\n├── services/               # Business logic layer (50+ services)\n├── routers/                # HTTP endpoint definitions (19 routers)\n├── middleware/             # Cross-cutting concerns (16 middleware)\n├── transports/             # Protocol implementations (SSE, WebSocket, stdio, streamable HTTP)\n├── plugins/                # Plugin integration (uses cpex external package)\n└── alembic/                # Database migrations\n\ntests/                      # Test suite (see tests/AGENTS.md)\nplugins/                    # Plugin implementations (see plugins/AGENTS.md)\ncharts/                     # Helm charts (see charts/AGENTS.md)\ndocs/                       # Architecture and usage documentation (see docs/AGENTS.md)\na2a-agents/                 # A2A agent implementations (used for testing/examples)\nllms/                       # End-user LLM guidance (not for code agents)\n```\n\n## Essential Commands\n\n### Setup\n```bash\ncp .env.example .env && make install-dev check-env    # Complete setup\nmake venv                          # Create virtual environment with uv\nmake install-dev                   # Install with dev dependencies (includes build-ui)\nmake check-env                     # Verify .env against .env.example\nmake build-ui                      # Rebuild Admin UI JS bundle (requires npm)\n```\n\n### Development\n```bash\nmake dev                          # Dev server on :8000 with autoreload\nmake serve                        # Production gunicorn on :4444\nmake serve-ssl                    # HTTPS on :4444 (creates certs if needed)\n```\n\n### Code Quality\n```bash\n# After writing code\nmake pre-commit\n\n# Before committing, use ty, mypy and pyrefly to check just the new files, then run:\nmake ruff bandit interrogate pylint verify\n```\n\n## Authentication & RBAC Overview\n\nContextForge implements a **two-layer security model**:\n\n1. **Token Scoping (Layer 1)**: Controls what resources a user CAN SEE (data filtering)\n2. **RBAC (Layer 2)**: Controls what actions a user CAN DO (permission checks)\n\n### Token Scoping Quick Reference\n\n**API / legacy tokens** — JWT `teams` claim is the sole authority (`normalize_token_teams()`):\n\n| JWT `teams` State | `is_admin: true` | `is_admin: false` |\n|-------------------|------------------|-------------------|\n| Key MISSING | PUBLIC-ONLY `[]` | PUBLIC-ONLY `[]` |\n| `teams: null` | ADMIN BYPASS | PUBLIC-ONLY `[]` |\n| `teams: []` | PUBLIC-ONLY `[]` | PUBLIC-ONLY `[]` |\n| `teams: [\"t1\"]` | Team + Public | Team + Public |\n\n**Session tokens** (`token_use: \"session\"`) — DB is the authority; JWT `teams` only narrows (`resolve_session_teams()`):\n\n| JWT `teams` State | DB admin? | Result | Access Level |\n|-------------------|-----------|--------|--------------|\n| any | yes | `None` | ADMIN BYPASS (DB authority) |\n| Missing/null/`[]` | no | DB teams | Full DB membership |\n| `[\"t1\"]` | no | intersection | Narrowed to overlap |\n| `[\"revoked\"]` | no | `[]` | Public-only (fail-closed) |\n\n**Key behaviors:**\n\n- **API/legacy tokens**: Missing `teams` key = public-only access (secure default). Admin bypass requires BOTH `teams: null` AND `is_admin: true`. `normalize_token_teams()` in `mcpgateway/auth.py` is the single source of truth.\n- **Token creation defaults to the creator's personal team**: `POST /tokens` (and admin-delegated creation) with no `team_id` no longer mints a `teams: null` (public-only) token for non-admin callers. `TokenCatalogService.get_default_team_id()` resolves the caller's (or, for admin delegation, the target's) personal team and `routers/tokens.py::create_token` uses it when the caller belongs to that team; it falls back to single-team inheritance, then to `team_id=None` plus a `TokenCreateResponse.warnings` entry only when neither applies (no personal team and multiple/zero teams). Un-narrowed admins are exempt — `team_id=None` for them is a deliberate global-scope token. The permission-containment check (`_get_caller_permissions`) still uses the *requested* `team_id`, not the defaulted one, so this does not raise the ceiling on what `scope.permissions` a caller may request. Separately, `derive_token_team_id()` in `mcpgateway/auth.py` — the function that turns a single-team token's claim into `request.state.team_id` for RBAC/rate-limit/routing context — excludes personal teams, since a personal team auto-grants `team_admin`; a personal-team-scoped token instead falls through to `check_any_team`, matching how `PermissionService._get_user_roles` already treats personal teams.\n- **Session tokens**: Admin bypass is determined by the DB `is_admin` flag, not the JWT `teams` claim. Non-admin sessions can be narrowed via JWT `teams`. `resolve_session_teams()` in `mcpgateway/auth.py` is the single policy point.\n- **Layer 1 only**: Token scoping controls visibility (what you can see). RBAC (Layer 2) is evaluated independently — session-token narrowing does not restrict which team roles are checked for permissions.\n- **External IdP tokens**: identities provisioned from trusted external SSO providers (see `SSO_API_TOKEN_AUTH_ENABLED`) are dispatched through the session-token table above (`resolve_session_teams()`), not the API/legacy table — `is_admin`/`teams` come from the persisted local user record, never from the external token's claims.\n\n### Implementation Helpers\n\nLayer-1 derivation is centralized in `mcpgateway/auth_context.py`. Route handlers must call these rather than re-deriving the rule inline:\n\n- `get_scoped_resource_access_context(request, user)` → `(user_email, token_teams)` — the visibility scope to pass into service fetch/list/read calls. Admin bypass is signalled by `token_teams=None` while `user_email` is **kept**, so the service can still owner-match the admin's own private rows. Public-only is `(email, [])`.\n- `get_request_identity(request, user)` → `(user_email, is_admin)` — the requester's own identity, for audit capture and header masking. Use when you need the identity independent of the visibility scope.\n- `get_rpc_filter_context(request, user)` → `(user_email, token_teams, is_admin)` — the raw pre-rule triple. Reserved for the few sites that genuinely need `is_admin` or the un-normalized teams (auth-context forwarding, run-ownership capture, tool-execution authorization); these carry a `Layer-1 exception` comment naming the reason.\n\nThe derived triple is memoized on `request.state` per principal, so calling the scope and identity helpers together costs one derivation rather than two.\n\n### Security Invariants (Required)\n\n- Treat `public` as platform-public scope, not internet-anonymous scope.\n- Explicit exception: when `MCP_REQUIRE_AUTH` is `false`, unauthenticated `/mcp` requests are allowed with public-only visibility — **unless** the target virtual server has `oauth_enabled` set to `True`, in which case unauthenticated requests are rejected with 401 regardless of the global setting.\n- Keep the two-layer model on every path:\n  - Layer 1: token scoping controls what a caller can see.\n  - Layer 2: RBAC controls what a caller can do.\n- Do not re-implement token team interpretation logic; use `normalize_token_teams()` for API/legacy tokens and `resolve_session_teams()` for session tokens (both in `mcpgateway/auth.py`).\n- Do not re-implement Layer 1 token scope semantics; use `token_scope_grants()` in `mcpgateway/middleware/rbac.py`, the single policy point shared by the RBAC decorators and `TokenScopingMiddleware`. Empty token scopes mean \"inherit from RBAC at runtime\" (what `TokenCatalogService._generate_token()` emits for tokens created without an explicit scope) and must never be treated as deny-all; `*` grants everything and `<category>.*` grants that category.\n- Do not accept inbound client auth tokens via URL query parameters.\n- Legacy `INSECURE_ALLOW_QUERYPARAM_AUTH` is interop-only for outbound peer auth and must remain opt-in and host-restricted.\n- High-risk transports must be feature-flagged and disabled by default.\n- Transport/session endpoints must authenticate before session establishment (or message forwarding) and enforce RBAC before processing actions.\n- Token-scoped route authorization must be default-deny for unmapped protected paths.\n- Never trust client-provided ownership fields (`owner_email`, `team_id`, session owner); derive authorization from authenticated identity and server-side state.\n- Security-sensitive changes must include deny-path regression tests (unauthenticated, wrong team, insufficient permissions, feature disabled).\n- A `token-exchange` OAuth grant (RFC 8693 / On-Behalf-Of) exists for gateways; with it, the user's inbound JWT is exchanged with a trusted Authorization Server and **never forwarded upstream** — only the exchanged token is sent to the downstream MCP server.\n- `token_url` on a `token-exchange` gateway is an SSRF / egress boundary: the user's ContextForge JWT is POSTed to it as the `subject_token`, it is validated at config time, and creating or modifying token-exchange gateways is a privileged action.\n- Audit token-exchange operations via the structured logging sink with a `correlation_id`; never log raw subject tokens or exchanged tokens.\n\n#### UAID Cross-Gateway Security\n\n- UAID cross-gateway routing requires explicit domain allowlist (fail-closed default)\n- Empty `UAID_ALLOWED_DOMAINS` blocks all cross-gateway routing unless `UAID_ALLOW_ALL_DOMAINS=true`\n- Cross-gateway calls forward bearer tokens for RBAC enforcement on remote gateways\n- Both gateways must trust the same JWT issuer (shared `JWT_SECRET_KEY` or federated SSO)\n- `UAID_ALLOW_ALL_DOMAINS=true` is unsafe for production (bypasses allowlist validation)\n- Startup validation logs ERROR if A2A enabled but allowlist not configured\n- Remote gateway 401/403 responses raise `A2AAgentError` with troubleshooting guidance\n\n### Built-in Roles\n\n| Role | Scope | Key Permissions |\n|------|-------|-----------------|\n| `platform_admin` | global | `*` (all) |\n| `team_admin` | team | teams.*, tools.read/execute, resources.read |\n| `developer` | team | CRUD on gateways, servers, tools, resources, prompts, and A2A agents; execution/invocation; token self-service; dashboard access; team read/join |\n| `viewer` | team | tools.read/execute, resources.read |\n\nThe `developer` role includes gateway registration, update, and deletion.\nSee the [complete built-in permission table](docs/docs/manage/rbac.md#built-in-rbac-roles) before assigning this role.\n\n### Documentation\n\n- **Full RBAC guide**: `docs/docs/manage/rbac.md`\n- **Multi-tenancy architecture**: `docs/docs/architecture/multitenancy.md`\n- **OAuth token delegation**: `docs/docs/architecture/oauth-design.md`\n### User Identity Extraction\n\n**Canonical Email Precedence**: All user-email extraction helpers use a consistent **email-over-sub** precedence order to ensure forensic accuracy across visibility checks and audit logs:\n\n- When a user dict contains both `email` and `sub` keys, `email` takes precedence\n- The canonical implementation is `get_user_email()` in `mcpgateway/auth_context.py`\n- All other helpers (including `admin.get_user_email`) re-export or delegate to this canonical implementation\n- This ensures that the identity used for RBAC evaluation matches the identity logged in audit trails\n\n**Rationale**: The `email` field is the human-readable identifier used throughout AGENTS.md and user-facing documentation. Consistent precedence prevents forensic confusion where an incident review pivots on a logged email that differs from the principal actually evaluated by RBAC.\n\n**Two accessors**: `get_user_email()` in `mcpgateway/auth_context.py` is the e-mail-attribute accessor. `get_user_id()` in the same module is the identity accessor. Phase 1 populates both with the same value. Audit (`AuditTrail.user_id`) and observability (`ObservabilityTrace.user_email`) identity fields hold the canonical user_id from `get_user_id()`; the column names stay unchanged for compatibility. Routers compute `get_user_id(user)` and pass it to services as the `user_id` keyword; services keep `user_email` for ownership checks.\n\n\n## Separate-Session Writes\n\nObservability and audit writes use sessions separate from the request transaction. Never pass `db=db` to `AuditTrailService.log_action()` or `log_audit()`. Load the `observability-audit-sessions` skill before you change either write path.\n\n\n## Key Environment Variables\n\nDefaults come from `mcpgateway/config.py`. `.env.example` intentionally overrides a few for local/dev convenience.\n\n```bash\n# Core\nHOST=127.0.0.1                  # .env.example uses 0.0.0.0\nPORT=4444\nDATABASE_URL=sqlite:///./mcp.db   # or postgresql+psycopg://...\nREDIS_URL=redis://localhost:6379/0\nRELOAD=false\n\n# Auth\nJWT_SECRET_KEY=your-secret-key\nBASIC_AUTH_USER=admin\nBASIC_AUTH_PASSWORD=changeme        # pragma: allowlist secret\nAUTH_REQUIRED=true                   # Set false ONLY for development\nAUTH_ENCRYPTION_SECRET=             # REQUIRED: generate with: make init-secrets-patch-env  # pragma: allowlist secret\n\n# Features\nMCPGATEWAY_UI_ENABLED=false          # .env.example sets true\nMCPGATEWAY_ADMIN_API_ENABLED=false   # .env.example sets true\nMCPGATEWAY_A2A_ENABLED=true\nPLUGINS_ENABLED=false\nPLUGINS_CONFIG_FILE=plugins/config.yaml\n\n# Logging\nLOG_LEVEL=ERROR\nLOG_TO_FILE=false\nSTRUCTURED_LOGGING_DATABASE_ENABLED=false\n\n# Observability\nOBSERVABILITY_ENABLED=false\nOTEL_EXPORTER_OTLP_ENDPOINT=          # .env.example sets http://localhost:4317\n```\n\n## Technology Stack\n\n- **FastAPI** with **Pydantic** validation and **SQLAlchemy** ORM (Starlette ASGI)\n- **HTMX + Alpine.js** for admin UI\n- **SQLite** default, **PostgreSQL** support, **Redis** for caching/federation\n- **Alembic** for migrations\n\n### Synchronous SQLAlchemy in Async Handlers (Design Decision)\n\nThe codebase deliberately uses synchronous SQLAlchemy sessions (e.g. `SessionLocal().begin()`) inside async FastAPI handlers and ASGI middleware, relying on FastAPI's event-loop management to handle blocking operations. Do not flag this as a bug or attempt to convert individual call sites to async without a broader migration plan. This design decision may be revisited in the future alongside a potential migration to async database drivers.\n\n## Coding Standards\n\n- **Python >= 3.12** with type hints; strict mypy\n- **Formatting**: Ruff (line length 200)\n- **Linting**: Ruff (`E3`,`E4`,`E7`,`E9`,`F`,`D1`), Pylint per `pyproject.toml`\n- **Naming**: `snake_case` functions/modules, `PascalCase` classes, `UPPER_CASE` constants\n- **Imports**: Group per isort sections (stdlib, third-party, first-party `mcpgateway`, local)\n- **Readability**: *Clean Code* — implement per [`docs/docs/development/coding-standards.md`](docs/docs/development/coding-standards.md)\n\n### Code Comments\n\n- Comments are a last resort. Make the code self-documenting first: extract a function or rename a thing until the comment becomes redundant.\n- A comment earns its place only when code cannot express a durable constraint: security rationale, upstream workaround, dependency-pin reason.\n- Comments never carry transient implementation process or decisions. Decisions go to an ADR (`docs/docs/architecture/adr/`), process to the commit body, tasks to an issue.\n- Docstrings are API contract, not comments: Ruff `D1`/`D417` and interrogate enforce presence and parameter coverage; summary line first, then the contract.\n- Fix a comment in the same change that fixes its code.\n\n## Agent Prose (ASD-STE100)\n\nAll agent-authored prose follows the ASD-STE100 writing rules. The controlled dictionary is not enforced; domain, protocol, and code terms count as technical names.\n\n- One instruction per sentence: 20 words or fewer for instructions, 25 for description.\n- Active voice, present tense. Imperative for instructions: \"Add a test\", never \"a test should be added\".\n- One word, one meaning: a token stays a token, never also a credential or a key.\n- Positive constructions. No hedging (\"worth considering\"), no idioms.\n- Technical names verbatim: `normalize_token_teams()`, `DB_POOL_SIZE`, `QueuePool limit exceeded`.\n\nCovers code comments and docstrings, commit bodies, PR descriptions, review findings, issue bodies and comments, CHANGELOG entries. Exempt: identifiers, log and error strings, `docs/` prose, ephemeral working notes.\n\nApply the `asd-ste100` skill (STE-flavored mode) to rewrite prose. Full rules and worked examples per artifact: [`docs/docs/development/agent-prose.md`](docs/docs/development/agent-prose.md).\n\n## Commit & PR Standards\n\n- **Sign commits**: `git commit -s` (DCO requirement). Preserve sign-off on rewritten commits (rebases, conflict resolutions).\n- **Conventional Commits**: `feat:`, `fix:`, `docs:`, `refactor:`, `chore:`. Subjects keep that format; bodies follow *Agent Prose*.\n- **Link issues**: `Closes #123`\n- Include tests for behavior changes.\n- Every PR whose behavior can be exercised through a live gateway must include a full black-box test against a running gateway; see [`tests/live_gateway/`](tests/live_gateway/) for examples.\n- Green lint and tests before PR.\n- Don't push until asked.\n\n### Pre-Merge Validation Gate\n\nRun from the worktree root, in order. Each command must pass, or the PR must document a waiver, before the PR is ready:\n\n| Command | Validates |\n|---------|-----------|\n| `make ruff interrogate pylint` | Lint, docstring coverage, deeper static analysis |\n| `make test` | Full rstest suite |\n| `make coverage diff-cover` | Coverage of changed lines vs. base |\n| `make docker-nuke docker-prod testing-up` | Rebuilds and launches the production-style gateway stack |\n| `make test-e2e` | MCP protocol E2E and RBAC against the live gateway |\n| `make detect-secrets-scan` | No new secrets in files changed vs `main`; exits non-zero on live/unaudited findings (jq merge preserves out-of-scope audited entries; remediate with `make detect-secrets-audit`) |\n\nDistinct from the per-edit hygiene chain in *Essential Commands → Code Quality* (`make autoflake isort black pre-commit`, then `make ruff bandit interrogate pylint verify`): hygiene runs continuously; this gate runs once before declaring a PR ready.\n\n## Maintenance Guardrails (Brief)\n\n- Source of truth precedence: `mcpgateway/config.py` and runtime code > `Makefile` targets/dependencies > `.env.example` (dev overrides) > docs/comments.\n- When auditing repo state, prioritize active source directories and ignore transient/workbench content unless explicitly requested: `todo/`, `tmp/`, `artifacts/`, `logs/`, `coverage/`.\n- Avoid brittle numeric claims (counts of services/routers/middleware/plugins) unless you are actively validating and updating them in the same change; otherwise describe with approximate wording.\n\n## Important Constraints\n\n- Never mention AI assistants in PRs/diffs\n- Do not include test plans or effort estimates in PRs\n- Never create files unless absolutely necessary; prefer editing existing files\n- Never proactively create documentation files unless explicitly requested\n- Never commit secrets; use `.env` for configuration\n\n## Key Files\n\n- `README.md` - Canonical project overview and quick start\n- `mcpgateway/main.py` - Application entry point\n- `mcpgateway/config.py` - Environment configuration\n- `mcpgateway/db.py` - SQLAlchemy ORM models and session management\n- `mcpgateway/schemas.py` - Pydantic schemas\n- `pyproject.toml` - Project configuration\n- `Makefile` - Build automation\n- `.env.example` - Environment template\n\n## CLI Tools Available\n\n- `gh` for GitHub operations\n- `make` for build/test automation\n- `uv` for virtual environment management and for `uv tool run` linter invocations\n- Dev-group tools installed in the venv: `rstest`, `pytest`, `mypy`, `bandit`, `pre-commit`, etc. (see `pyproject.toml` `[dependency-groups]`)\n- Formatters and linters (`ruff`, `vulture`, `interrogate`, `radon`, `yamllint`, `tomlcheck`) are pinned in the `Makefile` and invoked on demand via `uv tool run`; always prefer the Makefile targets (`make black`, `make ruff`, etc.) over calling the underlying tools directly\n","charts/AGENTS.md":"# charts/AGENTS.md\n\nHelm chart development guidance for AI coding assistants.\n\n## Chart Structure\n\n```\ncharts/\n├── README.md\n└── mcp-stack/              # Main Helm chart\n    ├── Chart.yaml          # Chart metadata\n    ├── values.yaml         # Default configuration\n    ├── values.schema.json  # JSON Schema for validation\n    ├── Makefile            # Developer automation\n    ├── README.md           # Generated chart docs\n    ├── CHANGELOG.md        # Version history\n    ├── CONTRIBUTING.md     # Contribution guidelines\n    └── templates/          # Kubernetes manifests\n        ├── _helpers.tpl    # Template helpers\n        ├── deployment-*.yaml\n        ├── service-*.yaml\n        ├── configmap-*.yaml\n        ├── secret-*.yaml\n        ├── ingress.yaml\n        ├── hpa-*.yaml\n        └── NOTES.txt\n```\n\n## Prerequisites\n\n- `helm` (3.14+)\n- `kubectl` with configured context\n- Optional: `helm-docs`, `yamllint`, `kubeval`, `ajv-cli`, `cosign`\n\n## Quick Commands\n\nFrom `charts/mcp-stack/`:\n\n```bash\n# Info\nmake info                     # Print chart/app versions\nmake version                  # Print chart version\n\n# Lint & Validate\nmake lint                     # helm lint --strict\nmake lint-yaml                # yamllint (if available)\nmake lint-values              # Validate values against schema\nmake validate-all             # Run all lint steps\n\n# Template & Dry-run\nmake test-template            # Render templates → tmp/rendered.yaml\nmake test-template-values     # Render with my-values.yaml\nmake test-dry-run             # helm install --dry-run --debug\nmake test-kubeval             # Validate manifests with kubeval\nmake test-all                 # Template + dry-run + kubeval\n\n# Install/Upgrade\nmake install                  # Install with defaults\nmake install-dev              # Install with my-values.yaml\nmake upgrade                  # Upgrade release\nmake upgrade-dev              # Upgrade with my-values.yaml\nmake uninstall                # Uninstall and wait\n\n# Debug\nmake status                   # Release status\nmake history                  # Release history\nmake rollback                 # Rollback release\nmake debug                    # Context, releases, resources\nmake describe                 # Describe chart resources\nmake logs                     # Show pod logs\nmake logs-follow              # Follow pod logs\nmake port-forward             # Forward localhost:4444 → service:80\nmake shell                    # Interactive shell into gateway\n\n# Package & Registry\nmake package                  # Package to dist/\nmake push                     # Push to OCI registry\nmake sign                     # Sign with cosign\n\n# Docs & Schema\nmake docs                     # Generate README via helm-docs\nmake schema                   # Generate values.schema.json\nmake schema-validate          # Validate values against schema\n```\n\n## Common Workflows\n\n### Local Validation\n```bash\ncd charts/mcp-stack\nmake validate-all\nmake test-template\nmake test-dry-run  # Optional\n```\n\n### First-time Install\n```bash\nNAMESPACE=mcp-dev RELEASE_NAME=mcp-dev make install\n# Or with custom values:\n# Create my-values.yaml, then:\nmake install-dev\n```\n\n### Upgrade\n```bash\nmake upgrade-dev  # Uses my-values.yaml if present\n```\n\n### Debug\n```bash\nmake status\nmake logs\nmake port-forward  # Then browse http://localhost:4444\n```\n\n## Values Override Example\n\nCreate `my-values.yaml`:\n\n```yaml\nmcpContextForge:\n  image:\n    tag: \"latest\"\n    pullPolicy: IfNotPresent\n  ingress:\n    enabled: true\n    className: nginx\n    host: gateway.local\n  config:\n    DEV_MODE: \"true\"\n    RELOAD: \"false\"\n  secret:\n    BASIC_AUTH_USER: admin\n    BASIC_AUTH_PASSWORD: changeme\n    JWT_SECRET_KEY: my-test-key-but-now-longer-than-32-bytes\n\npostgres:\n  enabled: true\n  credentials:\n    user: admin\n    password: test123\n  persistence:\n    storageClassName: standard\n    size: 5Gi\n\nredis:\n  enabled: true\n```\n\n## Security\n\n- Use `mcpContextForge.secret.*` for auth settings in dev\n- Prefer external `Secret` objects for production\n- Configure TLS at ingress or service mesh\n- Never commit secrets to values files\n\n## CI/CD\n\n```bash\n# In pipelines\nmake lint\nmake validate-all\n\n# On tagged releases\nmake package push\n\n# Optional signing\nmake sign\n```\n\n## Troubleshooting\n\n```bash\n# Inspect applied values\nhelm get values <release> -n <namespace>\n\n# Inspect manifests\nhelm get manifest <release> -n <namespace>\n\n# Check events\nkubectl describe pod <pod> -n <namespace>\nkubectl describe ingress <ingress> -n <namespace>\n```\n\n## Key Files\n\n- `Chart.yaml` - Chart metadata, versions, dependencies\n- `values.yaml` - All configurable values with defaults\n- `values.schema.json` - JSON Schema for values validation\n- `templates/_helpers.tpl` - Reusable template functions\n- `Makefile` - Developer automation commands\n","docs/AGENTS.md":"# docs/AGENTS.md\n\nDocumentation authoring guidance for AI coding assistants.\n\nThis directory contains the project's architecture and usage documentation built with MkDocs.\n\n## Directory Structure\n\n```\ndocs/\n├── mkdocs.yml          # MkDocs configuration\n├── base.yml            # Base configuration\n├── Makefile            # Doc build automation\n├── requirements.txt    # Doc dependencies\n├── theme/              # Custom theme assets\n└── docs/               # Documentation content\n    ├── index.md        # Home page\n    ├── architecture/   # System design, ADRs, plugins, security\n    ├── deployment/     # Docker, K8s, cloud guides\n    ├── development/    # Developer guides, building, testing\n    ├── manage/         # Operations, API usage, logging, scaling\n    ├── using/          # User guides (agents, clients, servers)\n    ├── testing/        # Test guides, performance, fuzzing\n    ├── best-practices/ # Best practice guides\n    ├── tutorials/      # Step-by-step tutorials\n    ├── overview/       # Project overview\n    ├── faq/            # FAQ\n    └── coverage/       # Generated coverage reports\n```\n\n## Quick Commands\n\nFrom `docs/` directory:\n\n```bash\n# Install dependencies\npip install -r requirements.txt\n\n# Build docs\nmake build                # Build static site\n\n# Serve locally\nmake serve                # Serve at http://localhost:8003 (configured in docs/base.yml)\n\n# Clean\nmake clean                # Remove build artifacts\n```\n\nFrom repository root:\n\n```bash\nmake docs                 # Build documentation\n# For local serving, run from docs/:\n#   cd docs && make serve\n```\n\n## Writing Documentation\n\n### File Location\n\nPlace documentation in the appropriate subdirectory:\n\n| Topic | Directory |\n|-------|-----------|\n| System design, ADRs | `docs/architecture/` |\n| Deployment guides | `docs/deployment/` |\n| Developer guides | `docs/development/` |\n| Operations guides | `docs/manage/` |\n| User guides | `docs/using/` |\n| Test documentation | `docs/testing/` |\n\n### Markdown Conventions\n\n- Use ATX-style headers (`#`, `##`, `###`)\n- Include front matter for navigation title if needed\n- Use fenced code blocks with language hints\n- Keep lines under 120 characters when practical\n\n### Code Examples\n\nUse fenced code blocks with language identifier:\n\n```python\nfrom mcpgateway import Gateway\n\ngateway = Gateway()\ngateway.start()\n```\n\n### Admonitions\n\n```markdown\n!!! note\n    This is a note.\n\n!!! warning\n    This is a warning.\n\n!!! tip\n    This is a tip.\n```\n\n### Internal Links\n\n```markdown\nSee [Configuration Reference](manage/configuration.md) for details.\nSee [Architecture Overview](architecture/index.md).\n```\n\n## Architecture Decision Records (ADRs)\n\nADRs live in `docs/architecture/adr/` and follow the [adr.github.io](https://adr.github.io/) format (`# ADR-NNN: Title`, Status/Date/Deciders front material, then Context / Decision / Consequences). Each ADR captures a decision as it stood at a point in time — treat them as a historical record, not living documentation.\n\n### Authoring a New ADR\n\n1. Create `docs/architecture/adr/NNN-short-title.md` with the next sequential number (check `adr/index.md` for the current maximum).\n2. Add a row to the table in `docs/architecture/adr/index.md` (chronological order, per the footer note there).\n3. Add a nav entry in `docs/docs/architecture/adr/.pages` (see *Navigation* below).\n4. Statuses in use: `Draft`, `Proposed`, `Accepted`, `Implemented`, `Deprecated`, `Superseded`.\n\n### Immutability of Accepted ADRs\n\nAn **Accepted** (or Implemented) ADR is frozen. Do not rewrite its Context, Decision, or Consequences to reflect later changes — doing so erases the record of why the decision was made. The only permitted edits to an accepted ADR are:\n\n- **Front material updates** — most commonly the Status line (e.g. `Accepted` → `Superseded by ADR-NNN`).\n- **Footnotes or pointer notes** — a short note (typically a `!!! warning` admonition at the top, as in ADR-038) recording where the ADR has been referenced, altered, or superseded. Keep these additive; never edit the original body text.\n\n### Changing or Reversing a Decision\n\nWhen a decision recorded in an ADR no longer holds:\n\n1. **Write a new ADR** capturing the new decision, its context, and why the old one no longer applies. Reference the superseded ADR by number.\n2. **Update the old ADR's status** to `Superseded by ADR-NNN` and add a pointer note at the top directing readers to the new ADR.\n3. **Update the status in `adr/index.md`** for both records.\n\nNever silently modify or delete an ADR whose decision has been abandoned — the trail from old decision to new is part of the project's institutional memory.\n\n## Navigation\n\nNavigation is configured in `mkdocs.yml`. When adding new pages:\n\n1. Create the markdown file in the appropriate directory\n2. Add an entry to the `nav` section in `mkdocs.yml`\n\n## API Documentation\n\nAPI documentation is auto-generated from OpenAPI schema:\n- Swagger UI: `http://localhost:4444/docs`\n- OpenAPI JSON: `http://localhost:4444/openapi.json`\n\n## Coverage Reports\n\nCoverage reports are generated to `docs/docs/coverage/`:\n\n```bash\nmake htmlcov              # Generate HTML coverage report\n```\n\n## Key Documentation Pages\n\n- `docs/development/developer-onboarding.md` - New contributor guide\n- `docs/development/building.md` - Build system and testing\n- `docs/manage/api-usage.md` - REST API guide\n- `docs/architecture/index.md` - Architecture overview\n- `docs/architecture/adr/` - Architecture Decision Records\n\n## Important Notes\n\n- Do not create documentation files unless explicitly requested\n- Prefer editing existing files over creating new ones\n- Keep documentation up-to-date with code changes\n- Use relative links for internal references\n",".agents/skills/asd-ste100/SKILL.md":"---\nname: asd-ste100\ndescription: \"Use when English text must be parsed without a human to resolve ambiguity — tool descriptions, error messages, inter-agent instructions, system prompts, status reports — and misreading has a real cost, or when text reads as dense, hedged, or easy to misparse. Triggers: disambiguate, STE100 rewrite, apply Simplified Technical English, plain-language rewrite, controlled-language rewrite, rewrite so an agent cannot misread this. Not for creative or marketing copy.\"\nversion: 0.4.0\n---\n\n# Simplified Technical English (ASD-STE100)\n\nASD-STE100 is a controlled-language standard built by the aerospace and defense industry (ASD, the AeroSpace and Defense Industries Association of Europe) to stop maintenance technicians from misreading English instructions. The standard removes the two biggest sources of misreading: words with more than one meaning, and sentences with more than one possible structure.\n\nThis skill borrows that same discipline for a different reader: an **AI agent or a downstream system** that has to parse an English string — an error message, a tool description, an inter-agent instruction, a status report — without a human in the loop to resolve ambiguity. If a maintenance technician can misread \"close the valve\" as an adjective (\"the valve that is near\") instead of a command, so can a language model.\n\n## When to Use This Skill\n\n- An agent's output (explanation, instruction, log message, tool description) reads as dense, jargon-heavy, or ambiguous.\n- Text will be consumed by another agent, a translation pipeline, or a non-native English reader, and misparsing has a real cost.\n- You are writing a prompt, system message, or tool description and want to remove ambiguity before a model ever sees it.\n- You want a **before/after** comparison showing exactly which rule was violated and how the rewrite fixes it. Ask for it — the default output is the rewritten text alone (see Output Format).\n\nThis skill is not for creative or marketing copy — STE is deliberately flat and literal. Do not apply it to text where voice, nuance, or persuasion is the point.\n\n## Two Modes\n\nPick a mode before rewriting. If the user does not say which, infer it from the text type. Keep the choice internal unless the user asks for the rule table (see Output Format).\n\n**Strict** — procedures, error messages, tool and function descriptions, inter-agent instructions, safety text. Anywhere a wrong reading has a cost. Apply every rule below, including the hard length caps and one-word-one-meaning discipline.\n\n**STE-flavored** — READMEs, PR descriptions, changelogs, explanatory prose. Apply the structural rules in full and treat the lexical rules as advisory (see Core Rewrite Rules for that split). In practice that means keeping the sentence length caps, active voice, simple tenses, no phrasal verbs, no semicolons, no nominalization and no marketing adjectives, while dropping the one-word-one-meaning lockdown: prose needs some range, and a strict rewrite of prose reads as a personality transplant rather than a clarification.\n\nThe two modes and the structural/lexical split are the same distinction seen from two directions. The split says which rules this skill can verify without ASD's dictionary. The modes say which of them to enforce for a given kind of text.\n\n## Source and Scope\n\nThis skill encodes the **rule categories** of ASD-STE100 Issue 9 (Jan 2025): 53 writing rules across 9 sections covering word choice, grammar, sentence structure, and style, backed by a dictionary of ~900 approved words (one meaning, one part of speech each) and ~1,200 words to avoid with suggested replacements. See `references/writing-rules.md` for the full rule summary and citations.\n\nIt does **not** reproduce ASD's ~900-word approved dictionary verbatim. ASD-STE100 is free to obtain, but it is not free to redistribute: Issue 9, page 2 states that \"no reproduction or publication of it, in whole or in part, shall be made without the written authority of an officer of ASD,\" and grants free reproduction rights only to eight listed categories (ASD/AIA/AIAC member associations and their member companies and customers, member-state defence ministries, A4A, airworthiness authorities, and universities and research institutes for educational purposes). This project is in none of them, so the dictionary stays out of this repo.\n\nInstead, this skill applies the *underlying principle* (pick the plainest, most common word available and use it the same way every time) rather than checking against a fixed word list. When exact ASD-approved wording matters (e.g. actual aircraft maintenance documentation), get the standard and check word-by-word against the real dictionary. Request it from the [official downloads page](https://www.asd-ste100.org/STE_downloads.html) — note that this is a request form that emails you a link, not a direct download.\n\n## Core Rewrite Rules\n\nSTE's rules divide into two kinds, and this skill can only fully deliver one of them. **Structural rules** are self-contained: they describe sentence shape, and you can apply them from the description alone. **Lexical rules** are defined entirely by the official ~900-word dictionary, which this skill deliberately does not reproduce (see Source and Scope). Without that dictionary, the lexical rules degrade from a checkable standard into a preference for plain words.\n\nApply the structural rules with confidence. Apply the lexical rules as a direction of travel, and say so in your output rather than implying dictionary compliance you cannot verify.\n\n### Structural rules — apply these\n\n| Rule | Do | Don't |\n|---|---|---|\n| Active voice | \"The agent deletes the file.\" | \"The file is deleted (by the agent).\" — unless the actor is genuinely unknown or irrelevant |\n| No phrasal verbs (Rule 9.3) | \"Remove the panel.\" / \"Start the job.\" | \"Take off the panel.\" / \"Spin up the job.\" — a two-word verb has meanings the parts do not predict |\n| One instruction per sentence | \"Open the file. Read line 3.\" | \"Open the file and read line 3, then check if it matches.\" |\n| Sentence length | ≤20 words for instructions/procedures, ≤25 words for descriptions | Long compound/subordinate-clause sentences |\n| No semicolons (Rule 8.1) | Split into separate sentences | Any semicolon at all — STE bans the mark outright, not only as a clause join. (Rule 8.1 permits every other standard punctuation mark. The em dash is *not* banned by STE, though it often signals a sentence that should be split.) |\n| Noun clusters | ≤3 words stacked as a noun phrase (\"fuel pump valve\") | 4+ word noun stacks (\"high pressure fuel pump inlet valve assembly\") |\n| No ellipsis | Keep the subject, verb, and article explicit even if it reads longer | Drop words to save space (\"Files not backed up will be lost\" → ambiguous which files) |\n| Keep modality | \"The request **may have** failed.\" stays \"may have\" | Promote a hedge to a fact (\"The request failed.\") or invent a certainty the source did not state |\n| Paragraph limits | One topic per paragraph, ≤6 sentences | Multi-topic paragraphs |\n| Lists for sequences | Use a numbered or bulleted list for 3+ steps or conditions | Bury a sequence inside one prose sentence |\n\n### Lexical rules — direction of travel only\n\n| Rule | Do | Don't | Why it is weaker here |\n|---|---|---|---|\n| One word, one meaning | Pick one verb for one action and reuse it every time (e.g. always \"check\", never mix \"check\"/\"verify\"/\"confirm\" for the same action) | Rotate synonyms for the same idea across a document | Consistency within a document is checkable. Which word is the *approved* one is not, without the dictionary. |\n| One part of speech per word | \"Apply oil to the valve\" (oil = noun) | \"Oil the valve\" (oil = verb) | Whether \"oil\" is approved as a noun only is a dictionary fact. Prefer the noun form when both read equally well. Do not claim compliance. |\n| Verb, not noun (Rule 3.7) | \"Analyze the log.\" | \"Perform an analysis of the log.\" — a noun form of an action makes the sentence longer and hides who acts | Rule 3.7 says \"use an **approved** verb to describe an action.\" Preferring the verb form is safe to apply anywhere. Knowing which verb is the approved one needs the dictionary. |\n| Domain terms | Keep necessary technical nouns/verbs, but define them once if not common English (STE allows a project-specific glossary beyond its base dictionary) | Use jargon without ever defining it | The glossary allowance is real STE, but the base dictionary it extends is absent. |\n\n### Simple tenses — apply with one exception\n\nSTE permits infinitive, imperative, simple present, simple past, simple future, and past participle as adjective. It excludes present perfect and other compound forms: \"we received the report\", not \"we have received the report\".\n\nAircraft manuals never need present perfect, so the exclusion costs the standard nothing. Other text is not always so lucky. \"The job has completed\" (and its output is available now) and \"the job completed\" (at some past point) are different statements, and status text frequently needs the first. **Where the compound form carries information the simple form cannot — current relevance, or a hedge as in \"may have failed\" — keep it and flag the departure.** Elsewhere, follow the rule.\n\n## Scan Checklist\n\nThese six habits cover most of what makes machine-written English hard to parse. Each one is mechanical: you can point at the exact word or punctuation mark that breaks the rule, with no judgment call. Scan for all six before you rewrite anything.\n\n1. **Synonym rotation** — the same thing gets several names in one document (\"the user\", \"the customer\", \"the client\"). The reader cannot tell whether they are one thing or three. Fix: pick one name, use it every time.\n2. **Hedge stacking** — helper verbs and qualifiers pile up until the sentence asserts nothing (\"it is important to note that this may potentially help to improve\"). Fix: state the claim, or delete it.\n3. **Nominalization** — an action frozen into a noun (\"perform an analysis of\", \"provides assistance to\"). Fix: use the verb (\"analyze\", \"helps\").\n4. **Marketing adjectives** — words that claim quality instead of showing it: seamless, robust, powerful, cutting-edge, effortless, blazing-fast. Fix: delete, or replace with the measurement that earns the claim.\n5. **Run-on sentences** — several ideas joined by semicolons or em dashes. Fix: one idea per sentence.\n6. **Soft phrasal verbs** — spin up, reach out, dive into, kick off. Fix: use the single plain verb (start, contact, read, begin).\n\n## Process\n\n1. Pick the mode (Strict or STE-flavored). Say which only when the user asked for the rule table — see Output Format.\n2. Read the input text once for meaning — do not start rewriting before you understand what it must still say afterward.\n3. Walk it sentence by sentence. Flag every rule violation from the Core Rewrite Rules tables and every habit from the Scan Checklist. In STE-flavored mode, flag the lexical rules but do not enforce them. For a mechanical first pass over the structural rules, run `scripts/ste-lint.py` (stdin or file args, `--json` for structured output); it checks semicolons, sentence length, phrasal verbs, nominalization, marketing adjectives, synonym rotation, dangling-conjunction in supported list items, passive voice, and compound tenses, and by design never flags hedges or modality. `--baseline N` tolerates N hard violations (for adopting on existing docs); `--disable rule1,rule2` silences named rules.\n4. Rewrite each flagged sentence to fix the violation while preserving the original meaning exactly. If a rewrite would drop necessary precision (a safety condition, a scope qualifier, a number), keep the longer phrasing and flag it instead of silently simplifying.\n   - **Check modality before you commit to a rewrite.** Hedges (\"may\", \"could\", \"sometimes\", \"is likely to\") carry the author's confidence, and confidence is content. A shorter sentence that upgrades a hedge to a fact is not a simplification — it is a different claim. This is the most common way a well-intentioned STE rewrite goes wrong, because hedges are exactly what a length cap tempts you to cut.\n   - Never add a fact the source did not state. A rewrite that reads better because it supplies a cause, a frequency, or a mechanism has stopped being a rewrite.\n5. Output the rewritten text (see Output Format). Keep the mode choice and the rule analysis internal unless the user asked to see them.\n6. If the input already complies, say so — do not force changes onto compliant text.\n\n## Output Format\n\n**Default: the rewritten text, and nothing else.** Most callers want a result they can paste straight into a tool description, an error string, or a prompt. Print the simplified text on its own. Do not add a preamble about this skill, a mode announcement, a violation count, a summary of what changed, a rule table, or a closing offer to explain further.\n\nThe one permitted addition: if step 4 kept a longer phrasing on purpose, add a single line after the text, prefixed `Kept as-is:`, naming the phrase and the precision that would have been lost. Omit the line when there is nothing to report.\n\n**On request: the rule table.** When the user asks to see the reasoning — \"show the diff\", \"which rules did it break\", \"explain the changes\", \"before/after\" — output this table instead:\n\n```markdown\n| Rule violated | Original | Simplified |\n|---|---|---|\n| Present perfect tense | \"We have received your request.\" | \"We received your request.\" |\n| Noun cluster (4+ words) | \"the agent task queue priority handler\" | \"the handler that sets task-queue priority\" |\n\nMode: Strict. 7 violations found.\n```\n\nFollow the table with a one-line note on anything you deliberately did **not** simplify, and why (usually: simplifying would lose required precision).\n\n## Boundaries\n\n**Will:**\n- Rewrite ambiguous or dense English into short, single-meaning, active-voice sentences.\n- Return the rewritten text alone by default, and name the rules it applied when the user asks.\n- Preserve every fact, condition, and scope qualifier in the original.\n- Preserve the strength of every hedge, and add no claim the source did not make.\n- Suggest a one-line glossary entry for domain terms that must stay.\n\n**Will not:**\n- Reproduce ASD's official ~900-word dictionary as if it were memorized verbatim — always treat the official download as the source of truth for exact approved wording.\n- Simplify creative, marketing, or persuasive copy where voice and nuance are the point.\n- Silently drop a safety condition, exception, or scope qualifier to shorten a sentence — it will flag the trade-off instead.\n- Convert \"may have failed\" into \"failed\", or \"could be caused by X\" into \"X is the cause\" — losing a hedge changes the claim.\n- Guarantee an aerospace/defense-grade STE-compliant document. This is a general-purpose clarity tool inspired by STE, not a certified STE authoring tool.\n- Make weak content true or useful. STE fixes the *form* of a text, not its substance. A hollow paragraph rewritten under these rules becomes a clean, short, well-punctuated hollow paragraph. If the text has nothing to say, no rewrite fixes that — say so instead of polishing it.\n- Shorten past the point of clarity. Cutting words is not the goal. Removing ambiguity is the goal. Past a certain point compression starts costing the reader time rather than saving it, so stop when the sentence is unambiguous, not when it is shortest.\n\n## Additional Resources\n\n- **`references/writing-rules.md`** — fuller summary of the 9 rule sections and dictionary structure, with citations to the official standard and secondary sources.\n- **`examples/before-after.md`** — worked examples, including official STE examples and agent-output examples built for this skill.\n- **`scripts/ste-lint.py`** — deterministic, stdlib-only linter for the structural rules, including dangling-conjunction in supported list items, plus a synonym-rotation check (one word, one meaning) scoped per file. Exit 1 when hard violations exceed `--baseline` (default 0); advisory findings (passive voice, compound tenses) never fail the run; `--disable` silences named rules. It never flags hedges or modality: those are content, not style, and `--selftest` asserts that \"may have failed\" passes clean.\n",".agents/skills/secret-detection/SKILL.md":"---\nname: secret-detection\ndescription: Resolve a `detect-secrets` finding or a `.secrets.baseline` change. Use when `make detect-secrets-scan` fails, when you add a placeholder credential to docs or code, or when you resolve a baseline merge conflict.\n---\n\n# Secret Detection (detect-secrets)\n\nPrefer removing the trigger. Rewrite the line so it holds no credential-shaped value. Suppress only when the value must stay.\n\n## Suppress a False Positive\n\n- **Python files**: suppress inline with `# pragma: allowlist secret`. The finding then stays out of `.secrets.baseline` after `make detect-secrets-scan`.\n  - Exception: doctest strings where the comment breaks the assertion. Rely on `.secrets.baseline` and audit with `make detect-secrets-audit`.\n- **Makefile**: suppress audited false positives inline with `# pragma: allowlist secret`. In variable assignments, append the pragma directly after the value, with no space. Make keeps whitespace before a comment in the value.\n- **Markdown**: inside a fenced code block, append `# pragma: allowlist secret` to the line. In prose, append `<!-- pragma: allowlist secret -->`. Rewrite the line instead when the pragma would break a sample that readers copy verbatim.\n- **All other file types**: regenerate the baseline with `make detect-secrets-scan`.\n- **Merge conflicts**: resolve `.secrets.baseline` with the version from `main`.\n\n## Verify\n\nRun `make detect-secrets-scan`. It exits non-zero on live or unaudited findings. Remediate with `make detect-secrets-audit`. Done when the command exits zero and `.secrets.baseline` holds no entry for a line you suppressed or removed.\n",".agents/skills/github-issues/SKILL.md":"---\nname: github-issues\ndescription: Create, label, or triage a GitHub issue for this repository. Defines issue types, title style, label baseline, and lifecycle labels.\n---\n\n# GitHub Issues\n\n- Start from the matching template in `.github/ISSUE_TEMPLATE/`. The template sets the GitHub Issue Type (`Epic`, `Feature`, `Story`, `Task`, `Bug`). The template's sections define the body.\n- Hierarchy: an Epic holds Features, a Feature holds Stories, a Story holds Tasks. Link children with GitHub sub-issues on the parent. Bugs stand alone or nest anywhere in that chain.\n- Titles carry no type prefix. Write a plain imperative summary: `Gateway drops WebSocket sessions on restart`.\n- Labels carry no issue types. New issues start with `triage`. The Chore and Documentation templates also apply `chore` and `documentation`. Add 1-3 optional scope labels (`security`, `performance`, `ui`, `api`, `python`, `devops`, `a2a`, `mcp-protocol`).\n- The organization defines the issue type names. Template `type` values must match those names exactly.\n- Lifecycle labels: `awaiting-user` when blocked on reporter feedback, `blocked` for dependency blockers, `planned` when accepted but deferred, `fixed` only after the resolving change merges.\n- Bodies and comments follow *Agent Prose* in `AGENTS.md`. Before you post, rewrite them with the `asd-ste100` skill in STE-flavored mode. For public tone, see the `pr-review` skill, section *Tone*.\n","llms/api.md":"# llms - API Interface Contract & Specifications\n\nPath: `llms/api.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/llms/api.md)","plugins/AGENTS.md":"# plugins - AI Agent Protocol & Instructions\n\nPath: `plugins/AGENTS.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/AGENTS.md)","plugins/README.md":"# plugins Documentation\n\nPath: `plugins/README.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/README.md)","plugins/config-pii-guardian-policy.yaml":"# Plugins Skill\n\nPath: `plugins/config-pii-guardian-policy.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/config-pii-guardian-policy.yaml)","plugins/config.yaml":"# Plugins Skill\n\nPath: `plugins/config.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/config.yaml)","plugins/install.yaml":"# Plugins Skill\n\nPath: `plugins/install.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/install.yaml)","plugins/plugin_parity_config.yaml":"# Plugins Skill\n\nPath: `plugins/plugin_parity_config.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/plugin_parity_config.yaml)","plugins/primary_worker_multiinstance_config.yaml":"# Plugins Skill\n\nPath: `plugins/primary_worker_multiinstance_config.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/primary_worker_multiinstance_config.yaml)","tests/AGENTS.md":"# tests - AI Agent Protocol & Instructions\n\nPath: `tests/AGENTS.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/tests/AGENTS.md)",".github/tools/CLEANUP.md":"# Tools Skill\n\nPath: `.github/tools/CLEANUP.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/.github/tools/CLEANUP.md)","plugins/ai_artifacts_normalizer/README.md":"# ai_artifacts_normalizer Documentation\n\nPath: `plugins/ai_artifacts_normalizer/README.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/ai_artifacts_normalizer/README.md)","plugins/ai_artifacts_normalizer/plugin-manifest.yaml":"# Ai_artifacts_normalizer Skill\n\nPath: `plugins/ai_artifacts_normalizer/plugin-manifest.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/ai_artifacts_normalizer/plugin-manifest.yaml)","plugins/altk_json_processor/README.md":"# altk_json_processor Documentation\n\nPath: `plugins/altk_json_processor/README.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/altk_json_processor/README.md)","plugins/altk_json_processor/plugin-manifest.yaml":"# Altk_json_processor Skill\n\nPath: `plugins/altk_json_processor/plugin-manifest.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/altk_json_processor/plugin-manifest.yaml)","plugins/argument_normalizer/README.md":"# argument_normalizer Documentation\n\nPath: `plugins/argument_normalizer/README.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/argument_normalizer/README.md)","plugins/cached_tool_result/README.md":"# cached_tool_result Documentation\n\nPath: `plugins/cached_tool_result/README.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/cached_tool_result/README.md)","plugins/cached_tool_result/plugin-manifest.yaml":"# Cached_tool_result Skill\n\nPath: `plugins/cached_tool_result/plugin-manifest.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/cached_tool_result/plugin-manifest.yaml)","plugins/circuit_breaker/README.md":"# circuit_breaker Documentation\n\nPath: `plugins/circuit_breaker/README.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/circuit_breaker/README.md)","plugins/circuit_breaker/plugin-manifest.yaml":"# Circuit_breaker Skill\n\nPath: `plugins/circuit_breaker/plugin-manifest.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/circuit_breaker/plugin-manifest.yaml)","plugins/citation_validator/README.md":"# citation_validator Documentation\n\nPath: `plugins/citation_validator/README.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/citation_validator/README.md)","plugins/citation_validator/plugin-manifest.yaml":"# Citation_validator Skill\n\nPath: `plugins/citation_validator/plugin-manifest.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/citation_validator/plugin-manifest.yaml)","plugins/code_formatter/README.md":"# code_formatter Documentation\n\nPath: `plugins/code_formatter/README.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/code_formatter/README.md)","plugins/code_formatter/plugin-manifest.yaml":"# Code_formatter Skill\n\nPath: `plugins/code_formatter/plugin-manifest.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/code_formatter/plugin-manifest.yaml)","plugins/code_safety_linter/README.md":"# code_safety_linter Documentation\n\nPath: `plugins/code_safety_linter/README.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/code_safety_linter/README.md)","plugins/code_safety_linter/plugin-manifest.yaml":"# Code_safety_linter Skill\n\nPath: `plugins/code_safety_linter/plugin-manifest.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/code_safety_linter/plugin-manifest.yaml)","plugins/content_moderation/README.md":"# content_moderation Documentation\n\nPath: `plugins/content_moderation/README.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/content_moderation/README.md)","plugins/content_moderation/TESTING.md":"# Content_moderation Skill\n\nPath: `plugins/content_moderation/TESTING.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/content_moderation/TESTING.md)","plugins/content_moderation/plugin-manifest.yaml":"# Content_moderation Skill\n\nPath: `plugins/content_moderation/plugin-manifest.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/content_moderation/plugin-manifest.yaml)","plugins/deny_filter/README.md":"# deny_filter Documentation\n\nPath: `plugins/deny_filter/README.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/deny_filter/README.md)","plugins/deny_filter/plugin-manifest.yaml":"# Deny_filter Skill\n\nPath: `plugins/deny_filter/plugin-manifest.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/deny_filter/plugin-manifest.yaml)","plugins/external/config-stdio.yaml":"# External Skill\n\nPath: `plugins/external/config-stdio.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/external/config-stdio.yaml)","plugins/external/config.yaml":"# External Skill\n\nPath: `plugins/external/config.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/external/config.yaml)","plugins/file_type_allowlist/README.md":"# file_type_allowlist Documentation\n\nPath: `plugins/file_type_allowlist/README.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/file_type_allowlist/README.md)","plugins/file_type_allowlist/plugin-manifest.yaml":"# File_type_allowlist Skill\n\nPath: `plugins/file_type_allowlist/plugin-manifest.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/file_type_allowlist/plugin-manifest.yaml)","plugins/harmful_content_detector/README.md":"# harmful_content_detector Documentation\n\nPath: `plugins/harmful_content_detector/README.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/harmful_content_detector/README.md)","plugins/harmful_content_detector/plugin-manifest.yaml":"# Harmful_content_detector Skill\n\nPath: `plugins/harmful_content_detector/plugin-manifest.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/harmful_content_detector/plugin-manifest.yaml)","plugins/header_filter/README.md":"# header_filter Documentation\n\nPath: `plugins/header_filter/README.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/header_filter/README.md)","plugins/header_filter/config.yaml":"# Header_filter Skill\n\nPath: `plugins/header_filter/config.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/header_filter/config.yaml)","plugins/header_injector/README.md":"# header_injector Documentation\n\nPath: `plugins/header_injector/README.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/header_injector/README.md)","plugins/header_injector/plugin-manifest.yaml":"# Header_injector Skill\n\nPath: `plugins/header_injector/plugin-manifest.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/header_injector/plugin-manifest.yaml)","plugins/html_to_markdown/README.md":"# html_to_markdown Documentation\n\nPath: `plugins/html_to_markdown/README.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/html_to_markdown/README.md)","plugins/html_to_markdown/plugin-manifest.yaml":"# Html_to_markdown Skill\n\nPath: `plugins/html_to_markdown/plugin-manifest.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/html_to_markdown/plugin-manifest.yaml)","plugins/json_repair/README.md":"# json_repair Documentation\n\nPath: `plugins/json_repair/README.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/json_repair/README.md)","plugins/json_repair/plugin-manifest.yaml":"# Json_repair Skill\n\nPath: `plugins/json_repair/plugin-manifest.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/json_repair/plugin-manifest.yaml)","plugins/jwt_claims_extraction/README.md":"# jwt_claims_extraction Documentation\n\nPath: `plugins/jwt_claims_extraction/README.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/jwt_claims_extraction/README.md)","plugins/jwt_claims_extraction/plugin-manifest.yaml":"# Jwt_claims_extraction Skill\n\nPath: `plugins/jwt_claims_extraction/plugin-manifest.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/jwt_claims_extraction/plugin-manifest.yaml)","plugins/license_header_injector/README.md":"# license_header_injector Documentation\n\nPath: `plugins/license_header_injector/README.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/license_header_injector/README.md)","plugins/license_header_injector/plugin-manifest.yaml":"# License_header_injector Skill\n\nPath: `plugins/license_header_injector/plugin-manifest.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/license_header_injector/plugin-manifest.yaml)","plugins/markdown_cleaner/README.md":"# markdown_cleaner Documentation\n\nPath: `plugins/markdown_cleaner/README.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/markdown_cleaner/README.md)","plugins/markdown_cleaner/plugin-manifest.yaml":"# Markdown_cleaner Skill\n\nPath: `plugins/markdown_cleaner/plugin-manifest.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/markdown_cleaner/plugin-manifest.yaml)","plugins/privacy_notice_injector/README.md":"# privacy_notice_injector Documentation\n\nPath: `plugins/privacy_notice_injector/README.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/privacy_notice_injector/README.md)","plugins/privacy_notice_injector/plugin-manifest.yaml":"# Privacy_notice_injector Skill\n\nPath: `plugins/privacy_notice_injector/plugin-manifest.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/privacy_notice_injector/plugin-manifest.yaml)","plugins/regex_filter/README.md":"# regex_filter Documentation\n\nPath: `plugins/regex_filter/README.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/regex_filter/README.md)","plugins/regex_filter/plugin-manifest.yaml":"# Regex_filter Skill\n\nPath: `plugins/regex_filter/plugin-manifest.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/regex_filter/plugin-manifest.yaml)","plugins/resource_filter/README.md":"# resource_filter Documentation\n\nPath: `plugins/resource_filter/README.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/resource_filter/README.md)","plugins/resource_filter/plugin-manifest.yaml":"# Resource_filter Skill\n\nPath: `plugins/resource_filter/plugin-manifest.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/resource_filter/plugin-manifest.yaml)","plugins/response_cache_by_prompt/README.md":"# response_cache_by_prompt Documentation\n\nPath: `plugins/response_cache_by_prompt/README.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/response_cache_by_prompt/README.md)","plugins/response_cache_by_prompt/plugin-manifest.yaml":"# Response_cache_by_prompt Skill\n\nPath: `plugins/response_cache_by_prompt/plugin-manifest.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/response_cache_by_prompt/plugin-manifest.yaml)","plugins/robots_license_guard/README.md":"# robots_license_guard Documentation\n\nPath: `plugins/robots_license_guard/README.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/robots_license_guard/README.md)","plugins/robots_license_guard/plugin-manifest.yaml":"# Robots_license_guard Skill\n\nPath: `plugins/robots_license_guard/plugin-manifest.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/robots_license_guard/plugin-manifest.yaml)","plugins/safe_html_sanitizer/README.md":"# safe_html_sanitizer Documentation\n\nPath: `plugins/safe_html_sanitizer/README.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/safe_html_sanitizer/README.md)","plugins/safe_html_sanitizer/plugin-manifest.yaml":"# Safe_html_sanitizer Skill\n\nPath: `plugins/safe_html_sanitizer/plugin-manifest.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/safe_html_sanitizer/plugin-manifest.yaml)","plugins/schema_guard/README.md":"# schema_guard Documentation\n\nPath: `plugins/schema_guard/README.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/schema_guard/README.md)","plugins/schema_guard/plugin-manifest.yaml":"# Schema_guard Skill\n\nPath: `plugins/schema_guard/plugin-manifest.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/schema_guard/plugin-manifest.yaml)","plugins/span_attribute_customizer/README.md":"# span_attribute_customizer Documentation\n\nPath: `plugins/span_attribute_customizer/README.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/span_attribute_customizer/README.md)","plugins/sparc_static_validator/README.md":"# sparc_static_validator Documentation\n\nPath: `plugins/sparc_static_validator/README.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/sparc_static_validator/README.md)","plugins/sparc_static_validator/plugin-manifest.yaml":"# Sparc_static_validator Skill\n\nPath: `plugins/sparc_static_validator/plugin-manifest.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/sparc_static_validator/plugin-manifest.yaml)","plugins/summarizer/README.md":"# summarizer Documentation\n\nPath: `plugins/summarizer/README.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/summarizer/README.md)","plugins/summarizer/plugin-manifest.yaml":"# Summarizer Skill\n\nPath: `plugins/summarizer/plugin-manifest.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/summarizer/plugin-manifest.yaml)","plugins/timezone_translator/README.md":"# timezone_translator Documentation\n\nPath: `plugins/timezone_translator/README.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/timezone_translator/README.md)","plugins/timezone_translator/plugin-manifest.yaml":"# Timezone_translator Skill\n\nPath: `plugins/timezone_translator/plugin-manifest.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/timezone_translator/plugin-manifest.yaml)","plugins/tools_telemetry_exporter/README.md":"# tools_telemetry_exporter Documentation\n\nPath: `plugins/tools_telemetry_exporter/README.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/tools_telemetry_exporter/README.md)","plugins/tools_telemetry_exporter/plugin-manifest.yaml":"# Tools_telemetry_exporter Skill\n\nPath: `plugins/tools_telemetry_exporter/plugin-manifest.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/tools_telemetry_exporter/plugin-manifest.yaml)","plugins/toon_encoder/README.md":"# toon_encoder Documentation\n\nPath: `plugins/toon_encoder/README.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/toon_encoder/README.md)","plugins/toon_encoder/plugin-manifest.yaml":"# Toon_encoder Skill\n\nPath: `plugins/toon_encoder/plugin-manifest.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/toon_encoder/plugin-manifest.yaml)","plugins/unified_pdp/README.md":"# unified_pdp Documentation\n\nPath: `plugins/unified_pdp/README.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/unified_pdp/README.md)","plugins/unified_pdp/default_rules.json":"# Unified_pdp Skill\n\nPath: `plugins/unified_pdp/default_rules.json`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/unified_pdp/default_rules.json)","plugins/vault/README.md":"# vault Documentation\n\nPath: `plugins/vault/README.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/vault/README.md)","plugins/vault/config_vault_e2e.yaml":"# Vault Skill\n\nPath: `plugins/vault/config_vault_e2e.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/vault/config_vault_e2e.yaml)","plugins/vault/plugin-manifest.yaml":"# Vault Skill\n\nPath: `plugins/vault/plugin-manifest.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/vault/plugin-manifest.yaml)","plugins/virus_total_checker/README.md":"# virus_total_checker Documentation\n\nPath: `plugins/virus_total_checker/README.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/virus_total_checker/README.md)","plugins/virus_total_checker/plugin-manifest.yaml":"# Virus_total_checker Skill\n\nPath: `plugins/virus_total_checker/plugin-manifest.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/virus_total_checker/plugin-manifest.yaml)","plugins/watchdog/README.md":"# watchdog Documentation\n\nPath: `plugins/watchdog/README.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/watchdog/README.md)","plugins/watchdog/plugin-manifest.yaml":"# Watchdog Skill\n\nPath: `plugins/watchdog/plugin-manifest.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/watchdog/plugin-manifest.yaml)","plugins/webhook_notification/README.md":"# webhook_notification Documentation\n\nPath: `plugins/webhook_notification/README.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/webhook_notification/README.md)","plugins/webhook_notification/TESTING.md":"# Webhook_notification Skill\n\nPath: `plugins/webhook_notification/TESTING.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/webhook_notification/TESTING.md)","plugins/webhook_notification/plugin-manifest.yaml":"# Webhook_notification Skill\n\nPath: `plugins/webhook_notification/plugin-manifest.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/webhook_notification/plugin-manifest.yaml)","plugins/webhook_notification/test_config.yaml":"# Webhook_notification Skill\n\nPath: `plugins/webhook_notification/test_config.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/webhook_notification/test_config.yaml)",".agents/skills/asd-ste100/README.md":"# Asd-ste100 Skill\n\nPath: `.agents/skills/asd-ste100/README.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/.agents/skills/asd-ste100/README.md)","plugins/examples/custom_auth_example/README.md":"# custom_auth_example Documentation\n\nPath: `plugins/examples/custom_auth_example/README.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/examples/custom_auth_example/README.md)","plugins/examples/custom_auth_example/plugin-manifest.yaml":"# Custom_auth_example Skill\n\nPath: `plugins/examples/custom_auth_example/plugin-manifest.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/examples/custom_auth_example/plugin-manifest.yaml)","plugins/examples/simple_token_auth/README.md":"# simple_token_auth Documentation\n\nPath: `plugins/examples/simple_token_auth/README.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/examples/simple_token_auth/README.md)","plugins/examples/simple_token_auth/plugin-manifest.yaml":"# Simple_token_auth Skill\n\nPath: `plugins/examples/simple_token_auth/plugin-manifest.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/examples/simple_token_auth/plugin-manifest.yaml)","plugins/external/cedar/README.md":"# cedar Documentation\n\nPath: `plugins/external/cedar/README.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/external/cedar/README.md)","plugins/external/clamav_server/README.md":"# clamav_server Documentation\n\nPath: `plugins/external/clamav_server/README.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/external/clamav_server/README.md)","plugins/external/llmguard/README.md":"# llmguard Documentation\n\nPath: `plugins/external/llmguard/README.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/external/llmguard/README.md)","plugins/external/llmguard/docker-compose.yaml":"# Llmguard Skill\n\nPath: `plugins/external/llmguard/docker-compose.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/external/llmguard/docker-compose.yaml)","plugins/external/opa/README.md":"# opa Documentation\n\nPath: `plugins/external/opa/README.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/external/opa/README.md)","plugins/resources/server/config-http.yaml":"# Server Skill\n\nPath: `plugins/resources/server/config-http.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/resources/server/config-http.yaml)","plugins/resources/server/config-stdio.yaml":"# Server Skill\n\nPath: `plugins/resources/server/config-stdio.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/resources/server/config-stdio.yaml)","tests/performance/plugins/config.yaml":"# Plugins Skill\n\nPath: `tests/performance/plugins/config.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/tests/performance/plugins/config.yaml)",".agents/skills/asd-ste100/.claude-plugin/marketplace.json":"# Claude Plugin Marketplace Catalog\n\nPath: `.agents/skills/asd-ste100/.claude-plugin/marketplace.json`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/.agents/skills/asd-ste100/.claude-plugin/marketplace.json)",".agents/skills/asd-ste100/.claude-plugin/plugin.json":"# claude-plugin Plugin Manifest\n\nPath: `.agents/skills/asd-ste100/.claude-plugin/plugin.json`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/.agents/skills/asd-ste100/.claude-plugin/plugin.json)",".agents/skills/asd-ste100/examples/before-after.md":"# Examples Skill\n\nPath: `.agents/skills/asd-ste100/examples/before-after.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/.agents/skills/asd-ste100/examples/before-after.md)",".agents/skills/asd-ste100/examples/linter-edge-cases.md":"# Examples Skill\n\nPath: `.agents/skills/asd-ste100/examples/linter-edge-cases.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/.agents/skills/asd-ste100/examples/linter-edge-cases.md)",".agents/skills/asd-ste100/references/writing-rules.md":"# References Skill\n\nPath: `.agents/skills/asd-ste100/references/writing-rules.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/.agents/skills/asd-ste100/references/writing-rules.md)","docs/docs/architecture/plugins/gateway-hooks.md":"# Plugins Skill\n\nPath: `docs/docs/architecture/plugins/gateway-hooks.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/docs/docs/architecture/plugins/gateway-hooks.md)","docs/docs/architecture/plugins/security-hooks.md":"# Plugins Skill\n\nPath: `docs/docs/architecture/plugins/security-hooks.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/docs/docs/architecture/plugins/security-hooks.md)","docs/docs/using/agents/a2a.md":"# Subagent: a2a\n\nPath: `docs/docs/using/agents/a2a.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/docs/docs/using/agents/a2a.md)","docs/docs/using/agents/autogen.md":"# Subagent: autogen\n\nPath: `docs/docs/using/agents/autogen.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/docs/docs/using/agents/autogen.md)","docs/docs/using/agents/beeai.md":"# Subagent: beeai\n\nPath: `docs/docs/using/agents/beeai.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/docs/docs/using/agents/beeai.md)","docs/docs/using/agents/crewai.md":"# Subagent: crewai\n\nPath: `docs/docs/using/agents/crewai.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/docs/docs/using/agents/crewai.md)","docs/docs/using/agents/index.md":"# Subagent: index\n\nPath: `docs/docs/using/agents/index.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/docs/docs/using/agents/index.md)","docs/docs/using/agents/langchain.md":"# Subagent: langchain\n\nPath: `docs/docs/using/agents/langchain.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/docs/docs/using/agents/langchain.md)","docs/docs/using/agents/langgraph.md":"# Subagent: langgraph\n\nPath: `docs/docs/using/agents/langgraph.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/docs/docs/using/agents/langgraph.md)","docs/docs/using/agents/llamaindex.md":"# Subagent: llamaindex\n\nPath: `docs/docs/using/agents/llamaindex.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/docs/docs/using/agents/llamaindex.md)","docs/docs/using/agents/openai-sdk.md":"# Subagent: openai-sdk\n\nPath: `docs/docs/using/agents/openai-sdk.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/docs/docs/using/agents/openai-sdk.md)","docs/docs/using/agents/semantic-kernel.md":"# Subagent: semantic-kernel\n\nPath: `docs/docs/using/agents/semantic-kernel.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/docs/docs/using/agents/semantic-kernel.md)","docs/docs/using/plugins/grpc-transport.md":"# Plugins Skill\n\nPath: `docs/docs/using/plugins/grpc-transport.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/docs/docs/using/plugins/grpc-transport.md)","docs/docs/using/plugins/http-auth-hooks.md":"# Plugins Skill\n\nPath: `docs/docs/using/plugins/http-auth-hooks.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/docs/docs/using/plugins/http-auth-hooks.md)","docs/docs/using/plugins/index.md":"# Plugins Skill\n\nPath: `docs/docs/using/plugins/index.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/docs/docs/using/plugins/index.md)","docs/docs/using/plugins/lifecycle.md":"# Plugins Skill\n\nPath: `docs/docs/using/plugins/lifecycle.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/docs/docs/using/plugins/lifecycle.md)","docs/docs/using/plugins/migration-to-cpex.md":"# Plugins Skill\n\nPath: `docs/docs/using/plugins/migration-to-cpex.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/docs/docs/using/plugins/migration-to-cpex.md)","docs/docs/using/plugins/mtls.md":"# Plugins Skill\n\nPath: `docs/docs/using/plugins/mtls.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/docs/docs/using/plugins/mtls.md)","docs/docs/using/plugins/plugins.md":"# Plugins Skill\n\nPath: `docs/docs/using/plugins/plugins.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/docs/docs/using/plugins/plugins.md)","docs/docs/using/plugins/unix-socket-transport.md":"# Plugins Skill\n\nPath: `docs/docs/using/plugins/unix-socket-transport.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/docs/docs/using/plugins/unix-socket-transport.md)","plugins/external/cedar/cedarpolicyplugin/plugin-manifest.yaml":"# Cedarpolicyplugin Skill\n\nPath: `plugins/external/cedar/cedarpolicyplugin/plugin-manifest.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/external/cedar/cedarpolicyplugin/plugin-manifest.yaml)","plugins/external/cedar/examples/config-cedar.yaml":"# Examples Skill\n\nPath: `plugins/external/cedar/examples/config-cedar.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/external/cedar/examples/config-cedar.yaml)","plugins/external/cedar/examples/config-dsl.yaml":"# Examples Skill\n\nPath: `plugins/external/cedar/examples/config-dsl.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/external/cedar/examples/config-dsl.yaml)","plugins/external/llmguard/examples/config-all-in-one.yaml":"# Examples Skill\n\nPath: `plugins/external/llmguard/examples/config-all-in-one.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/external/llmguard/examples/config-all-in-one.yaml)","plugins/external/llmguard/examples/config-complex-policy.yaml":"# Examples Skill\n\nPath: `plugins/external/llmguard/examples/config-complex-policy.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/external/llmguard/examples/config-complex-policy.yaml)","plugins/external/llmguard/examples/config-input-output-filter.yaml":"# Examples Skill\n\nPath: `plugins/external/llmguard/examples/config-input-output-filter.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/external/llmguard/examples/config-input-output-filter.yaml)","plugins/external/llmguard/examples/config-input-output-sanitizer.yaml":"# Examples Skill\n\nPath: `plugins/external/llmguard/examples/config-input-output-sanitizer.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/external/llmguard/examples/config-input-output-sanitizer.yaml)","plugins/external/llmguard/examples/config-separate-plugins-filters-sanitizers.yaml":"# Examples Skill\n\nPath: `plugins/external/llmguard/examples/config-separate-plugins-filters-sanitizers.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/external/llmguard/examples/config-separate-plugins-filters-sanitizers.yaml)","plugins/external/llmguard/llmguardplugin/plugin-manifest.yaml":"# Llmguardplugin Skill\n\nPath: `plugins/external/llmguard/llmguardplugin/plugin-manifest.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/external/llmguard/llmguardplugin/plugin-manifest.yaml)","plugins/external/opa/opapluginfilter/plugin-manifest.yaml":"# Opapluginfilter Skill\n\nPath: `plugins/external/opa/opapluginfilter/plugin-manifest.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/external/opa/opapluginfilter/plugin-manifest.yaml)","tests/performance/payloads/tools/convert_time.json":"# Tools Skill\n\nPath: `tests/performance/payloads/tools/convert_time.json`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/tests/performance/payloads/tools/convert_time.json)","tests/performance/payloads/tools/get_system_time.json":"# Tools Skill\n\nPath: `tests/performance/payloads/tools/get_system_time.json`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/tests/performance/payloads/tools/get_system_time.json)","tests/performance/payloads/tools/list_tools.json":"# Tools Skill\n\nPath: `tests/performance/payloads/tools/list_tools.json`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/tests/performance/payloads/tools/list_tools.json)","plugins/external/cedar/resources/plugins/config.yaml":"# Plugins Skill\n\nPath: `plugins/external/cedar/resources/plugins/config.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/external/cedar/resources/plugins/config.yaml)","plugins/external/cedar/resources/runtime/config.yaml":"# Runtime Skill\n\nPath: `plugins/external/cedar/resources/runtime/config.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/external/cedar/resources/runtime/config.yaml)","plugins/external/clamav_server/resources/plugins/config.yaml":"# Plugins Skill\n\nPath: `plugins/external/clamav_server/resources/plugins/config.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/external/clamav_server/resources/plugins/config.yaml)","plugins/external/llmguard/resources/plugins/config.yaml":"# Plugins Skill\n\nPath: `plugins/external/llmguard/resources/plugins/config.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/external/llmguard/resources/plugins/config.yaml)","plugins/external/llmguard/resources/runtime/config.yaml":"# Runtime Skill\n\nPath: `plugins/external/llmguard/resources/runtime/config.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/external/llmguard/resources/runtime/config.yaml)","plugins/external/opa/resources/plugins/config.yaml":"# Plugins Skill\n\nPath: `plugins/external/opa/resources/plugins/config.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/external/opa/resources/plugins/config.yaml)","plugins/external/opa/resources/runtime/config.yaml":"# Runtime Skill\n\nPath: `plugins/external/opa/resources/runtime/config.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/external/opa/resources/runtime/config.yaml)","tests/unit/mcpgateway/plugins/fixtures/install.yaml":"# Fixtures Skill\n\nPath: `tests/unit/mcpgateway/plugins/fixtures/install.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/tests/unit/mcpgateway/plugins/fixtures/install.yaml)","tests/unit/mcpgateway/plugins/fixtures/configs/agent_context.yaml":"# Configs Skill\n\nPath: `tests/unit/mcpgateway/plugins/fixtures/configs/agent_context.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/tests/unit/mcpgateway/plugins/fixtures/configs/agent_context.yaml)","tests/unit/mcpgateway/plugins/fixtures/configs/agent_filter.yaml":"# Configs Skill\n\nPath: `tests/unit/mcpgateway/plugins/fixtures/configs/agent_filter.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/tests/unit/mcpgateway/plugins/fixtures/configs/agent_filter.yaml)","tests/unit/mcpgateway/plugins/fixtures/configs/agent_passthrough.yaml":"# Configs Skill\n\nPath: `tests/unit/mcpgateway/plugins/fixtures/configs/agent_passthrough.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/tests/unit/mcpgateway/plugins/fixtures/configs/agent_passthrough.yaml)","tests/unit/mcpgateway/plugins/fixtures/configs/context_multiplugins.yaml":"# Configs Skill\n\nPath: `tests/unit/mcpgateway/plugins/fixtures/configs/context_multiplugins.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/tests/unit/mcpgateway/plugins/fixtures/configs/context_multiplugins.yaml)","tests/unit/mcpgateway/plugins/fixtures/configs/context_plugin.yaml":"# Configs Skill\n\nPath: `tests/unit/mcpgateway/plugins/fixtures/configs/context_plugin.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/tests/unit/mcpgateway/plugins/fixtures/configs/context_plugin.yaml)","tests/unit/mcpgateway/plugins/fixtures/configs/context_stdio_external_plugins.yaml":"# Configs Skill\n\nPath: `tests/unit/mcpgateway/plugins/fixtures/configs/context_stdio_external_plugins.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/tests/unit/mcpgateway/plugins/fixtures/configs/context_stdio_external_plugins.yaml)","tests/unit/mcpgateway/plugins/fixtures/configs/cross_hook_context.yaml":"# Configs Skill\n\nPath: `tests/unit/mcpgateway/plugins/fixtures/configs/cross_hook_context.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/tests/unit/mcpgateway/plugins/fixtures/configs/cross_hook_context.yaml)","tests/unit/mcpgateway/plugins/fixtures/configs/error_plugin.yaml":"# Configs Skill\n\nPath: `tests/unit/mcpgateway/plugins/fixtures/configs/error_plugin.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/tests/unit/mcpgateway/plugins/fixtures/configs/error_plugin.yaml)","tests/unit/mcpgateway/plugins/fixtures/configs/error_plugin_raise_error_false.yaml":"# Configs Skill\n\nPath: `tests/unit/mcpgateway/plugins/fixtures/configs/error_plugin_raise_error_false.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/tests/unit/mcpgateway/plugins/fixtures/configs/error_plugin_raise_error_false.yaml)","tests/unit/mcpgateway/plugins/fixtures/configs/error_stdio_external_plugin.yaml":"# Configs Skill\n\nPath: `tests/unit/mcpgateway/plugins/fixtures/configs/error_stdio_external_plugin.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/tests/unit/mcpgateway/plugins/fixtures/configs/error_stdio_external_plugin.yaml)","tests/unit/mcpgateway/plugins/fixtures/configs/init_hooks_plugins_test.yaml":"# Configs Skill\n\nPath: `tests/unit/mcpgateway/plugins/fixtures/configs/init_hooks_plugins_test.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/tests/unit/mcpgateway/plugins/fixtures/configs/init_hooks_plugins_test.yaml)","tests/unit/mcpgateway/plugins/fixtures/configs/invalid_single_plugin.yaml":"# Configs Skill\n\nPath: `tests/unit/mcpgateway/plugins/fixtures/configs/invalid_single_plugin.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/tests/unit/mcpgateway/plugins/fixtures/configs/invalid_single_plugin.yaml)","tests/unit/mcpgateway/plugins/fixtures/configs/test_hook_patterns_config.yaml":"# Configs Skill\n\nPath: `tests/unit/mcpgateway/plugins/fixtures/configs/test_hook_patterns_config.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/tests/unit/mcpgateway/plugins/fixtures/configs/test_hook_patterns_config.yaml)","tests/unit/mcpgateway/plugins/fixtures/configs/tool_headers_metadata_plugin.yaml":"# Configs Skill\n\nPath: `tests/unit/mcpgateway/plugins/fixtures/configs/tool_headers_metadata_plugin.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/tests/unit/mcpgateway/plugins/fixtures/configs/tool_headers_metadata_plugin.yaml)","tests/unit/mcpgateway/plugins/fixtures/configs/tool_headers_plugin.yaml":"# Configs Skill\n\nPath: `tests/unit/mcpgateway/plugins/fixtures/configs/tool_headers_plugin.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/tests/unit/mcpgateway/plugins/fixtures/configs/tool_headers_plugin.yaml)","tests/unit/mcpgateway/plugins/fixtures/configs/valid_grpc_external_plugin.yaml":"# Configs Skill\n\nPath: `tests/unit/mcpgateway/plugins/fixtures/configs/valid_grpc_external_plugin.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/tests/unit/mcpgateway/plugins/fixtures/configs/valid_grpc_external_plugin.yaml)","tests/unit/mcpgateway/plugins/fixtures/configs/valid_grpc_external_plugin_manager.yaml":"# Configs Skill\n\nPath: `tests/unit/mcpgateway/plugins/fixtures/configs/valid_grpc_external_plugin_manager.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/tests/unit/mcpgateway/plugins/fixtures/configs/valid_grpc_external_plugin_manager.yaml)","tests/unit/mcpgateway/plugins/fixtures/configs/valid_multiple_plugins.yaml":"# Configs Skill\n\nPath: `tests/unit/mcpgateway/plugins/fixtures/configs/valid_multiple_plugins.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/tests/unit/mcpgateway/plugins/fixtures/configs/valid_multiple_plugins.yaml)","tests/unit/mcpgateway/plugins/fixtures/configs/valid_multiple_plugins_filter.yaml":"# Configs Skill\n\nPath: `tests/unit/mcpgateway/plugins/fixtures/configs/valid_multiple_plugins_filter.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/tests/unit/mcpgateway/plugins/fixtures/configs/valid_multiple_plugins_filter.yaml)","tests/unit/mcpgateway/plugins/fixtures/configs/valid_no_plugin.yaml":"# Configs Skill\n\nPath: `tests/unit/mcpgateway/plugins/fixtures/configs/valid_no_plugin.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/tests/unit/mcpgateway/plugins/fixtures/configs/valid_no_plugin.yaml)","tests/unit/mcpgateway/plugins/fixtures/configs/valid_single_filter_plugin.yaml":"# Configs Skill\n\nPath: `tests/unit/mcpgateway/plugins/fixtures/configs/valid_single_filter_plugin.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/tests/unit/mcpgateway/plugins/fixtures/configs/valid_single_filter_plugin.yaml)","tests/unit/mcpgateway/plugins/fixtures/configs/valid_single_plugin.yaml":"# Configs Skill\n\nPath: `tests/unit/mcpgateway/plugins/fixtures/configs/valid_single_plugin.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/tests/unit/mcpgateway/plugins/fixtures/configs/valid_single_plugin.yaml)","tests/unit/mcpgateway/plugins/fixtures/configs/valid_single_plugin_passthrough.yaml":"# Configs Skill\n\nPath: `tests/unit/mcpgateway/plugins/fixtures/configs/valid_single_plugin_passthrough.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/tests/unit/mcpgateway/plugins/fixtures/configs/valid_single_plugin_passthrough.yaml)","tests/unit/mcpgateway/plugins/fixtures/configs/valid_stdio_external_plugin.yaml":"# Configs Skill\n\nPath: `tests/unit/mcpgateway/plugins/fixtures/configs/valid_stdio_external_plugin.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/tests/unit/mcpgateway/plugins/fixtures/configs/valid_stdio_external_plugin.yaml)","tests/unit/mcpgateway/plugins/fixtures/configs/valid_stdio_external_plugin_overrides.yaml":"# Configs Skill\n\nPath: `tests/unit/mcpgateway/plugins/fixtures/configs/valid_stdio_external_plugin_overrides.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/tests/unit/mcpgateway/plugins/fixtures/configs/valid_stdio_external_plugin_overrides.yaml)","tests/unit/mcpgateway/plugins/fixtures/configs/valid_stdio_external_plugin_passthrough.yaml":"# Configs Skill\n\nPath: `tests/unit/mcpgateway/plugins/fixtures/configs/valid_stdio_external_plugin_passthrough.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/tests/unit/mcpgateway/plugins/fixtures/configs/valid_stdio_external_plugin_passthrough.yaml)","tests/unit/mcpgateway/plugins/fixtures/configs/valid_stdio_external_plugin_regex.yaml":"# Configs Skill\n\nPath: `tests/unit/mcpgateway/plugins/fixtures/configs/valid_stdio_external_plugin_regex.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/tests/unit/mcpgateway/plugins/fixtures/configs/valid_stdio_external_plugin_regex.yaml)","tests/unit/mcpgateway/plugins/fixtures/configs/valid_strhttp_external_plugin_overrides.yaml":"# Configs Skill\n\nPath: `tests/unit/mcpgateway/plugins/fixtures/configs/valid_strhttp_external_plugin_overrides.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/tests/unit/mcpgateway/plugins/fixtures/configs/valid_strhttp_external_plugin_overrides.yaml)","tests/unit/mcpgateway/plugins/fixtures/configs/valid_strhttp_external_plugin_regex.yaml":"# Configs Skill\n\nPath: `tests/unit/mcpgateway/plugins/fixtures/configs/valid_strhttp_external_plugin_regex.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/tests/unit/mcpgateway/plugins/fixtures/configs/valid_strhttp_external_plugin_regex.yaml)","tests/unit/mcpgateway/plugins/fixtures/configs/valid_tool_hooks.yaml":"# Configs Skill\n\nPath: `tests/unit/mcpgateway/plugins/fixtures/configs/valid_tool_hooks.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/tests/unit/mcpgateway/plugins/fixtures/configs/valid_tool_hooks.yaml)","tests/unit/mcpgateway/plugins/fixtures/configs/valid_unix_external_plugin.yaml":"# Configs Skill\n\nPath: `tests/unit/mcpgateway/plugins/fixtures/configs/valid_unix_external_plugin.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/tests/unit/mcpgateway/plugins/fixtures/configs/valid_unix_external_plugin.yaml)","tests/unit/mcpgateway/plugins/fixtures/configs/valid_unix_external_plugin_manager.yaml":"# Configs Skill\n\nPath: `tests/unit/mcpgateway/plugins/fixtures/configs/valid_unix_external_plugin_manager.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/tests/unit/mcpgateway/plugins/fixtures/configs/valid_unix_external_plugin_manager.yaml)"},"files":{".agents/skills/mcp-helpers/SKILL.md":"---\nname: mcp-helpers\ndescription: Generate a gateway JWT, expose a stdio MCP server over HTTP/SSE with `mcpgateway.translate`, or register an MCP server in a local gateway.\n---\n\n# MCP Helpers\n\n```bash\n# Generate JWT token\npython -m mcpgateway.utils.create_jwt_token --username admin@example.com --exp 10080 --secret KEY\n\n# Export for API calls\nexport MCPGATEWAY_BEARER_TOKEN=$(python -m mcpgateway.utils.create_jwt_token --username admin@example.com --exp 0 --secret KEY)\n\n# Expose stdio server via HTTP/SSE\npython -m mcpgateway.translate --stdio \"uvx mcp-server-git\" --port 9000\n```\n\n## Add an MCP Server\n\n1. Start: `python -m mcpgateway.translate --stdio \"server-command\" --port 9000`\n2. Register: `POST /gateways`\n3. Create virtual server: `POST /servers`\n4. Access via SSE/WebSocket endpoints\n",".agents/skills/contextforge-web-ui/SKILL.md":"---\nname: contextforge-web-ui\ndescription: Run or configure the ContextForge Web UI (`web_ui` service, `--profile ui`, `WEB_UI_*` variables in `docker-compose.yml` and `.env.example`). Not for the built-in Admin UI.\n---\n\n# ContextForge Web UI\n\nA BFF-style frontend for the gateway API. It is separate from the built-in Admin UI (`MCPGATEWAY_UI_ENABLED`). Source and docs: https://github.com/contextforge-org/contextforge-web-ui\n\n- Runs as `web_ui` plus a dedicated `web_ui_redis` session store in `docker-compose.yml`.\n- Enabled with `--profile ui`. `--profile testing` also pulls it in.\n- `web_ui` waits until `gateway` and `web_ui_redis` are healthy.\n\n```bash\n# Start the gateway plus the web UI\ndocker compose --profile ui up -d\n\n# Access\nopen http://localhost:${WEB_UI_PORT:-3001}\n```\n\nConfiguration (see the commented `WEB_UI_*` block in `.env.example`):\n\n| Variable | Default | Purpose |\n|----------|---------|---------|\n| `WEB_UI_IMAGE` | see `docker-compose.yml` | Image to pull. Pinned to a specific released version *and* digest, never `latest`. The release checklist bumps it (`docs/docs/development/release-management.md`). Keep the value in `docker-compose.yml` only, so copies cannot drift. |\n| `WEB_UI_PORT` | `3001` | Host **and** container port. The image reads `PORT` at startup, so both sides of the mapping stay in sync. |\n| `WEB_UI_HOST` | `0.0.0.0` | Bind address inside the container. Keep `0.0.0.0` in Docker. |\n| `WEB_UI_CONTEXTFORGE_URL` | `http://gateway:4444` | Gateway API base URL the UI talks to (internal compose network). |\n| `WEB_UI_COOKIE_SECURE` | `false` | Set `true` once the UI is served over HTTPS. |\n| `WEB_UI_REDIS_URL` | `redis://web_ui_redis:6379/0` | Session store, separate from the gateway's cache `redis` service. |\n\nFor feature docs, auth flow details, and upstream options beyond this compose file, see the [contextforge-web-ui repo](https://github.com/contextforge-org/contextforge-web-ui).\n",".agents/skills/observability-audit-sessions/SKILL.md":"---\nname: observability-audit-sessions\ndescription: Change code that writes traces, spans, metrics, or audit entries. Use when you touch `ObservabilityService`, `ObservabilityMiddleware`, `instrumentation/sqlalchemy.py`, or a `log_action()` / `log_audit()` call site, or when you size connection pools.\n---\n\n# Observability and Audit Trail Session Behavior\n\nObservability writes and audit writes use sessions separate from the main request transaction. This is an intentional trade-off.\n\n## Observability Transaction Behavior\n\n**Issue #3883 - Separate Session Pattern**\n\nThe HTTP middleware reuses one observability session per traced request. This means:\n\n- Observability data persists even when the main request fails.\n- Traces can show \"in progress\" or partial states for failed requests.\n- Observability writes are **NOT atomic** with the main request transaction.\n- You get visibility into partial failures at the cost of atomicity.\n\n### Implementation Details\n\n**Write methods** (create independent sessions unless callers supply a supported `obs_db` parameter):\n- `start_trace()`, `end_trace()`\n- `start_span()`, `end_span()`\n- `add_event()`, `record_token_usage()`, `record_metric()`, `delete_old_traces()`\n\n**Query methods** (use request-scoped sessions):\n- `get_trace()`, `get_traces()`, `get_spans()`, etc.\n- These accept a `db: Session` parameter for RBAC/token scoping.\n\n**Context managers** (create one independent session for the lifecycle):\n- `trace_span()`, `trace_tool_invocation()`, `trace_a2a_request()`\n\n**Middleware lifecycle**: Commit parent traces and HTTP spans before request processing so independent child writers can see them. Commit span and trace completion independently. Roll back caught span failures before attempting trace completion. Keep this session separate from application transactions.\n\n**Pattern**: SQL instrumentation also reuses a session for each query span in `instrumentation/sqlalchemy.py`.\n\n## Audit Trail Transaction Behavior\n\n**Issue #2871 - Separate Session Pattern**\n\n`AuditTrailService.log_action()` (`mcpgateway/services/audit_trail_service.py`) opens its own `SessionLocal()` when no `db` is supplied. It closes and rolls back that session itself. Callers in `tool_service.py`, `resource_service.py`, `gateway_service.py`, `prompt_service.py`, `server_service.py`, and `admin.py` must **never** pass `db=db` (the caller's request-scoped session) to `log_action()`. In `admin.py`, plugin-view audit logging goes through `log_audit()`. It is a thin wrapper over `log_action()` and inherits the same optional-session behavior.\n\nPassing the shared session caused **\"This transaction is inactive\"** errors. The main CRUD operation already calls `db.commit()` before the audit call. A second commit on the same session leaves it in a state that breaks rollback on later errors.\n\n- `log_action()` swallows its own exceptions and returns `None` on failure. It does not propagate them to the caller in production.\n- The main resource (tool/gateway/resource/prompt/server) is committed **before** `log_action()` runs. An audit-logging failure never rolls back persisted data. The generic `except Exception` handlers of callers still call `db.rollback()` and surface an error to the API caller, even though the row is already committed.\n- Do not add `db: Session` back to a `log_action()` call site. If a service needs the audit entry in the same transaction as the main write, that is a deliberate design change that requires review.\n\n**Middleware**: `ObservabilityMiddleware` creates one observability session per HTTP trace lifecycle and closes it after completion. Child spans, metrics, and SQL instrumentation can create additional sessions. The middleware does not create `request.state.db`.\n\n**Security**: Query operations use request-scoped sessions for RBAC/token scoping. Write operations are not RBAC-protected. Observability visibility is platform-wide.\n\n**Connection Pool Sizing**: Session allocations do not equal simultaneous connections. Commits release connections before subsequent lifecycle operations. Size pools from measured concurrent connection use, worker counts, and database limits. The SQLite lifecycle comparison measures session allocations and checkouts. It does not establish production capacity. See `docs/docs/manage/tuning.md` for measurements and limitations.\n",".agents/skills/alembic-migrations/SKILL.md":"---\nname: alembic-migrations\ndescription: Create or review an Alembic migration in `mcpgateway/alembic`. Use when you add a column or table, change `mcpgateway/db.py` models, fix \"Multiple heads\", or write a `downgrade()` that reads `settings`.\n---\n\n# Alembic Database Migrations\n\nEvery change to a model in `mcpgateway/db.py` needs a matching Alembic migration. This includes every new column and table.\n\n## Migration Chain Rules\n\n- Work on one migration at a time. Merge or finish one migration before you start the next.\n- The `revision` -> `down_revision` links form one linked list. The chain never branches.\n- Each migration has exactly one parent. `alembic heads` shows exactly one head.\n- A new migration sets `down_revision` to the current head.\n\n## Create a Migration\n\n```bash\n# CRITICAL: Always check the current head FIRST\ncd mcpgateway && alembic heads\n\n# Generate a new migration (auto-generates from model changes)\nalembic revision --autogenerate -m \"add_column_to_table\"\n\n# Or create an empty migration for manual edits\nalembic revision -m \"add_column_to_table\"\n```\n\n## Migration File Requirements\n\nThe `down_revision` MUST point to the current head. Read the head from `alembic heads`. Never copy the value from an older migration.\n\n```python\n# CORRECT: points to the actual current head (verified with `alembic heads`)\nrevision: str = \"<new_revision_id>\"\ndown_revision: Union[str, Sequence[str], None] = \"<current_head_id>\"\n\n# WRONG: creates multiple heads (breaks all tests)\ndown_revision: Union[str, Sequence[str], None] = \"<some_older_revision_id>\"\n```\n\n## Idempotent Migrations Pattern\n\nWrite idempotent migrations. Check state before you change it:\n\n```python\ndef upgrade() -> None:\n    inspector = sa.inspect(op.get_bind())\n\n    # Skip if table doesn't exist (fresh DB uses db.py models directly)\n    if \"my_table\" not in inspector.get_table_names():\n        return\n\n    # Skip if column already exists\n    columns = [col[\"name\"] for col in inspector.get_columns(\"my_table\")]\n    if \"new_column\" in columns:\n        return\n\n    op.add_column(\"my_table\", sa.Column(\"new_column\", sa.String(), nullable=True))\n```\n\n## Verification\n\nRun these commands from `mcpgateway/`.\n\n### Inspect the chain\n\n```bash\nalembic heads              # must show exactly ONE head\nalembic current            # revision the DB is at\nalembic history --verbose  # full chain\nalembic branches           # find branch points\n```\n\n### Upgrade\n\n```bash\nalembic upgrade head              # apply all\nalembic upgrade +1                # apply the next one\nalembic upgrade <revision_id>     # apply up to a specific revision\nalembic upgrade <rev>:head --sql  # print the SQL only (offline mode, no DB change)\n```\n\n### Downgrade\n\n```bash\nalembic downgrade -1              # revert the latest migration\nalembic downgrade <revision_id>   # revert to a specific revision\nalembic downgrade base            # revert everything\nalembic downgrade head:-1 --sql   # print the SQL only (offline mode, no DB change)\n```\n\n### Round-trip test of a new migration\n\n```bash\nalembic upgrade head && alembic downgrade -1 && alembic upgrade head\n```\n\nRun the test suite to confirm the migrations work:\n\n```bash\nmake test\n```\n\nDone when `alembic heads` prints one head, the round-trip test passes, and `make test` passes.\n\n## Common Errors\n\n- **\"Multiple heads are present\"**: `down_revision` points to the wrong parent. Set it to the actual current head.\n- **\"Target database is not up to date\"**: Run `alembic upgrade head` first.\n\n## Hermetic Downgrade: Config Snapshot Pattern\n\nA `downgrade()` that reads runtime configuration (`mcpgateway.config.settings`) **must** snapshot those values into `migration_metadata` during `upgrade()`. `downgrade()` reads the snapshot back. The migration is then hermetic: database state determines its behavior, not the current environment.\n\n```python\nfrom mcpgateway.config import settings\nfrom sqlalchemy import inspect, text\n\nREVISION = \"<your_revision_id>\"\n\ndef upgrade() -> None:\n    bind = op.get_bind()\n    # ... schema changes ...\n\n    # Snapshot any settings values used in downgrade\n    if \"migration_metadata\" in inspect(bind).get_table_names():\n        bind.execute(\n            text(\n                \"INSERT INTO migration_metadata (revision, key, value, created_at) \"\n                \"VALUES (:rev, :key, :val, CURRENT_TIMESTAMP) \"\n                \"ON CONFLICT (revision, key) DO UPDATE SET value = excluded.value\"\n            ),\n            {\"rev\": REVISION, \"key\": \"some_setting\", \"val\": settings.some_setting},\n        )\n\ndef downgrade() -> None:\n    bind = op.get_bind()\n\n    # Read from snapshot; fall back to live settings only if table is absent\n    # (pre-existing DB that was upgraded before this pattern was introduced)\n    cfg = {}\n    if \"migration_metadata\" in inspect(bind).get_table_names():\n        rows = bind.execute(\n            text(\"SELECT key, value FROM migration_metadata WHERE revision = :rev\"),\n            {\"rev\": REVISION},\n        ).all()\n        cfg = {r[0]: r[1] for r in rows}\n\n    some_setting = cfg.get(\"some_setting\") or settings.some_setting\n\n    # ... use some_setting for downgrade logic ...\n\n    # Clean up snapshot rows\n    if \"migration_metadata\" in inspect(bind).get_table_names():\n        bind.execute(\n            text(\"DELETE FROM migration_metadata WHERE revision = :rev\"),\n            {\"rev\": REVISION},\n        )\n```\n\n**Rule:** If a migration imports `settings` and uses it in `downgrade()`, follow this pattern. A migration that uses `settings` only in `upgrade()` (for example, to seed initial data) is exempt.\n",".agents/skills/pr-review/SKILL.md":"---\nname: pr-review\ndescription: Review a PR, branch, or diff in this repository. Use before you create or update a PR, when a branch is ready for review, or before you post `gh pr review`. Defines the procedure, finding format, severity levels, blocking criteria, and tone.\n---\n\n# PR Review\n\nA review reports every issue as a finding the author can act on. A review changes no files.\n\n## Rebase on origin/main\n\n1. Run `git fetch origin`.\n2. Run `git rebase origin/main`.\n\nIf the rebase hits conflicts, resolve them. When both sides changed the same logic substantively, ask the user which side wins. Resolve `.secrets.baseline` conflicts with the `secret-detection` skill.\n\n## Gather Context\n\n1. **Diff**: Collect all changes between `origin/main` and HEAD, plus staged and unstaged working-tree changes. Treat them as one unit. Staging status is never a finding.\n2. **PR metadata**: When a PR exists, read the description, review comments, and linked issues (`gh pr view`, `gh pr view --comments`, `gh issue view N`).\n3. **Scope**: Compare the PR description against the linked issues. Partial coverage of an issue is acceptable when the PR says so. Unstated gaps and scope drift are findings.\n4. **Conventions**: Read `AGENTS.md` and `CONTRIBUTING.md`. Use their linter and test commands exactly.\n\n## Review Order\n\nReview the diff in this order. Severity comes from *Blocking Criteria* below, not from the category.\n\n1. Security: injection, leaked secrets, auth gaps, OWASP top 10, Layer 1 / Layer 2 violations.\n2. Correctness: logic errors, edge cases, mismatch with linked issues.\n3. Test coverage: changed code has tests, including deny-path tests for security changes.\n4. Linter compliance: run project linters on touched files and report violations. Do not fix them (see *Optional Lint Auto-Fix*).\n5. Performance: N+1 queries, unnecessary allocations, bottlenecks.\n6. Redundancy: duplicated logic, copy-paste patterns, shared-utility opportunities.\n7. Design: structural quality (see *Design Guidance*).\n8. Consistency: adherence to documented conventions.\n9. Alembic migrations (conditional): idempotence, reversibility, cross-database compatibility, `batch_alter_table` for SQLite. Apply the `alembic-migrations` skill.\n\n## Optional Lint Auto-Fix\n\nNever auto-fix formatting during a review. A reviewer who edits the reviewed code changes the PR under review. Report `black`, `isort`, `autoflake`, pylint, bandit, and mypy findings for the author to address. Include the exact command and output.\n\nRun the auto-fix only when the user explicitly asks for it, for example a local developer who reviews their own branch. Fix files the PR touched only. Never run formatters on the whole codebase. That pollutes the diff.\n\n```bash\nPY_FILES=\"$(git diff --diff-filter=d --name-only origin/main -- '*.py')\"\nif [ -n \"$PY_FILES\" ]; then\n  make autoflake isort black TARGET=\"$PY_FILES\"\nfi\n```\n\nRun the linters again to check the fixes. Report the fix as a minor finding, for example \"Auto-fixed: ran autoflake/isort/black on N files\".\n\n## Design Guidance\n\n### Structure and modularity\n\n- **Single-responsibility violations**: Name each responsibility and suggest a split.\n- **God functions**: More than 50 lines of logic or more than 3 levels of nesting. Name the extraction points.\n- **Long parameter lists**: More than 5 parameters often means a missing config object or dataclass.\n- **Tight coupling**: Modules that reach into each other's internals. Suggest an interface boundary.\n- **Deep nesting**: Suggest early returns, guard clauses, or extracted helpers.\n\n### Polymorphism\n\nLong `if`/`elif`/`else` chains often want polymorphic dispatch. Look for these in changed code and adjacent code:\n\n- **Type-switching conditionals**, for example `if transport == \"sse\": ... elif transport == \"websocket\": ...`. Suggest an ABC or Protocol with one implementation per variant.\n- **Behavior chosen by enum or string**. Suggest Strategy or Template Method.\n- **Scattered object creation**. Suggest a factory method or registry.\n- **Simple dispatch**. A `dict[key, callable]` table is a good intermediate step.\n- **Copy-paste behavior across classes**. Suggest a `Protocol` or mixin.\n- **Missing abstract parents**. Classes with a shared interface and no common base need an ABC with `@abstractmethod`.\n\n### Missing abstractions\n\n- A pattern repeated at 3 or more call sites needs a shared utility or base class.\n- A data class whose related logic lives in other modules needs that logic moved next to the data.\n\n## Second Opinions\n\nAfter your own review, run these tools as background tasks. If a tool is missing or fails, skip it and note the reduced coverage.\n\n- `codex exec review --base origin/main`\n- `git diff origin/main..HEAD | bob \"Review this diff for correctness, security, and design quality. Be specific about line-level issues.\"`\n\nAttribute each finding to its source. Resolve contradictions.\n\n## Finding Format\n\nWrite each finding as a compact block that reads well in a GitHub comment:\n\n```markdown\n**severity** · `path:line`\nProblem: what is wrong and why it matters.\nFix: the concrete change.\n```\n\nUse short sentences. Add detail only when the problem or fix needs it. Make each fix concrete: name the method to extract, the class to create, the interface to define. \"Consider refactoring\" is not a fix. The delivery channel (file, agent toolkit, `gh pr review`) is per-PR. Ask the user which channel applies before you post externally.\n\n## Severity\n\n| Severity | Meaning | Disposition |\n|----------|---------|-------------|\n| blocking | Meets a blocking criterion with evidence in the diff or linked artifacts | Merge gate. No waiver |\n| functionally-impacting | Affects behavior or maintainability, below the blocking bar | Fix before merge unless the PR documents a waiver |\n| suggestion | A better way exists. Optional | May be deferred |\n| minor | Polish | May be deferred |\n\n## Blocking Criteria\n\nA finding is blocking if and only if it meets one of these criteria with evidence in the diff or linked artifacts. If there is no evidence, the finding is not blocking:\n\n1. Correctness bug in changed code, reachable in real use (includes data loss).\n2. Security regression, or a security-sensitive change without deny-path regression tests (unauthenticated, wrong team, insufficient permission, feature disabled).\n3. Violates a documented Security Invariant or design decision (see *Authentication & RBAC Overview* and *Synchronous SQLAlchemy in Async Handlers* in `AGENTS.md`).\n4. Breaks a consumer contract unflagged: HTTP API, environment variables or their defaults, database schema, Helm values, MCP/A2A wire behavior.\n5. Adds or changes a model without a matching Alembic migration.\n6. The PR does not deliver what it claims.\n\nWhen severity stays ambiguous after investigation, mark the finding blocking and name the missing evidence. The next pass resolves it.\n\nNot blocking: style and naming (Ruff owns these), the sync-SQLAlchemy-in-async pattern, doc polish, test-count aesthetics.\n\n## Output\n\n```markdown\n# PR Review: [branch-name]\n\n## Summary\n[1-2 sentences: what changed, whether it meets the PR and issue goals]\n\n## Findings\n[one block per finding, grouped blocking, functionally-impacting, suggestion, minor]\n\n## Recommendation\n[Exactly ONE of: \"Ready to merge\" | \"Ready after addressing findings\" | \"Needs significant rework\"]\n[1 sentence of justification]\n```\n\n## Rules\n\n- Change no files. Report every finding for the author. Run the lint auto-fix only on explicit user request.\n- Never mention AI or coding assistants in any output.\n\n## Tone\n\nCourteous by structure, direct by sentence. Lead with what works. State severity so the author knows what must change. Write as a respectful senior colleague: direct about problems, never harsh, never hedged. Prose follows *Agent Prose* in `AGENTS.md`. Before you post, rewrite the summary, findings, and recommendation with the `asd-ste100` skill in STE-flavored mode. Done when each sentence is 25 words or fewer, active, and keeps every severity and hedge.\n","AGENTS.md":"# AGENTS.md\n\nGuidelines for AI coding assistants working with this repository.\n\nFor domain-specific guidance, see subdirectory AGENTS.md files:\n- `tests/AGENTS.md` - Testing conventions and workflows\n- `plugins/AGENTS.md` - Plugin framework and development\n- `charts/AGENTS.md` - Helm chart operations\n- `docs/AGENTS.md` - Documentation authoring\n\n**Note:** The `llms/` directory holds LLM guidance of two kinds: end-user runtime guidance for using ContextForge, and work prompts for agents changing this repository. Where `llms/` guidance overlaps an `AGENTS.md` file, the `AGENTS.md` file is authoritative.\n\n## Skills\n\nTask-specific guidance lives in `.agents/skills/`. `.bob/skills` links to that directory. Load the matching skill before you start the task:\n\n- `asd-ste100`: write or rewrite prose for humans (review findings, issue and PR text, commit bodies) in ASD-STE100 style.\n- `pr-review`: write review findings, assign severity, judge blocking criteria.\n- `alembic-migrations`: add or change a database model, column, or migration.\n- `observability-audit-sessions`: change trace, span, metric, or audit writes.\n- `secret-detection`: resolve a `detect-secrets` finding or `.secrets.baseline` change.\n- `github-issues`: create, label, or triage an issue.\n- `contextforge-web-ui`: run or configure the `web_ui` compose service.\n- `mcp-helpers`: generate a JWT or register an MCP server locally.\n\n## Project Overview\n\nContextForge is an open source registry and proxy that federates MCP, A2A, and REST/gRPC APIs with centralized governance, discovery, and observability. It federates tools, agents, and APIs, optimizes agent and tool calling, and supports plugins, auth/RBAC, rate-limiting, virtual servers, multi-transport protocols, and an optional Admin UI.\n\n## Project Structure\n\n```\nmcpgateway/                 # Core FastAPI application\n├── main.py                 # Application entry point\n├── config.py               # Environment configuration\n├── db.py                   # SQLAlchemy ORM models and session management\n├── schemas.py              # Pydantic validation schemas\n├── services/               # Business logic layer (50+ services)\n├── routers/                # HTTP endpoint definitions (19 routers)\n├── middleware/             # Cross-cutting concerns (16 middleware)\n├── transports/             # Protocol implementations (SSE, WebSocket, stdio, streamable HTTP)\n├── plugins/                # Plugin integration (uses cpex external package)\n└── alembic/                # Database migrations\n\ntests/                      # Test suite (see tests/AGENTS.md)\nplugins/                    # Plugin implementations (see plugins/AGENTS.md)\ncharts/                     # Helm charts (see charts/AGENTS.md)\ndocs/                       # Architecture and usage documentation (see docs/AGENTS.md)\na2a-agents/                 # A2A agent implementations (used for testing/examples)\nllms/                       # End-user LLM guidance (not for code agents)\n```\n\n## Essential Commands\n\n### Setup\n```bash\ncp .env.example .env && make install-dev check-env    # Complete setup\nmake venv                          # Create virtual environment with uv\nmake install-dev                   # Install with dev dependencies (includes build-ui)\nmake check-env                     # Verify .env against .env.example\nmake build-ui                      # Rebuild Admin UI JS bundle (requires npm)\n```\n\n### Development\n```bash\nmake dev                          # Dev server on :8000 with autoreload\nmake serve                        # Production gunicorn on :4444\nmake serve-ssl                    # HTTPS on :4444 (creates certs if needed)\n```\n\n### Code Quality\n```bash\n# After writing code\nmake pre-commit\n\n# Before committing, use ty, mypy and pyrefly to check just the new files, then run:\nmake ruff bandit interrogate pylint verify\n```\n\n## Authentication & RBAC Overview\n\nContextForge implements a **two-layer security model**:\n\n1. **Token Scoping (Layer 1)**: Controls what resources a user CAN SEE (data filtering)\n2. **RBAC (Layer 2)**: Controls what actions a user CAN DO (permission checks)\n\n### Token Scoping Quick Reference\n\n**API / legacy tokens** — JWT `teams` claim is the sole authority (`normalize_token_teams()`):\n\n| JWT `teams` State | `is_admin: true` | `is_admin: false` |\n|-------------------|------------------|-------------------|\n| Key MISSING | PUBLIC-ONLY `[]` | PUBLIC-ONLY `[]` |\n| `teams: null` | ADMIN BYPASS | PUBLIC-ONLY `[]` |\n| `teams: []` | PUBLIC-ONLY `[]` | PUBLIC-ONLY `[]` |\n| `teams: [\"t1\"]` | Team + Public | Team + Public |\n\n**Session tokens** (`token_use: \"session\"`) — DB is the authority; JWT `teams` only narrows (`resolve_session_teams()`):\n\n| JWT `teams` State | DB admin? | Result | Access Level |\n|-------------------|-----------|--------|--------------|\n| any | yes | `None` | ADMIN BYPASS (DB authority) |\n| Missing/null/`[]` | no | DB teams | Full DB membership |\n| `[\"t1\"]` | no | intersection | Narrowed to overlap |\n| `[\"revoked\"]` | no | `[]` | Public-only (fail-closed) |\n\n**Key behaviors:**\n\n- **API/legacy tokens**: Missing `teams` key = public-only access (secure default). Admin bypass requires BOTH `teams: null` AND `is_admin: true`. `normalize_token_teams()` in `mcpgateway/auth.py` is the single source of truth.\n- **Token creation defaults to the creator's personal team**: `POST /tokens` (and admin-delegated creation) with no `team_id` no longer mints a `teams: null` (public-only) token for non-admin callers. `TokenCatalogService.get_default_team_id()` resolves the caller's (or, for admin delegation, the target's) personal team and `routers/tokens.py::create_token` uses it when the caller belongs to that team; it falls back to single-team inheritance, then to `team_id=None` plus a `TokenCreateResponse.warnings` entry only when neither applies (no personal team and multiple/zero teams). Un-narrowed admins are exempt — `team_id=None` for them is a deliberate global-scope token. The permission-containment check (`_get_caller_permissions`) still uses the *requested* `team_id`, not the defaulted one, so this does not raise the ceiling on what `scope.permissions` a caller may request. Separately, `derive_token_team_id()` in `mcpgateway/auth.py` — the function that turns a single-team token's claim into `request.state.team_id` for RBAC/rate-limit/routing context — excludes personal teams, since a personal team auto-grants `team_admin`; a personal-team-scoped token instead falls through to `check_any_team`, matching how `PermissionService._get_user_roles` already treats personal teams.\n- **Session tokens**: Admin bypass is determined by the DB `is_admin` flag, not the JWT `teams` claim. Non-admin sessions can be narrowed via JWT `teams`. `resolve_session_teams()` in `mcpgateway/auth.py` is the single policy point.\n- **Layer 1 only**: Token scoping controls visibility (what you can see). RBAC (Layer 2) is evaluated independently — session-token narrowing does not restrict which team roles are checked for permissions.\n- **External IdP tokens**: identities provisioned from trusted external SSO providers (see `SSO_API_TOKEN_AUTH_ENABLED`) are dispatched through the session-token table above (`resolve_session_teams()`), not the API/legacy table — `is_admin`/`teams` come from the persisted local user record, never from the external token's claims.\n\n### Implementation Helpers\n\nLayer-1 derivation is centralized in `mcpgateway/auth_context.py`. Route handlers must call these rather than re-deriving the rule inline:\n\n- `get_scoped_resource_access_context(request, user)` → `(user_email, token_teams)` — the visibility scope to pass into service fetch/list/read calls. Admin bypass is signalled by `token_teams=None` while `user_email` is **kept**, so the service can still owner-match the admin's own private rows. Public-only is `(email, [])`.\n- `get_request_identity(request, user)` → `(user_email, is_admin)` — the requester's own identity, for audit capture and header masking. Use when you need the identity independent of the visibility scope.\n- `get_rpc_filter_context(request, user)` → `(user_email, token_teams, is_admin)` — the raw pre-rule triple. Reserved for the few sites that genuinely need `is_admin` or the un-normalized teams (auth-context forwarding, run-ownership capture, tool-execution authorization); these carry a `Layer-1 exception` comment naming the reason.\n\nThe derived triple is memoized on `request.state` per principal, so calling the scope and identity helpers together costs one derivation rather than two.\n\n### Security Invariants (Required)\n\n- Treat `public` as platform-public scope, not internet-anonymous scope.\n- Explicit exception: when `MCP_REQUIRE_AUTH` is `false`, unauthenticated `/mcp` requests are allowed with public-only visibility — **unless** the target virtual server has `oauth_enabled` set to `True`, in which case unauthenticated requests are rejected with 401 regardless of the global setting.\n- Keep the two-layer model on every path:\n  - Layer 1: token scoping controls what a caller can see.\n  - Layer 2: RBAC controls what a caller can do.\n- Do not re-implement token team interpretation logic; use `normalize_token_teams()` for API/legacy tokens and `resolve_session_teams()` for session tokens (both in `mcpgateway/auth.py`).\n- Do not re-implement Layer 1 token scope semantics; use `token_scope_grants()` in `mcpgateway/middleware/rbac.py`, the single policy point shared by the RBAC decorators and `TokenScopingMiddleware`. Empty token scopes mean \"inherit from RBAC at runtime\" (what `TokenCatalogService._generate_token()` emits for tokens created without an explicit scope) and must never be treated as deny-all; `*` grants everything and `<category>.*` grants that category.\n- Do not accept inbound client auth tokens via URL query parameters.\n- Legacy `INSECURE_ALLOW_QUERYPARAM_AUTH` is interop-only for outbound peer auth and must remain opt-in and host-restricted.\n- High-risk transports must be feature-flagged and disabled by default.\n- Transport/session endpoints must authenticate before session establishment (or message forwarding) and enforce RBAC before processing actions.\n- Token-scoped route authorization must be default-deny for unmapped protected paths.\n- Never trust client-provided ownership fields (`owner_email`, `team_id`, session owner); derive authorization from authenticated identity and server-side state.\n- Security-sensitive changes must include deny-path regression tests (unauthenticated, wrong team, insufficient permissions, feature disabled).\n- A `token-exchange` OAuth grant (RFC 8693 / On-Behalf-Of) exists for gateways; with it, the user's inbound JWT is exchanged with a trusted Authorization Server and **never forwarded upstream** — only the exchanged token is sent to the downstream MCP server.\n- `token_url` on a `token-exchange` gateway is an SSRF / egress boundary: the user's ContextForge JWT is POSTed to it as the `subject_token`, it is validated at config time, and creating or modifying token-exchange gateways is a privileged action.\n- Audit token-exchange operations via the structured logging sink with a `correlation_id`; never log raw subject tokens or exchanged tokens.\n\n#### UAID Cross-Gateway Security\n\n- UAID cross-gateway routing requires explicit domain allowlist (fail-closed default)\n- Empty `UAID_ALLOWED_DOMAINS` blocks all cross-gateway routing unless `UAID_ALLOW_ALL_DOMAINS=true`\n- Cross-gateway calls forward bearer tokens for RBAC enforcement on remote gateways\n- Both gateways must trust the same JWT issuer (shared `JWT_SECRET_KEY` or federated SSO)\n- `UAID_ALLOW_ALL_DOMAINS=true` is unsafe for production (bypasses allowlist validation)\n- Startup validation logs ERROR if A2A enabled but allowlist not configured\n- Remote gateway 401/403 responses raise `A2AAgentError` with troubleshooting guidance\n\n### Built-in Roles\n\n| Role | Scope | Key Permissions |\n|------|-------|-----------------|\n| `platform_admin` | global | `*` (all) |\n| `team_admin` | team | teams.*, tools.read/execute, resources.read |\n| `developer` | team | CRUD on gateways, servers, tools, resources, prompts, and A2A agents; execution/invocation; token self-service; dashboard access; team read/join |\n| `viewer` | team | tools.read/execute, resources.read |\n\nThe `developer` role includes gateway registration, update, and deletion.\nSee the [complete built-in permission table](docs/docs/manage/rbac.md#built-in-rbac-roles) before assigning this role.\n\n### Documentation\n\n- **Full RBAC guide**: `docs/docs/manage/rbac.md`\n- **Multi-tenancy architecture**: `docs/docs/architecture/multitenancy.md`\n- **OAuth token delegation**: `docs/docs/architecture/oauth-design.md`\n### User Identity Extraction\n\n**Canonical Email Precedence**: All user-email extraction helpers use a consistent **email-over-sub** precedence order to ensure forensic accuracy across visibility checks and audit logs:\n\n- When a user dict contains both `email` and `sub` keys, `email` takes precedence\n- The canonical implementation is `get_user_email()` in `mcpgateway/auth_context.py`\n- All other helpers (including `admin.get_user_email`) re-export or delegate to this canonical implementation\n- This ensures that the identity used for RBAC evaluation matches the identity logged in audit trails\n\n**Rationale**: The `email` field is the human-readable identifier used throughout AGENTS.md and user-facing documentation. Consistent precedence prevents forensic confusion where an incident review pivots on a logged email that differs from the principal actually evaluated by RBAC.\n\n**Two accessors**: `get_user_email()` in `mcpgateway/auth_context.py` is the e-mail-attribute accessor. `get_user_id()` in the same module is the identity accessor. Phase 1 populates both with the same value. Audit (`AuditTrail.user_id`) and observability (`ObservabilityTrace.user_email`) identity fields hold the canonical user_id from `get_user_id()`; the column names stay unchanged for compatibility. Routers compute `get_user_id(user)` and pass it to services as the `user_id` keyword; services keep `user_email` for ownership checks.\n\n\n## Separate-Session Writes\n\nObservability and audit writes use sessions separate from the request transaction. Never pass `db=db` to `AuditTrailService.log_action()` or `log_audit()`. Load the `observability-audit-sessions` skill before you change either write path.\n\n\n## Key Environment Variables\n\nDefaults come from `mcpgateway/config.py`. `.env.example` intentionally overrides a few for local/dev convenience.\n\n```bash\n# Core\nHOST=127.0.0.1                  # .env.example uses 0.0.0.0\nPORT=4444\nDATABASE_URL=sqlite:///./mcp.db   # or postgresql+psycopg://...\nREDIS_URL=redis://localhost:6379/0\nRELOAD=false\n\n# Auth\nJWT_SECRET_KEY=your-secret-key\nBASIC_AUTH_USER=admin\nBASIC_AUTH_PASSWORD=changeme        # pragma: allowlist secret\nAUTH_REQUIRED=true                   # Set false ONLY for development\nAUTH_ENCRYPTION_SECRET=             # REQUIRED: generate with: make init-secrets-patch-env  # pragma: allowlist secret\n\n# Features\nMCPGATEWAY_UI_ENABLED=false          # .env.example sets true\nMCPGATEWAY_ADMIN_API_ENABLED=false   # .env.example sets true\nMCPGATEWAY_A2A_ENABLED=true\nPLUGINS_ENABLED=false\nPLUGINS_CONFIG_FILE=plugins/config.yaml\n\n# Logging\nLOG_LEVEL=ERROR\nLOG_TO_FILE=false\nSTRUCTURED_LOGGING_DATABASE_ENABLED=false\n\n# Observability\nOBSERVABILITY_ENABLED=false\nOTEL_EXPORTER_OTLP_ENDPOINT=          # .env.example sets http://localhost:4317\n```\n\n## Technology Stack\n\n- **FastAPI** with **Pydantic** validation and **SQLAlchemy** ORM (Starlette ASGI)\n- **HTMX + Alpine.js** for admin UI\n- **SQLite** default, **PostgreSQL** support, **Redis** for caching/federation\n- **Alembic** for migrations\n\n### Synchronous SQLAlchemy in Async Handlers (Design Decision)\n\nThe codebase deliberately uses synchronous SQLAlchemy sessions (e.g. `SessionLocal().begin()`) inside async FastAPI handlers and ASGI middleware, relying on FastAPI's event-loop management to handle blocking operations. Do not flag this as a bug or attempt to convert individual call sites to async without a broader migration plan. This design decision may be revisited in the future alongside a potential migration to async database drivers.\n\n## Coding Standards\n\n- **Python >= 3.12** with type hints; strict mypy\n- **Formatting**: Ruff (line length 200)\n- **Linting**: Ruff (`E3`,`E4`,`E7`,`E9`,`F`,`D1`), Pylint per `pyproject.toml`\n- **Naming**: `snake_case` functions/modules, `PascalCase` classes, `UPPER_CASE` constants\n- **Imports**: Group per isort sections (stdlib, third-party, first-party `mcpgateway`, local)\n- **Readability**: *Clean Code* — implement per [`docs/docs/development/coding-standards.md`](docs/docs/development/coding-standards.md)\n\n### Code Comments\n\n- Comments are a last resort. Make the code self-documenting first: extract a function or rename a thing until the comment becomes redundant.\n- A comment earns its place only when code cannot express a durable constraint: security rationale, upstream workaround, dependency-pin reason.\n- Comments never carry transient implementation process or decisions. Decisions go to an ADR (`docs/docs/architecture/adr/`), process to the commit body, tasks to an issue.\n- Docstrings are API contract, not comments: Ruff `D1`/`D417` and interrogate enforce presence and parameter coverage; summary line first, then the contract.\n- Fix a comment in the same change that fixes its code.\n\n## Agent Prose (ASD-STE100)\n\nAll agent-authored prose follows the ASD-STE100 writing rules. The controlled dictionary is not enforced; domain, protocol, and code terms count as technical names.\n\n- One instruction per sentence: 20 words or fewer for instructions, 25 for description.\n- Active voice, present tense. Imperative for instructions: \"Add a test\", never \"a test should be added\".\n- One word, one meaning: a token stays a token, never also a credential or a key.\n- Positive constructions. No hedging (\"worth considering\"), no idioms.\n- Technical names verbatim: `normalize_token_teams()`, `DB_POOL_SIZE`, `QueuePool limit exceeded`.\n\nCovers code comments and docstrings, commit bodies, PR descriptions, review findings, issue bodies and comments, CHANGELOG entries. Exempt: identifiers, log and error strings, `docs/` prose, ephemeral working notes.\n\nApply the `asd-ste100` skill (STE-flavored mode) to rewrite prose. Full rules and worked examples per artifact: [`docs/docs/development/agent-prose.md`](docs/docs/development/agent-prose.md).\n\n## Commit & PR Standards\n\n- **Sign commits**: `git commit -s` (DCO requirement). Preserve sign-off on rewritten commits (rebases, conflict resolutions).\n- **Conventional Commits**: `feat:`, `fix:`, `docs:`, `refactor:`, `chore:`. Subjects keep that format; bodies follow *Agent Prose*.\n- **Link issues**: `Closes #123`\n- Include tests for behavior changes.\n- Every PR whose behavior can be exercised through a live gateway must include a full black-box test against a running gateway; see [`tests/live_gateway/`](tests/live_gateway/) for examples.\n- Green lint and tests before PR.\n- Don't push until asked.\n\n### Pre-Merge Validation Gate\n\nRun from the worktree root, in order. Each command must pass, or the PR must document a waiver, before the PR is ready:\n\n| Command | Validates |\n|---------|-----------|\n| `make ruff interrogate pylint` | Lint, docstring coverage, deeper static analysis |\n| `make test` | Full rstest suite |\n| `make coverage diff-cover` | Coverage of changed lines vs. base |\n| `make docker-nuke docker-prod testing-up` | Rebuilds and launches the production-style gateway stack |\n| `make test-e2e` | MCP protocol E2E and RBAC against the live gateway |\n| `make detect-secrets-scan` | No new secrets in files changed vs `main`; exits non-zero on live/unaudited findings (jq merge preserves out-of-scope audited entries; remediate with `make detect-secrets-audit`) |\n\nDistinct from the per-edit hygiene chain in *Essential Commands → Code Quality* (`make autoflake isort black pre-commit`, then `make ruff bandit interrogate pylint verify`): hygiene runs continuously; this gate runs once before declaring a PR ready.\n\n## Maintenance Guardrails (Brief)\n\n- Source of truth precedence: `mcpgateway/config.py` and runtime code > `Makefile` targets/dependencies > `.env.example` (dev overrides) > docs/comments.\n- When auditing repo state, prioritize active source directories and ignore transient/workbench content unless explicitly requested: `todo/`, `tmp/`, `artifacts/`, `logs/`, `coverage/`.\n- Avoid brittle numeric claims (counts of services/routers/middleware/plugins) unless you are actively validating and updating them in the same change; otherwise describe with approximate wording.\n\n## Important Constraints\n\n- Never mention AI assistants in PRs/diffs\n- Do not include test plans or effort estimates in PRs\n- Never create files unless absolutely necessary; prefer editing existing files\n- Never proactively create documentation files unless explicitly requested\n- Never commit secrets; use `.env` for configuration\n\n## Key Files\n\n- `README.md` - Canonical project overview and quick start\n- `mcpgateway/main.py` - Application entry point\n- `mcpgateway/config.py` - Environment configuration\n- `mcpgateway/db.py` - SQLAlchemy ORM models and session management\n- `mcpgateway/schemas.py` - Pydantic schemas\n- `pyproject.toml` - Project configuration\n- `Makefile` - Build automation\n- `.env.example` - Environment template\n\n## CLI Tools Available\n\n- `gh` for GitHub operations\n- `make` for build/test automation\n- `uv` for virtual environment management and for `uv tool run` linter invocations\n- Dev-group tools installed in the venv: `rstest`, `pytest`, `mypy`, `bandit`, `pre-commit`, etc. (see `pyproject.toml` `[dependency-groups]`)\n- Formatters and linters (`ruff`, `vulture`, `interrogate`, `radon`, `yamllint`, `tomlcheck`) are pinned in the `Makefile` and invoked on demand via `uv tool run`; always prefer the Makefile targets (`make black`, `make ruff`, etc.) over calling the underlying tools directly\n","CLAUDE.md":"# AGENTS.md\n\nGuidelines for AI coding assistants working with this repository.\n\nFor domain-specific guidance, see subdirectory AGENTS.md files:\n- `tests/AGENTS.md` - Testing conventions and workflows\n- `plugins/AGENTS.md` - Plugin framework and development\n- `charts/AGENTS.md` - Helm chart operations\n- `docs/AGENTS.md` - Documentation authoring\n\n**Note:** The `llms/` directory holds LLM guidance of two kinds: end-user runtime guidance for using ContextForge, and work prompts for agents changing this repository. Where `llms/` guidance overlaps an `AGENTS.md` file, the `AGENTS.md` file is authoritative.\n\n## Skills\n\nTask-specific guidance lives in `.agents/skills/`. `.bob/skills` links to that directory. Load the matching skill before you start the task:\n\n- `asd-ste100`: write or rewrite prose for humans (review findings, issue and PR text, commit bodies) in ASD-STE100 style.\n- `pr-review`: write review findings, assign severity, judge blocking criteria.\n- `alembic-migrations`: add or change a database model, column, or migration.\n- `observability-audit-sessions`: change trace, span, metric, or audit writes.\n- `secret-detection`: resolve a `detect-secrets` finding or `.secrets.baseline` change.\n- `github-issues`: create, label, or triage an issue.\n- `contextforge-web-ui`: run or configure the `web_ui` compose service.\n- `mcp-helpers`: generate a JWT or register an MCP server locally.\n\n## Project Overview\n\nContextForge is an open source registry and proxy that federates MCP, A2A, and REST/gRPC APIs with centralized governance, discovery, and observability. It federates tools, agents, and APIs, optimizes agent and tool calling, and supports plugins, auth/RBAC, rate-limiting, virtual servers, multi-transport protocols, and an optional Admin UI.\n\n## Project Structure\n\n```\nmcpgateway/                 # Core FastAPI application\n├── main.py                 # Application entry point\n├── config.py               # Environment configuration\n├── db.py                   # SQLAlchemy ORM models and session management\n├── schemas.py              # Pydantic validation schemas\n├── services/               # Business logic layer (50+ services)\n├── routers/                # HTTP endpoint definitions (19 routers)\n├── middleware/             # Cross-cutting concerns (16 middleware)\n├── transports/             # Protocol implementations (SSE, WebSocket, stdio, streamable HTTP)\n├── plugins/                # Plugin integration (uses cpex external package)\n└── alembic/                # Database migrations\n\ntests/                      # Test suite (see tests/AGENTS.md)\nplugins/                    # Plugin implementations (see plugins/AGENTS.md)\ncharts/                     # Helm charts (see charts/AGENTS.md)\ndocs/                       # Architecture and usage documentation (see docs/AGENTS.md)\na2a-agents/                 # A2A agent implementations (used for testing/examples)\nllms/                       # End-user LLM guidance (not for code agents)\n```\n\n## Essential Commands\n\n### Setup\n```bash\ncp .env.example .env && make install-dev check-env    # Complete setup\nmake venv                          # Create virtual environment with uv\nmake install-dev                   # Install with dev dependencies (includes build-ui)\nmake check-env                     # Verify .env against .env.example\nmake build-ui                      # Rebuild Admin UI JS bundle (requires npm)\n```\n\n### Development\n```bash\nmake dev                          # Dev server on :8000 with autoreload\nmake serve                        # Production gunicorn on :4444\nmake serve-ssl                    # HTTPS on :4444 (creates certs if needed)\n```\n\n### Code Quality\n```bash\n# After writing code\nmake pre-commit\n\n# Before committing, use ty, mypy and pyrefly to check just the new files, then run:\nmake ruff bandit interrogate pylint verify\n```\n\n## Authentication & RBAC Overview\n\nContextForge implements a **two-layer security model**:\n\n1. **Token Scoping (Layer 1)**: Controls what resources a user CAN SEE (data filtering)\n2. **RBAC (Layer 2)**: Controls what actions a user CAN DO (permission checks)\n\n### Token Scoping Quick Reference\n\n**API / legacy tokens** — JWT `teams` claim is the sole authority (`normalize_token_teams()`):\n\n| JWT `teams` State | `is_admin: true` | `is_admin: false` |\n|-------------------|------------------|-------------------|\n| Key MISSING | PUBLIC-ONLY `[]` | PUBLIC-ONLY `[]` |\n| `teams: null` | ADMIN BYPASS | PUBLIC-ONLY `[]` |\n| `teams: []` | PUBLIC-ONLY `[]` | PUBLIC-ONLY `[]` |\n| `teams: [\"t1\"]` | Team + Public | Team + Public |\n\n**Session tokens** (`token_use: \"session\"`) — DB is the authority; JWT `teams` only narrows (`resolve_session_teams()`):\n\n| JWT `teams` State | DB admin? | Result | Access Level |\n|-------------------|-----------|--------|--------------|\n| any | yes | `None` | ADMIN BYPASS (DB authority) |\n| Missing/null/`[]` | no | DB teams | Full DB membership |\n| `[\"t1\"]` | no | intersection | Narrowed to overlap |\n| `[\"revoked\"]` | no | `[]` | Public-only (fail-closed) |\n\n**Key behaviors:**\n\n- **API/legacy tokens**: Missing `teams` key = public-only access (secure default). Admin bypass requires BOTH `teams: null` AND `is_admin: true`. `normalize_token_teams()` in `mcpgateway/auth.py` is the single source of truth.\n- **Token creation defaults to the creator's personal team**: `POST /tokens` (and admin-delegated creation) with no `team_id` no longer mints a `teams: null` (public-only) token for non-admin callers. `TokenCatalogService.get_default_team_id()` resolves the caller's (or, for admin delegation, the target's) personal team and `routers/tokens.py::create_token` uses it when the caller belongs to that team; it falls back to single-team inheritance, then to `team_id=None` plus a `TokenCreateResponse.warnings` entry only when neither applies (no personal team and multiple/zero teams). Un-narrowed admins are exempt — `team_id=None` for them is a deliberate global-scope token. The permission-containment check (`_get_caller_permissions`) still uses the *requested* `team_id`, not the defaulted one, so this does not raise the ceiling on what `scope.permissions` a caller may request. Separately, `derive_token_team_id()` in `mcpgateway/auth.py` — the function that turns a single-team token's claim into `request.state.team_id` for RBAC/rate-limit/routing context — excludes personal teams, since a personal team auto-grants `team_admin`; a personal-team-scoped token instead falls through to `check_any_team`, matching how `PermissionService._get_user_roles` already treats personal teams.\n- **Session tokens**: Admin bypass is determined by the DB `is_admin` flag, not the JWT `teams` claim. Non-admin sessions can be narrowed via JWT `teams`. `resolve_session_teams()` in `mcpgateway/auth.py` is the single policy point.\n- **Layer 1 only**: Token scoping controls visibility (what you can see). RBAC (Layer 2) is evaluated independently — session-token narrowing does not restrict which team roles are checked for permissions.\n- **External IdP tokens**: identities provisioned from trusted external SSO providers (see `SSO_API_TOKEN_AUTH_ENABLED`) are dispatched through the session-token table above (`resolve_session_teams()`), not the API/legacy table — `is_admin`/`teams` come from the persisted local user record, never from the external token's claims.\n\n### Implementation Helpers\n\nLayer-1 derivation is centralized in `mcpgateway/auth_context.py`. Route handlers must call these rather than re-deriving the rule inline:\n\n- `get_scoped_resource_access_context(request, user)` → `(user_email, token_teams)` — the visibility scope to pass into service fetch/list/read calls. Admin bypass is signalled by `token_teams=None` while `user_email` is **kept**, so the service can still owner-match the admin's own private rows. Public-only is `(email, [])`.\n- `get_request_identity(request, user)` → `(user_email, is_admin)` — the requester's own identity, for audit capture and header masking. Use when you need the identity independent of the visibility scope.\n- `get_rpc_filter_context(request, user)` → `(user_email, token_teams, is_admin)` — the raw pre-rule triple. Reserved for the few sites that genuinely need `is_admin` or the un-normalized teams (auth-context forwarding, run-ownership capture, tool-execution authorization); these carry a `Layer-1 exception` comment naming the reason.\n\nThe derived triple is memoized on `request.state` per principal, so calling the scope and identity helpers together costs one derivation rather than two.\n\n### Security Invariants (Required)\n\n- Treat `public` as platform-public scope, not internet-anonymous scope.\n- Explicit exception: when `MCP_REQUIRE_AUTH` is `false`, unauthenticated `/mcp` requests are allowed with public-only visibility — **unless** the target virtual server has `oauth_enabled` set to `True`, in which case unauthenticated requests are rejected with 401 regardless of the global setting.\n- Keep the two-layer model on every path:\n  - Layer 1: token scoping controls what a caller can see.\n  - Layer 2: RBAC controls what a caller can do.\n- Do not re-implement token team interpretation logic; use `normalize_token_teams()` for API/legacy tokens and `resolve_session_teams()` for session tokens (both in `mcpgateway/auth.py`).\n- Do not re-implement Layer 1 token scope semantics; use `token_scope_grants()` in `mcpgateway/middleware/rbac.py`, the single policy point shared by the RBAC decorators and `TokenScopingMiddleware`. Empty token scopes mean \"inherit from RBAC at runtime\" (what `TokenCatalogService._generate_token()` emits for tokens created without an explicit scope) and must never be treated as deny-all; `*` grants everything and `<category>.*` grants that category.\n- Do not accept inbound client auth tokens via URL query parameters.\n- Legacy `INSECURE_ALLOW_QUERYPARAM_AUTH` is interop-only for outbound peer auth and must remain opt-in and host-restricted.\n- High-risk transports must be feature-flagged and disabled by default.\n- Transport/session endpoints must authenticate before session establishment (or message forwarding) and enforce RBAC before processing actions.\n- Token-scoped route authorization must be default-deny for unmapped protected paths.\n- Never trust client-provided ownership fields (`owner_email`, `team_id`, session owner); derive authorization from authenticated identity and server-side state.\n- Security-sensitive changes must include deny-path regression tests (unauthenticated, wrong team, insufficient permissions, feature disabled).\n- A `token-exchange` OAuth grant (RFC 8693 / On-Behalf-Of) exists for gateways; with it, the user's inbound JWT is exchanged with a trusted Authorization Server and **never forwarded upstream** — only the exchanged token is sent to the downstream MCP server.\n- `token_url` on a `token-exchange` gateway is an SSRF / egress boundary: the user's ContextForge JWT is POSTed to it as the `subject_token`, it is validated at config time, and creating or modifying token-exchange gateways is a privileged action.\n- Audit token-exchange operations via the structured logging sink with a `correlation_id`; never log raw subject tokens or exchanged tokens.\n\n#### UAID Cross-Gateway Security\n\n- UAID cross-gateway routing requires explicit domain allowlist (fail-closed default)\n- Empty `UAID_ALLOWED_DOMAINS` blocks all cross-gateway routing unless `UAID_ALLOW_ALL_DOMAINS=true`\n- Cross-gateway calls forward bearer tokens for RBAC enforcement on remote gateways\n- Both gateways must trust the same JWT issuer (shared `JWT_SECRET_KEY` or federated SSO)\n- `UAID_ALLOW_ALL_DOMAINS=true` is unsafe for production (bypasses allowlist validation)\n- Startup validation logs ERROR if A2A enabled but allowlist not configured\n- Remote gateway 401/403 responses raise `A2AAgentError` with troubleshooting guidance\n\n### Built-in Roles\n\n| Role | Scope | Key Permissions |\n|------|-------|-----------------|\n| `platform_admin` | global | `*` (all) |\n| `team_admin` | team | teams.*, tools.read/execute, resources.read |\n| `developer` | team | CRUD on gateways, servers, tools, resources, prompts, and A2A agents; execution/invocation; token self-service; dashboard access; team read/join |\n| `viewer` | team | tools.read/execute, resources.read |\n\nThe `developer` role includes gateway registration, update, and deletion.\nSee the [complete built-in permission table](docs/docs/manage/rbac.md#built-in-rbac-roles) before assigning this role.\n\n### Documentation\n\n- **Full RBAC guide**: `docs/docs/manage/rbac.md`\n- **Multi-tenancy architecture**: `docs/docs/architecture/multitenancy.md`\n- **OAuth token delegation**: `docs/docs/architecture/oauth-design.md`\n### User Identity Extraction\n\n**Canonical Email Precedence**: All user-email extraction helpers use a consistent **email-over-sub** precedence order to ensure forensic accuracy across visibility checks and audit logs:\n\n- When a user dict contains both `email` and `sub` keys, `email` takes precedence\n- The canonical implementation is `get_user_email()` in `mcpgateway/auth_context.py`\n- All other helpers (including `admin.get_user_email`) re-export or delegate to this canonical implementation\n- This ensures that the identity used for RBAC evaluation matches the identity logged in audit trails\n\n**Rationale**: The `email` field is the human-readable identifier used throughout AGENTS.md and user-facing documentation. Consistent precedence prevents forensic confusion where an incident review pivots on a logged email that differs from the principal actually evaluated by RBAC.\n\n**Two accessors**: `get_user_email()` in `mcpgateway/auth_context.py` is the e-mail-attribute accessor. `get_user_id()` in the same module is the identity accessor. Phase 1 populates both with the same value. Audit (`AuditTrail.user_id`) and observability (`ObservabilityTrace.user_email`) identity fields hold the canonical user_id from `get_user_id()`; the column names stay unchanged for compatibility. Routers compute `get_user_id(user)` and pass it to services as the `user_id` keyword; services keep `user_email` for ownership checks.\n\n\n## Separate-Session Writes\n\nObservability and audit writes use sessions separate from the request transaction. Never pass `db=db` to `AuditTrailService.log_action()` or `log_audit()`. Load the `observability-audit-sessions` skill before you change either write path.\n\n\n## Key Environment Variables\n\nDefaults come from `mcpgateway/config.py`. `.env.example` intentionally overrides a few for local/dev convenience.\n\n```bash\n# Core\nHOST=127.0.0.1                  # .env.example uses 0.0.0.0\nPORT=4444\nDATABASE_URL=sqlite:///./mcp.db   # or postgresql+psycopg://...\nREDIS_URL=redis://localhost:6379/0\nRELOAD=false\n\n# Auth\nJWT_SECRET_KEY=your-secret-key\nBASIC_AUTH_USER=admin\nBASIC_AUTH_PASSWORD=changeme        # pragma: allowlist secret\nAUTH_REQUIRED=true                   # Set false ONLY for development\nAUTH_ENCRYPTION_SECRET=             # REQUIRED: generate with: make init-secrets-patch-env  # pragma: allowlist secret\n\n# Features\nMCPGATEWAY_UI_ENABLED=false          # .env.example sets true\nMCPGATEWAY_ADMIN_API_ENABLED=false   # .env.example sets true\nMCPGATEWAY_A2A_ENABLED=true\nPLUGINS_ENABLED=false\nPLUGINS_CONFIG_FILE=plugins/config.yaml\n\n# Logging\nLOG_LEVEL=ERROR\nLOG_TO_FILE=false\nSTRUCTURED_LOGGING_DATABASE_ENABLED=false\n\n# Observability\nOBSERVABILITY_ENABLED=false\nOTEL_EXPORTER_OTLP_ENDPOINT=          # .env.example sets http://localhost:4317\n```\n\n## Technology Stack\n\n- **FastAPI** with **Pydantic** validation and **SQLAlchemy** ORM (Starlette ASGI)\n- **HTMX + Alpine.js** for admin UI\n- **SQLite** default, **PostgreSQL** support, **Redis** for caching/federation\n- **Alembic** for migrations\n\n### Synchronous SQLAlchemy in Async Handlers (Design Decision)\n\nThe codebase deliberately uses synchronous SQLAlchemy sessions (e.g. `SessionLocal().begin()`) inside async FastAPI handlers and ASGI middleware, relying on FastAPI's event-loop management to handle blocking operations. Do not flag this as a bug or attempt to convert individual call sites to async without a broader migration plan. This design decision may be revisited in the future alongside a potential migration to async database drivers.\n\n## Coding Standards\n\n- **Python >= 3.12** with type hints; strict mypy\n- **Formatting**: Ruff (line length 200)\n- **Linting**: Ruff (`E3`,`E4`,`E7`,`E9`,`F`,`D1`), Pylint per `pyproject.toml`\n- **Naming**: `snake_case` functions/modules, `PascalCase` classes, `UPPER_CASE` constants\n- **Imports**: Group per isort sections (stdlib, third-party, first-party `mcpgateway`, local)\n- **Readability**: *Clean Code* — implement per [`docs/docs/development/coding-standards.md`](docs/docs/development/coding-standards.md)\n\n### Code Comments\n\n- Comments are a last resort. Make the code self-documenting first: extract a function or rename a thing until the comment becomes redundant.\n- A comment earns its place only when code cannot express a durable constraint: security rationale, upstream workaround, dependency-pin reason.\n- Comments never carry transient implementation process or decisions. Decisions go to an ADR (`docs/docs/architecture/adr/`), process to the commit body, tasks to an issue.\n- Docstrings are API contract, not comments: Ruff `D1`/`D417` and interrogate enforce presence and parameter coverage; summary line first, then the contract.\n- Fix a comment in the same change that fixes its code.\n\n## Agent Prose (ASD-STE100)\n\nAll agent-authored prose follows the ASD-STE100 writing rules. The controlled dictionary is not enforced; domain, protocol, and code terms count as technical names.\n\n- One instruction per sentence: 20 words or fewer for instructions, 25 for description.\n- Active voice, present tense. Imperative for instructions: \"Add a test\", never \"a test should be added\".\n- One word, one meaning: a token stays a token, never also a credential or a key.\n- Positive constructions. No hedging (\"worth considering\"), no idioms.\n- Technical names verbatim: `normalize_token_teams()`, `DB_POOL_SIZE`, `QueuePool limit exceeded`.\n\nCovers code comments and docstrings, commit bodies, PR descriptions, review findings, issue bodies and comments, CHANGELOG entries. Exempt: identifiers, log and error strings, `docs/` prose, ephemeral working notes.\n\nApply the `asd-ste100` skill (STE-flavored mode) to rewrite prose. Full rules and worked examples per artifact: [`docs/docs/development/agent-prose.md`](docs/docs/development/agent-prose.md).\n\n## Commit & PR Standards\n\n- **Sign commits**: `git commit -s` (DCO requirement). Preserve sign-off on rewritten commits (rebases, conflict resolutions).\n- **Conventional Commits**: `feat:`, `fix:`, `docs:`, `refactor:`, `chore:`. Subjects keep that format; bodies follow *Agent Prose*.\n- **Link issues**: `Closes #123`\n- Include tests for behavior changes.\n- Every PR whose behavior can be exercised through a live gateway must include a full black-box test against a running gateway; see [`tests/live_gateway/`](tests/live_gateway/) for examples.\n- Green lint and tests before PR.\n- Don't push until asked.\n\n### Pre-Merge Validation Gate\n\nRun from the worktree root, in order. Each command must pass, or the PR must document a waiver, before the PR is ready:\n\n| Command | Validates |\n|---------|-----------|\n| `make ruff interrogate pylint` | Lint, docstring coverage, deeper static analysis |\n| `make test` | Full rstest suite |\n| `make coverage diff-cover` | Coverage of changed lines vs. base |\n| `make docker-nuke docker-prod testing-up` | Rebuilds and launches the production-style gateway stack |\n| `make test-e2e` | MCP protocol E2E and RBAC against the live gateway |\n| `make detect-secrets-scan` | No new secrets in files changed vs `main`; exits non-zero on live/unaudited findings (jq merge preserves out-of-scope audited entries; remediate with `make detect-secrets-audit`) |\n\nDistinct from the per-edit hygiene chain in *Essential Commands → Code Quality* (`make autoflake isort black pre-commit`, then `make ruff bandit interrogate pylint verify`): hygiene runs continuously; this gate runs once before declaring a PR ready.\n\n## Maintenance Guardrails (Brief)\n\n- Source of truth precedence: `mcpgateway/config.py` and runtime code > `Makefile` targets/dependencies > `.env.example` (dev overrides) > docs/comments.\n- When auditing repo state, prioritize active source directories and ignore transient/workbench content unless explicitly requested: `todo/`, `tmp/`, `artifacts/`, `logs/`, `coverage/`.\n- Avoid brittle numeric claims (counts of services/routers/middleware/plugins) unless you are actively validating and updating them in the same change; otherwise describe with approximate wording.\n\n## Important Constraints\n\n- Never mention AI assistants in PRs/diffs\n- Do not include test plans or effort estimates in PRs\n- Never create files unless absolutely necessary; prefer editing existing files\n- Never proactively create documentation files unless explicitly requested\n- Never commit secrets; use `.env` for configuration\n\n## Key Files\n\n- `README.md` - Canonical project overview and quick start\n- `mcpgateway/main.py` - Application entry point\n- `mcpgateway/config.py` - Environment configuration\n- `mcpgateway/db.py` - SQLAlchemy ORM models and session management\n- `mcpgateway/schemas.py` - Pydantic schemas\n- `pyproject.toml` - Project configuration\n- `Makefile` - Build automation\n- `.env.example` - Environment template\n\n## CLI Tools Available\n\n- `gh` for GitHub operations\n- `make` for build/test automation\n- `uv` for virtual environment management and for `uv tool run` linter invocations\n- Dev-group tools installed in the venv: `rstest`, `pytest`, `mypy`, `bandit`, `pre-commit`, etc. (see `pyproject.toml` `[dependency-groups]`)\n- Formatters and linters (`ruff`, `vulture`, `interrogate`, `radon`, `yamllint`, `tomlcheck`) are pinned in the `Makefile` and invoked on demand via `uv tool run`; always prefer the Makefile targets (`make black`, `make ruff`, etc.) over calling the underlying tools directly\n","charts/AGENTS.md":"# charts/AGENTS.md\n\nHelm chart development guidance for AI coding assistants.\n\n## Chart Structure\n\n```\ncharts/\n├── README.md\n└── mcp-stack/              # Main Helm chart\n    ├── Chart.yaml          # Chart metadata\n    ├── values.yaml         # Default configuration\n    ├── values.schema.json  # JSON Schema for validation\n    ├── Makefile            # Developer automation\n    ├── README.md           # Generated chart docs\n    ├── CHANGELOG.md        # Version history\n    ├── CONTRIBUTING.md     # Contribution guidelines\n    └── templates/          # Kubernetes manifests\n        ├── _helpers.tpl    # Template helpers\n        ├── deployment-*.yaml\n        ├── service-*.yaml\n        ├── configmap-*.yaml\n        ├── secret-*.yaml\n        ├── ingress.yaml\n        ├── hpa-*.yaml\n        └── NOTES.txt\n```\n\n## Prerequisites\n\n- `helm` (3.14+)\n- `kubectl` with configured context\n- Optional: `helm-docs`, `yamllint`, `kubeval`, `ajv-cli`, `cosign`\n\n## Quick Commands\n\nFrom `charts/mcp-stack/`:\n\n```bash\n# Info\nmake info                     # Print chart/app versions\nmake version                  # Print chart version\n\n# Lint & Validate\nmake lint                     # helm lint --strict\nmake lint-yaml                # yamllint (if available)\nmake lint-values              # Validate values against schema\nmake validate-all             # Run all lint steps\n\n# Template & Dry-run\nmake test-template            # Render templates → tmp/rendered.yaml\nmake test-template-values     # Render with my-values.yaml\nmake test-dry-run             # helm install --dry-run --debug\nmake test-kubeval             # Validate manifests with kubeval\nmake test-all                 # Template + dry-run + kubeval\n\n# Install/Upgrade\nmake install                  # Install with defaults\nmake install-dev              # Install with my-values.yaml\nmake upgrade                  # Upgrade release\nmake upgrade-dev              # Upgrade with my-values.yaml\nmake uninstall                # Uninstall and wait\n\n# Debug\nmake status                   # Release status\nmake history                  # Release history\nmake rollback                 # Rollback release\nmake debug                    # Context, releases, resources\nmake describe                 # Describe chart resources\nmake logs                     # Show pod logs\nmake logs-follow              # Follow pod logs\nmake port-forward             # Forward localhost:4444 → service:80\nmake shell                    # Interactive shell into gateway\n\n# Package & Registry\nmake package                  # Package to dist/\nmake push                     # Push to OCI registry\nmake sign                     # Sign with cosign\n\n# Docs & Schema\nmake docs                     # Generate README via helm-docs\nmake schema                   # Generate values.schema.json\nmake schema-validate          # Validate values against schema\n```\n\n## Common Workflows\n\n### Local Validation\n```bash\ncd charts/mcp-stack\nmake validate-all\nmake test-template\nmake test-dry-run  # Optional\n```\n\n### First-time Install\n```bash\nNAMESPACE=mcp-dev RELEASE_NAME=mcp-dev make install\n# Or with custom values:\n# Create my-values.yaml, then:\nmake install-dev\n```\n\n### Upgrade\n```bash\nmake upgrade-dev  # Uses my-values.yaml if present\n```\n\n### Debug\n```bash\nmake status\nmake logs\nmake port-forward  # Then browse http://localhost:4444\n```\n\n## Values Override Example\n\nCreate `my-values.yaml`:\n\n```yaml\nmcpContextForge:\n  image:\n    tag: \"latest\"\n    pullPolicy: IfNotPresent\n  ingress:\n    enabled: true\n    className: nginx\n    host: gateway.local\n  config:\n    DEV_MODE: \"true\"\n    RELOAD: \"false\"\n  secret:\n    BASIC_AUTH_USER: admin\n    BASIC_AUTH_PASSWORD: changeme\n    JWT_SECRET_KEY: my-test-key-but-now-longer-than-32-bytes\n\npostgres:\n  enabled: true\n  credentials:\n    user: admin\n    password: test123\n  persistence:\n    storageClassName: standard\n    size: 5Gi\n\nredis:\n  enabled: true\n```\n\n## Security\n\n- Use `mcpContextForge.secret.*` for auth settings in dev\n- Prefer external `Secret` objects for production\n- Configure TLS at ingress or service mesh\n- Never commit secrets to values files\n\n## CI/CD\n\n```bash\n# In pipelines\nmake lint\nmake validate-all\n\n# On tagged releases\nmake package push\n\n# Optional signing\nmake sign\n```\n\n## Troubleshooting\n\n```bash\n# Inspect applied values\nhelm get values <release> -n <namespace>\n\n# Inspect manifests\nhelm get manifest <release> -n <namespace>\n\n# Check events\nkubectl describe pod <pod> -n <namespace>\nkubectl describe ingress <ingress> -n <namespace>\n```\n\n## Key Files\n\n- `Chart.yaml` - Chart metadata, versions, dependencies\n- `values.yaml` - All configurable values with defaults\n- `values.schema.json` - JSON Schema for values validation\n- `templates/_helpers.tpl` - Reusable template functions\n- `Makefile` - Developer automation commands\n","docs/AGENTS.md":"# docs/AGENTS.md\n\nDocumentation authoring guidance for AI coding assistants.\n\nThis directory contains the project's architecture and usage documentation built with MkDocs.\n\n## Directory Structure\n\n```\ndocs/\n├── mkdocs.yml          # MkDocs configuration\n├── base.yml            # Base configuration\n├── Makefile            # Doc build automation\n├── requirements.txt    # Doc dependencies\n├── theme/              # Custom theme assets\n└── docs/               # Documentation content\n    ├── index.md        # Home page\n    ├── architecture/   # System design, ADRs, plugins, security\n    ├── deployment/     # Docker, K8s, cloud guides\n    ├── development/    # Developer guides, building, testing\n    ├── manage/         # Operations, API usage, logging, scaling\n    ├── using/          # User guides (agents, clients, servers)\n    ├── testing/        # Test guides, performance, fuzzing\n    ├── best-practices/ # Best practice guides\n    ├── tutorials/      # Step-by-step tutorials\n    ├── overview/       # Project overview\n    ├── faq/            # FAQ\n    └── coverage/       # Generated coverage reports\n```\n\n## Quick Commands\n\nFrom `docs/` directory:\n\n```bash\n# Install dependencies\npip install -r requirements.txt\n\n# Build docs\nmake build                # Build static site\n\n# Serve locally\nmake serve                # Serve at http://localhost:8003 (configured in docs/base.yml)\n\n# Clean\nmake clean                # Remove build artifacts\n```\n\nFrom repository root:\n\n```bash\nmake docs                 # Build documentation\n# For local serving, run from docs/:\n#   cd docs && make serve\n```\n\n## Writing Documentation\n\n### File Location\n\nPlace documentation in the appropriate subdirectory:\n\n| Topic | Directory |\n|-------|-----------|\n| System design, ADRs | `docs/architecture/` |\n| Deployment guides | `docs/deployment/` |\n| Developer guides | `docs/development/` |\n| Operations guides | `docs/manage/` |\n| User guides | `docs/using/` |\n| Test documentation | `docs/testing/` |\n\n### Markdown Conventions\n\n- Use ATX-style headers (`#`, `##`, `###`)\n- Include front matter for navigation title if needed\n- Use fenced code blocks with language hints\n- Keep lines under 120 characters when practical\n\n### Code Examples\n\nUse fenced code blocks with language identifier:\n\n```python\nfrom mcpgateway import Gateway\n\ngateway = Gateway()\ngateway.start()\n```\n\n### Admonitions\n\n```markdown\n!!! note\n    This is a note.\n\n!!! warning\n    This is a warning.\n\n!!! tip\n    This is a tip.\n```\n\n### Internal Links\n\n```markdown\nSee [Configuration Reference](manage/configuration.md) for details.\nSee [Architecture Overview](architecture/index.md).\n```\n\n## Architecture Decision Records (ADRs)\n\nADRs live in `docs/architecture/adr/` and follow the [adr.github.io](https://adr.github.io/) format (`# ADR-NNN: Title`, Status/Date/Deciders front material, then Context / Decision / Consequences). Each ADR captures a decision as it stood at a point in time — treat them as a historical record, not living documentation.\n\n### Authoring a New ADR\n\n1. Create `docs/architecture/adr/NNN-short-title.md` with the next sequential number (check `adr/index.md` for the current maximum).\n2. Add a row to the table in `docs/architecture/adr/index.md` (chronological order, per the footer note there).\n3. Add a nav entry in `docs/docs/architecture/adr/.pages` (see *Navigation* below).\n4. Statuses in use: `Draft`, `Proposed`, `Accepted`, `Implemented`, `Deprecated`, `Superseded`.\n\n### Immutability of Accepted ADRs\n\nAn **Accepted** (or Implemented) ADR is frozen. Do not rewrite its Context, Decision, or Consequences to reflect later changes — doing so erases the record of why the decision was made. The only permitted edits to an accepted ADR are:\n\n- **Front material updates** — most commonly the Status line (e.g. `Accepted` → `Superseded by ADR-NNN`).\n- **Footnotes or pointer notes** — a short note (typically a `!!! warning` admonition at the top, as in ADR-038) recording where the ADR has been referenced, altered, or superseded. Keep these additive; never edit the original body text.\n\n### Changing or Reversing a Decision\n\nWhen a decision recorded in an ADR no longer holds:\n\n1. **Write a new ADR** capturing the new decision, its context, and why the old one no longer applies. Reference the superseded ADR by number.\n2. **Update the old ADR's status** to `Superseded by ADR-NNN` and add a pointer note at the top directing readers to the new ADR.\n3. **Update the status in `adr/index.md`** for both records.\n\nNever silently modify or delete an ADR whose decision has been abandoned — the trail from old decision to new is part of the project's institutional memory.\n\n## Navigation\n\nNavigation is configured in `mkdocs.yml`. When adding new pages:\n\n1. Create the markdown file in the appropriate directory\n2. Add an entry to the `nav` section in `mkdocs.yml`\n\n## API Documentation\n\nAPI documentation is auto-generated from OpenAPI schema:\n- Swagger UI: `http://localhost:4444/docs`\n- OpenAPI JSON: `http://localhost:4444/openapi.json`\n\n## Coverage Reports\n\nCoverage reports are generated to `docs/docs/coverage/`:\n\n```bash\nmake htmlcov              # Generate HTML coverage report\n```\n\n## Key Documentation Pages\n\n- `docs/development/developer-onboarding.md` - New contributor guide\n- `docs/development/building.md` - Build system and testing\n- `docs/manage/api-usage.md` - REST API guide\n- `docs/architecture/index.md` - Architecture overview\n- `docs/architecture/adr/` - Architecture Decision Records\n\n## Important Notes\n\n- Do not create documentation files unless explicitly requested\n- Prefer editing existing files over creating new ones\n- Keep documentation up-to-date with code changes\n- Use relative links for internal references\n",".agents/skills/asd-ste100/SKILL.md":"---\nname: asd-ste100\ndescription: \"Use when English text must be parsed without a human to resolve ambiguity — tool descriptions, error messages, inter-agent instructions, system prompts, status reports — and misreading has a real cost, or when text reads as dense, hedged, or easy to misparse. Triggers: disambiguate, STE100 rewrite, apply Simplified Technical English, plain-language rewrite, controlled-language rewrite, rewrite so an agent cannot misread this. Not for creative or marketing copy.\"\nversion: 0.4.0\n---\n\n# Simplified Technical English (ASD-STE100)\n\nASD-STE100 is a controlled-language standard built by the aerospace and defense industry (ASD, the AeroSpace and Defense Industries Association of Europe) to stop maintenance technicians from misreading English instructions. The standard removes the two biggest sources of misreading: words with more than one meaning, and sentences with more than one possible structure.\n\nThis skill borrows that same discipline for a different reader: an **AI agent or a downstream system** that has to parse an English string — an error message, a tool description, an inter-agent instruction, a status report — without a human in the loop to resolve ambiguity. If a maintenance technician can misread \"close the valve\" as an adjective (\"the valve that is near\") instead of a command, so can a language model.\n\n## When to Use This Skill\n\n- An agent's output (explanation, instruction, log message, tool description) reads as dense, jargon-heavy, or ambiguous.\n- Text will be consumed by another agent, a translation pipeline, or a non-native English reader, and misparsing has a real cost.\n- You are writing a prompt, system message, or tool description and want to remove ambiguity before a model ever sees it.\n- You want a **before/after** comparison showing exactly which rule was violated and how the rewrite fixes it. Ask for it — the default output is the rewritten text alone (see Output Format).\n\nThis skill is not for creative or marketing copy — STE is deliberately flat and literal. Do not apply it to text where voice, nuance, or persuasion is the point.\n\n## Two Modes\n\nPick a mode before rewriting. If the user does not say which, infer it from the text type. Keep the choice internal unless the user asks for the rule table (see Output Format).\n\n**Strict** — procedures, error messages, tool and function descriptions, inter-agent instructions, safety text. Anywhere a wrong reading has a cost. Apply every rule below, including the hard length caps and one-word-one-meaning discipline.\n\n**STE-flavored** — READMEs, PR descriptions, changelogs, explanatory prose. Apply the structural rules in full and treat the lexical rules as advisory (see Core Rewrite Rules for that split). In practice that means keeping the sentence length caps, active voice, simple tenses, no phrasal verbs, no semicolons, no nominalization and no marketing adjectives, while dropping the one-word-one-meaning lockdown: prose needs some range, and a strict rewrite of prose reads as a personality transplant rather than a clarification.\n\nThe two modes and the structural/lexical split are the same distinction seen from two directions. The split says which rules this skill can verify without ASD's dictionary. The modes say which of them to enforce for a given kind of text.\n\n## Source and Scope\n\nThis skill encodes the **rule categories** of ASD-STE100 Issue 9 (Jan 2025): 53 writing rules across 9 sections covering word choice, grammar, sentence structure, and style, backed by a dictionary of ~900 approved words (one meaning, one part of speech each) and ~1,200 words to avoid with suggested replacements. See `references/writing-rules.md` for the full rule summary and citations.\n\nIt does **not** reproduce ASD's ~900-word approved dictionary verbatim. ASD-STE100 is free to obtain, but it is not free to redistribute: Issue 9, page 2 states that \"no reproduction or publication of it, in whole or in part, shall be made without the written authority of an officer of ASD,\" and grants free reproduction rights only to eight listed categories (ASD/AIA/AIAC member associations and their member companies and customers, member-state defence ministries, A4A, airworthiness authorities, and universities and research institutes for educational purposes). This project is in none of them, so the dictionary stays out of this repo.\n\nInstead, this skill applies the *underlying principle* (pick the plainest, most common word available and use it the same way every time) rather than checking against a fixed word list. When exact ASD-approved wording matters (e.g. actual aircraft maintenance documentation), get the standard and check word-by-word against the real dictionary. Request it from the [official downloads page](https://www.asd-ste100.org/STE_downloads.html) — note that this is a request form that emails you a link, not a direct download.\n\n## Core Rewrite Rules\n\nSTE's rules divide into two kinds, and this skill can only fully deliver one of them. **Structural rules** are self-contained: they describe sentence shape, and you can apply them from the description alone. **Lexical rules** are defined entirely by the official ~900-word dictionary, which this skill deliberately does not reproduce (see Source and Scope). Without that dictionary, the lexical rules degrade from a checkable standard into a preference for plain words.\n\nApply the structural rules with confidence. Apply the lexical rules as a direction of travel, and say so in your output rather than implying dictionary compliance you cannot verify.\n\n### Structural rules — apply these\n\n| Rule | Do | Don't |\n|---|---|---|\n| Active voice | \"The agent deletes the file.\" | \"The file is deleted (by the agent).\" — unless the actor is genuinely unknown or irrelevant |\n| No phrasal verbs (Rule 9.3) | \"Remove the panel.\" / \"Start the job.\" | \"Take off the panel.\" / \"Spin up the job.\" — a two-word verb has meanings the parts do not predict |\n| One instruction per sentence | \"Open the file. Read line 3.\" | \"Open the file and read line 3, then check if it matches.\" |\n| Sentence length | ≤20 words for instructions/procedures, ≤25 words for descriptions | Long compound/subordinate-clause sentences |\n| No semicolons (Rule 8.1) | Split into separate sentences | Any semicolon at all — STE bans the mark outright, not only as a clause join. (Rule 8.1 permits every other standard punctuation mark. The em dash is *not* banned by STE, though it often signals a sentence that should be split.) |\n| Noun clusters | ≤3 words stacked as a noun phrase (\"fuel pump valve\") | 4+ word noun stacks (\"high pressure fuel pump inlet valve assembly\") |\n| No ellipsis | Keep the subject, verb, and article explicit even if it reads longer | Drop words to save space (\"Files not backed up will be lost\" → ambiguous which files) |\n| Keep modality | \"The request **may have** failed.\" stays \"may have\" | Promote a hedge to a fact (\"The request failed.\") or invent a certainty the source did not state |\n| Paragraph limits | One topic per paragraph, ≤6 sentences | Multi-topic paragraphs |\n| Lists for sequences | Use a numbered or bulleted list for 3+ steps or conditions | Bury a sequence inside one prose sentence |\n\n### Lexical rules — direction of travel only\n\n| Rule | Do | Don't | Why it is weaker here |\n|---|---|---|---|\n| One word, one meaning | Pick one verb for one action and reuse it every time (e.g. always \"check\", never mix \"check\"/\"verify\"/\"confirm\" for the same action) | Rotate synonyms for the same idea across a document | Consistency within a document is checkable. Which word is the *approved* one is not, without the dictionary. |\n| One part of speech per word | \"Apply oil to the valve\" (oil = noun) | \"Oil the valve\" (oil = verb) | Whether \"oil\" is approved as a noun only is a dictionary fact. Prefer the noun form when both read equally well. Do not claim compliance. |\n| Verb, not noun (Rule 3.7) | \"Analyze the log.\" | \"Perform an analysis of the log.\" — a noun form of an action makes the sentence longer and hides who acts | Rule 3.7 says \"use an **approved** verb to describe an action.\" Preferring the verb form is safe to apply anywhere. Knowing which verb is the approved one needs the dictionary. |\n| Domain terms | Keep necessary technical nouns/verbs, but define them once if not common English (STE allows a project-specific glossary beyond its base dictionary) | Use jargon without ever defining it | The glossary allowance is real STE, but the base dictionary it extends is absent. |\n\n### Simple tenses — apply with one exception\n\nSTE permits infinitive, imperative, simple present, simple past, simple future, and past participle as adjective. It excludes present perfect and other compound forms: \"we received the report\", not \"we have received the report\".\n\nAircraft manuals never need present perfect, so the exclusion costs the standard nothing. Other text is not always so lucky. \"The job has completed\" (and its output is available now) and \"the job completed\" (at some past point) are different statements, and status text frequently needs the first. **Where the compound form carries information the simple form cannot — current relevance, or a hedge as in \"may have failed\" — keep it and flag the departure.** Elsewhere, follow the rule.\n\n## Scan Checklist\n\nThese six habits cover most of what makes machine-written English hard to parse. Each one is mechanical: you can point at the exact word or punctuation mark that breaks the rule, with no judgment call. Scan for all six before you rewrite anything.\n\n1. **Synonym rotation** — the same thing gets several names in one document (\"the user\", \"the customer\", \"the client\"). The reader cannot tell whether they are one thing or three. Fix: pick one name, use it every time.\n2. **Hedge stacking** — helper verbs and qualifiers pile up until the sentence asserts nothing (\"it is important to note that this may potentially help to improve\"). Fix: state the claim, or delete it.\n3. **Nominalization** — an action frozen into a noun (\"perform an analysis of\", \"provides assistance to\"). Fix: use the verb (\"analyze\", \"helps\").\n4. **Marketing adjectives** — words that claim quality instead of showing it: seamless, robust, powerful, cutting-edge, effortless, blazing-fast. Fix: delete, or replace with the measurement that earns the claim.\n5. **Run-on sentences** — several ideas joined by semicolons or em dashes. Fix: one idea per sentence.\n6. **Soft phrasal verbs** — spin up, reach out, dive into, kick off. Fix: use the single plain verb (start, contact, read, begin).\n\n## Process\n\n1. Pick the mode (Strict or STE-flavored). Say which only when the user asked for the rule table — see Output Format.\n2. Read the input text once for meaning — do not start rewriting before you understand what it must still say afterward.\n3. Walk it sentence by sentence. Flag every rule violation from the Core Rewrite Rules tables and every habit from the Scan Checklist. In STE-flavored mode, flag the lexical rules but do not enforce them. For a mechanical first pass over the structural rules, run `scripts/ste-lint.py` (stdin or file args, `--json` for structured output); it checks semicolons, sentence length, phrasal verbs, nominalization, marketing adjectives, synonym rotation, dangling-conjunction in supported list items, passive voice, and compound tenses, and by design never flags hedges or modality. `--baseline N` tolerates N hard violations (for adopting on existing docs); `--disable rule1,rule2` silences named rules.\n4. Rewrite each flagged sentence to fix the violation while preserving the original meaning exactly. If a rewrite would drop necessary precision (a safety condition, a scope qualifier, a number), keep the longer phrasing and flag it instead of silently simplifying.\n   - **Check modality before you commit to a rewrite.** Hedges (\"may\", \"could\", \"sometimes\", \"is likely to\") carry the author's confidence, and confidence is content. A shorter sentence that upgrades a hedge to a fact is not a simplification — it is a different claim. This is the most common way a well-intentioned STE rewrite goes wrong, because hedges are exactly what a length cap tempts you to cut.\n   - Never add a fact the source did not state. A rewrite that reads better because it supplies a cause, a frequency, or a mechanism has stopped being a rewrite.\n5. Output the rewritten text (see Output Format). Keep the mode choice and the rule analysis internal unless the user asked to see them.\n6. If the input already complies, say so — do not force changes onto compliant text.\n\n## Output Format\n\n**Default: the rewritten text, and nothing else.** Most callers want a result they can paste straight into a tool description, an error string, or a prompt. Print the simplified text on its own. Do not add a preamble about this skill, a mode announcement, a violation count, a summary of what changed, a rule table, or a closing offer to explain further.\n\nThe one permitted addition: if step 4 kept a longer phrasing on purpose, add a single line after the text, prefixed `Kept as-is:`, naming the phrase and the precision that would have been lost. Omit the line when there is nothing to report.\n\n**On request: the rule table.** When the user asks to see the reasoning — \"show the diff\", \"which rules did it break\", \"explain the changes\", \"before/after\" — output this table instead:\n\n```markdown\n| Rule violated | Original | Simplified |\n|---|---|---|\n| Present perfect tense | \"We have received your request.\" | \"We received your request.\" |\n| Noun cluster (4+ words) | \"the agent task queue priority handler\" | \"the handler that sets task-queue priority\" |\n\nMode: Strict. 7 violations found.\n```\n\nFollow the table with a one-line note on anything you deliberately did **not** simplify, and why (usually: simplifying would lose required precision).\n\n## Boundaries\n\n**Will:**\n- Rewrite ambiguous or dense English into short, single-meaning, active-voice sentences.\n- Return the rewritten text alone by default, and name the rules it applied when the user asks.\n- Preserve every fact, condition, and scope qualifier in the original.\n- Preserve the strength of every hedge, and add no claim the source did not make.\n- Suggest a one-line glossary entry for domain terms that must stay.\n\n**Will not:**\n- Reproduce ASD's official ~900-word dictionary as if it were memorized verbatim — always treat the official download as the source of truth for exact approved wording.\n- Simplify creative, marketing, or persuasive copy where voice and nuance are the point.\n- Silently drop a safety condition, exception, or scope qualifier to shorten a sentence — it will flag the trade-off instead.\n- Convert \"may have failed\" into \"failed\", or \"could be caused by X\" into \"X is the cause\" — losing a hedge changes the claim.\n- Guarantee an aerospace/defense-grade STE-compliant document. This is a general-purpose clarity tool inspired by STE, not a certified STE authoring tool.\n- Make weak content true or useful. STE fixes the *form* of a text, not its substance. A hollow paragraph rewritten under these rules becomes a clean, short, well-punctuated hollow paragraph. If the text has nothing to say, no rewrite fixes that — say so instead of polishing it.\n- Shorten past the point of clarity. Cutting words is not the goal. Removing ambiguity is the goal. Past a certain point compression starts costing the reader time rather than saving it, so stop when the sentence is unambiguous, not when it is shortest.\n\n## Additional Resources\n\n- **`references/writing-rules.md`** — fuller summary of the 9 rule sections and dictionary structure, with citations to the official standard and secondary sources.\n- **`examples/before-after.md`** — worked examples, including official STE examples and agent-output examples built for this skill.\n- **`scripts/ste-lint.py`** — deterministic, stdlib-only linter for the structural rules, including dangling-conjunction in supported list items, plus a synonym-rotation check (one word, one meaning) scoped per file. Exit 1 when hard violations exceed `--baseline` (default 0); advisory findings (passive voice, compound tenses) never fail the run; `--disable` silences named rules. It never flags hedges or modality: those are content, not style, and `--selftest` asserts that \"may have failed\" passes clean.\n",".agents/skills/secret-detection/SKILL.md":"---\nname: secret-detection\ndescription: Resolve a `detect-secrets` finding or a `.secrets.baseline` change. Use when `make detect-secrets-scan` fails, when you add a placeholder credential to docs or code, or when you resolve a baseline merge conflict.\n---\n\n# Secret Detection (detect-secrets)\n\nPrefer removing the trigger. Rewrite the line so it holds no credential-shaped value. Suppress only when the value must stay.\n\n## Suppress a False Positive\n\n- **Python files**: suppress inline with `# pragma: allowlist secret`. The finding then stays out of `.secrets.baseline` after `make detect-secrets-scan`.\n  - Exception: doctest strings where the comment breaks the assertion. Rely on `.secrets.baseline` and audit with `make detect-secrets-audit`.\n- **Makefile**: suppress audited false positives inline with `# pragma: allowlist secret`. In variable assignments, append the pragma directly after the value, with no space. Make keeps whitespace before a comment in the value.\n- **Markdown**: inside a fenced code block, append `# pragma: allowlist secret` to the line. In prose, append `<!-- pragma: allowlist secret -->`. Rewrite the line instead when the pragma would break a sample that readers copy verbatim.\n- **All other file types**: regenerate the baseline with `make detect-secrets-scan`.\n- **Merge conflicts**: resolve `.secrets.baseline` with the version from `main`.\n\n## Verify\n\nRun `make detect-secrets-scan`. It exits non-zero on live or unaudited findings. Remediate with `make detect-secrets-audit`. Done when the command exits zero and `.secrets.baseline` holds no entry for a line you suppressed or removed.\n",".agents/skills/github-issues/SKILL.md":"---\nname: github-issues\ndescription: Create, label, or triage a GitHub issue for this repository. Defines issue types, title style, label baseline, and lifecycle labels.\n---\n\n# GitHub Issues\n\n- Start from the matching template in `.github/ISSUE_TEMPLATE/`. The template sets the GitHub Issue Type (`Epic`, `Feature`, `Story`, `Task`, `Bug`). The template's sections define the body.\n- Hierarchy: an Epic holds Features, a Feature holds Stories, a Story holds Tasks. Link children with GitHub sub-issues on the parent. Bugs stand alone or nest anywhere in that chain.\n- Titles carry no type prefix. Write a plain imperative summary: `Gateway drops WebSocket sessions on restart`.\n- Labels carry no issue types. New issues start with `triage`. The Chore and Documentation templates also apply `chore` and `documentation`. Add 1-3 optional scope labels (`security`, `performance`, `ui`, `api`, `python`, `devops`, `a2a`, `mcp-protocol`).\n- The organization defines the issue type names. Template `type` values must match those names exactly.\n- Lifecycle labels: `awaiting-user` when blocked on reporter feedback, `blocked` for dependency blockers, `planned` when accepted but deferred, `fixed` only after the resolving change merges.\n- Bodies and comments follow *Agent Prose* in `AGENTS.md`. Before you post, rewrite them with the `asd-ste100` skill in STE-flavored mode. For public tone, see the `pr-review` skill, section *Tone*.\n","llms/api.md":"# llms - API Interface Contract & Specifications\n\nPath: `llms/api.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/llms/api.md)","plugins/AGENTS.md":"# plugins - AI Agent Protocol & Instructions\n\nPath: `plugins/AGENTS.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/AGENTS.md)","plugins/README.md":"# plugins Documentation\n\nPath: `plugins/README.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/README.md)","plugins/config-pii-guardian-policy.yaml":"# Plugins Skill\n\nPath: `plugins/config-pii-guardian-policy.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/config-pii-guardian-policy.yaml)","plugins/config.yaml":"# Plugins Skill\n\nPath: `plugins/config.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/config.yaml)","plugins/install.yaml":"# Plugins Skill\n\nPath: `plugins/install.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/install.yaml)","plugins/plugin_parity_config.yaml":"# Plugins Skill\n\nPath: `plugins/plugin_parity_config.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/plugin_parity_config.yaml)","plugins/primary_worker_multiinstance_config.yaml":"# Plugins Skill\n\nPath: `plugins/primary_worker_multiinstance_config.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/primary_worker_multiinstance_config.yaml)","tests/AGENTS.md":"# tests - AI Agent Protocol & Instructions\n\nPath: `tests/AGENTS.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/tests/AGENTS.md)",".github/tools/CLEANUP.md":"# Tools Skill\n\nPath: `.github/tools/CLEANUP.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/.github/tools/CLEANUP.md)","plugins/ai_artifacts_normalizer/README.md":"# ai_artifacts_normalizer Documentation\n\nPath: `plugins/ai_artifacts_normalizer/README.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/ai_artifacts_normalizer/README.md)","plugins/ai_artifacts_normalizer/plugin-manifest.yaml":"# Ai_artifacts_normalizer Skill\n\nPath: `plugins/ai_artifacts_normalizer/plugin-manifest.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/ai_artifacts_normalizer/plugin-manifest.yaml)","plugins/altk_json_processor/README.md":"# altk_json_processor Documentation\n\nPath: `plugins/altk_json_processor/README.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/altk_json_processor/README.md)","plugins/altk_json_processor/plugin-manifest.yaml":"# Altk_json_processor Skill\n\nPath: `plugins/altk_json_processor/plugin-manifest.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/altk_json_processor/plugin-manifest.yaml)","plugins/argument_normalizer/README.md":"# argument_normalizer Documentation\n\nPath: `plugins/argument_normalizer/README.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/argument_normalizer/README.md)","plugins/cached_tool_result/README.md":"# cached_tool_result Documentation\n\nPath: `plugins/cached_tool_result/README.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/cached_tool_result/README.md)","plugins/cached_tool_result/plugin-manifest.yaml":"# Cached_tool_result Skill\n\nPath: `plugins/cached_tool_result/plugin-manifest.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/cached_tool_result/plugin-manifest.yaml)","plugins/circuit_breaker/README.md":"# circuit_breaker Documentation\n\nPath: `plugins/circuit_breaker/README.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/circuit_breaker/README.md)","plugins/circuit_breaker/plugin-manifest.yaml":"# Circuit_breaker Skill\n\nPath: `plugins/circuit_breaker/plugin-manifest.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/circuit_breaker/plugin-manifest.yaml)","plugins/citation_validator/README.md":"# citation_validator Documentation\n\nPath: `plugins/citation_validator/README.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/citation_validator/README.md)","plugins/citation_validator/plugin-manifest.yaml":"# Citation_validator Skill\n\nPath: `plugins/citation_validator/plugin-manifest.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/citation_validator/plugin-manifest.yaml)","plugins/code_formatter/README.md":"# code_formatter Documentation\n\nPath: `plugins/code_formatter/README.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/code_formatter/README.md)","plugins/code_formatter/plugin-manifest.yaml":"# Code_formatter Skill\n\nPath: `plugins/code_formatter/plugin-manifest.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/code_formatter/plugin-manifest.yaml)","plugins/code_safety_linter/README.md":"# code_safety_linter Documentation\n\nPath: `plugins/code_safety_linter/README.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/code_safety_linter/README.md)","plugins/code_safety_linter/plugin-manifest.yaml":"# Code_safety_linter Skill\n\nPath: `plugins/code_safety_linter/plugin-manifest.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/code_safety_linter/plugin-manifest.yaml)","plugins/content_moderation/README.md":"# content_moderation Documentation\n\nPath: `plugins/content_moderation/README.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/content_moderation/README.md)","plugins/content_moderation/TESTING.md":"# Content_moderation Skill\n\nPath: `plugins/content_moderation/TESTING.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/content_moderation/TESTING.md)","plugins/content_moderation/plugin-manifest.yaml":"# Content_moderation Skill\n\nPath: `plugins/content_moderation/plugin-manifest.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/content_moderation/plugin-manifest.yaml)","plugins/deny_filter/README.md":"# deny_filter Documentation\n\nPath: `plugins/deny_filter/README.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/deny_filter/README.md)","plugins/deny_filter/plugin-manifest.yaml":"# Deny_filter Skill\n\nPath: `plugins/deny_filter/plugin-manifest.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/deny_filter/plugin-manifest.yaml)","plugins/external/config-stdio.yaml":"# External Skill\n\nPath: `plugins/external/config-stdio.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/external/config-stdio.yaml)","plugins/external/config.yaml":"# External Skill\n\nPath: `plugins/external/config.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/external/config.yaml)","plugins/file_type_allowlist/README.md":"# file_type_allowlist Documentation\n\nPath: `plugins/file_type_allowlist/README.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/file_type_allowlist/README.md)","plugins/file_type_allowlist/plugin-manifest.yaml":"# File_type_allowlist Skill\n\nPath: `plugins/file_type_allowlist/plugin-manifest.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/file_type_allowlist/plugin-manifest.yaml)","plugins/harmful_content_detector/README.md":"# harmful_content_detector Documentation\n\nPath: `plugins/harmful_content_detector/README.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/harmful_content_detector/README.md)","plugins/harmful_content_detector/plugin-manifest.yaml":"# Harmful_content_detector Skill\n\nPath: `plugins/harmful_content_detector/plugin-manifest.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/harmful_content_detector/plugin-manifest.yaml)","plugins/header_filter/README.md":"# header_filter Documentation\n\nPath: `plugins/header_filter/README.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/header_filter/README.md)","plugins/header_filter/config.yaml":"# Header_filter Skill\n\nPath: `plugins/header_filter/config.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/header_filter/config.yaml)","plugins/header_injector/README.md":"# header_injector Documentation\n\nPath: `plugins/header_injector/README.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/header_injector/README.md)","plugins/header_injector/plugin-manifest.yaml":"# Header_injector Skill\n\nPath: `plugins/header_injector/plugin-manifest.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/header_injector/plugin-manifest.yaml)","plugins/html_to_markdown/README.md":"# html_to_markdown Documentation\n\nPath: `plugins/html_to_markdown/README.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/html_to_markdown/README.md)","plugins/html_to_markdown/plugin-manifest.yaml":"# Html_to_markdown Skill\n\nPath: `plugins/html_to_markdown/plugin-manifest.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/html_to_markdown/plugin-manifest.yaml)","plugins/json_repair/README.md":"# json_repair Documentation\n\nPath: `plugins/json_repair/README.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/json_repair/README.md)","plugins/json_repair/plugin-manifest.yaml":"# Json_repair Skill\n\nPath: `plugins/json_repair/plugin-manifest.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/json_repair/plugin-manifest.yaml)","plugins/jwt_claims_extraction/README.md":"# jwt_claims_extraction Documentation\n\nPath: `plugins/jwt_claims_extraction/README.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/jwt_claims_extraction/README.md)","plugins/jwt_claims_extraction/plugin-manifest.yaml":"# Jwt_claims_extraction Skill\n\nPath: `plugins/jwt_claims_extraction/plugin-manifest.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/jwt_claims_extraction/plugin-manifest.yaml)","plugins/license_header_injector/README.md":"# license_header_injector Documentation\n\nPath: `plugins/license_header_injector/README.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/license_header_injector/README.md)","plugins/license_header_injector/plugin-manifest.yaml":"# License_header_injector Skill\n\nPath: `plugins/license_header_injector/plugin-manifest.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/license_header_injector/plugin-manifest.yaml)","plugins/markdown_cleaner/README.md":"# markdown_cleaner Documentation\n\nPath: `plugins/markdown_cleaner/README.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/markdown_cleaner/README.md)","plugins/markdown_cleaner/plugin-manifest.yaml":"# Markdown_cleaner Skill\n\nPath: `plugins/markdown_cleaner/plugin-manifest.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/markdown_cleaner/plugin-manifest.yaml)","plugins/privacy_notice_injector/README.md":"# privacy_notice_injector Documentation\n\nPath: `plugins/privacy_notice_injector/README.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/privacy_notice_injector/README.md)","plugins/privacy_notice_injector/plugin-manifest.yaml":"# Privacy_notice_injector Skill\n\nPath: `plugins/privacy_notice_injector/plugin-manifest.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/privacy_notice_injector/plugin-manifest.yaml)","plugins/regex_filter/README.md":"# regex_filter Documentation\n\nPath: `plugins/regex_filter/README.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/regex_filter/README.md)","plugins/regex_filter/plugin-manifest.yaml":"# Regex_filter Skill\n\nPath: `plugins/regex_filter/plugin-manifest.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/regex_filter/plugin-manifest.yaml)","plugins/resource_filter/README.md":"# resource_filter Documentation\n\nPath: `plugins/resource_filter/README.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/resource_filter/README.md)","plugins/resource_filter/plugin-manifest.yaml":"# Resource_filter Skill\n\nPath: `plugins/resource_filter/plugin-manifest.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/resource_filter/plugin-manifest.yaml)","plugins/response_cache_by_prompt/README.md":"# response_cache_by_prompt Documentation\n\nPath: `plugins/response_cache_by_prompt/README.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/response_cache_by_prompt/README.md)","plugins/response_cache_by_prompt/plugin-manifest.yaml":"# Response_cache_by_prompt Skill\n\nPath: `plugins/response_cache_by_prompt/plugin-manifest.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/response_cache_by_prompt/plugin-manifest.yaml)","plugins/robots_license_guard/README.md":"# robots_license_guard Documentation\n\nPath: `plugins/robots_license_guard/README.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/robots_license_guard/README.md)","plugins/robots_license_guard/plugin-manifest.yaml":"# Robots_license_guard Skill\n\nPath: `plugins/robots_license_guard/plugin-manifest.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/robots_license_guard/plugin-manifest.yaml)","plugins/safe_html_sanitizer/README.md":"# safe_html_sanitizer Documentation\n\nPath: `plugins/safe_html_sanitizer/README.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/safe_html_sanitizer/README.md)","plugins/safe_html_sanitizer/plugin-manifest.yaml":"# Safe_html_sanitizer Skill\n\nPath: `plugins/safe_html_sanitizer/plugin-manifest.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/safe_html_sanitizer/plugin-manifest.yaml)","plugins/schema_guard/README.md":"# schema_guard Documentation\n\nPath: `plugins/schema_guard/README.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/schema_guard/README.md)","plugins/schema_guard/plugin-manifest.yaml":"# Schema_guard Skill\n\nPath: `plugins/schema_guard/plugin-manifest.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/schema_guard/plugin-manifest.yaml)","plugins/span_attribute_customizer/README.md":"# span_attribute_customizer Documentation\n\nPath: `plugins/span_attribute_customizer/README.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/span_attribute_customizer/README.md)","plugins/sparc_static_validator/README.md":"# sparc_static_validator Documentation\n\nPath: `plugins/sparc_static_validator/README.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/sparc_static_validator/README.md)","plugins/sparc_static_validator/plugin-manifest.yaml":"# Sparc_static_validator Skill\n\nPath: `plugins/sparc_static_validator/plugin-manifest.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/sparc_static_validator/plugin-manifest.yaml)","plugins/summarizer/README.md":"# summarizer Documentation\n\nPath: `plugins/summarizer/README.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/summarizer/README.md)","plugins/summarizer/plugin-manifest.yaml":"# Summarizer Skill\n\nPath: `plugins/summarizer/plugin-manifest.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/summarizer/plugin-manifest.yaml)","plugins/timezone_translator/README.md":"# timezone_translator Documentation\n\nPath: `plugins/timezone_translator/README.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/timezone_translator/README.md)","plugins/timezone_translator/plugin-manifest.yaml":"# Timezone_translator Skill\n\nPath: `plugins/timezone_translator/plugin-manifest.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/timezone_translator/plugin-manifest.yaml)","plugins/tools_telemetry_exporter/README.md":"# tools_telemetry_exporter Documentation\n\nPath: `plugins/tools_telemetry_exporter/README.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/tools_telemetry_exporter/README.md)","plugins/tools_telemetry_exporter/plugin-manifest.yaml":"# Tools_telemetry_exporter Skill\n\nPath: `plugins/tools_telemetry_exporter/plugin-manifest.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/tools_telemetry_exporter/plugin-manifest.yaml)","plugins/toon_encoder/README.md":"# toon_encoder Documentation\n\nPath: `plugins/toon_encoder/README.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/toon_encoder/README.md)","plugins/toon_encoder/plugin-manifest.yaml":"# Toon_encoder Skill\n\nPath: `plugins/toon_encoder/plugin-manifest.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/toon_encoder/plugin-manifest.yaml)","plugins/unified_pdp/README.md":"# unified_pdp Documentation\n\nPath: `plugins/unified_pdp/README.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/unified_pdp/README.md)","plugins/unified_pdp/default_rules.json":"# Unified_pdp Skill\n\nPath: `plugins/unified_pdp/default_rules.json`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/unified_pdp/default_rules.json)","plugins/vault/README.md":"# vault Documentation\n\nPath: `plugins/vault/README.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/vault/README.md)","plugins/vault/config_vault_e2e.yaml":"# Vault Skill\n\nPath: `plugins/vault/config_vault_e2e.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/vault/config_vault_e2e.yaml)","plugins/vault/plugin-manifest.yaml":"# Vault Skill\n\nPath: `plugins/vault/plugin-manifest.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/vault/plugin-manifest.yaml)","plugins/virus_total_checker/README.md":"# virus_total_checker Documentation\n\nPath: `plugins/virus_total_checker/README.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/virus_total_checker/README.md)","plugins/virus_total_checker/plugin-manifest.yaml":"# Virus_total_checker Skill\n\nPath: `plugins/virus_total_checker/plugin-manifest.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/virus_total_checker/plugin-manifest.yaml)","plugins/watchdog/README.md":"# watchdog Documentation\n\nPath: `plugins/watchdog/README.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/watchdog/README.md)","plugins/watchdog/plugin-manifest.yaml":"# Watchdog Skill\n\nPath: `plugins/watchdog/plugin-manifest.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/watchdog/plugin-manifest.yaml)","plugins/webhook_notification/README.md":"# webhook_notification Documentation\n\nPath: `plugins/webhook_notification/README.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/webhook_notification/README.md)","plugins/webhook_notification/TESTING.md":"# Webhook_notification Skill\n\nPath: `plugins/webhook_notification/TESTING.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/webhook_notification/TESTING.md)","plugins/webhook_notification/plugin-manifest.yaml":"# Webhook_notification Skill\n\nPath: `plugins/webhook_notification/plugin-manifest.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/webhook_notification/plugin-manifest.yaml)","plugins/webhook_notification/test_config.yaml":"# Webhook_notification Skill\n\nPath: `plugins/webhook_notification/test_config.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/webhook_notification/test_config.yaml)",".agents/skills/asd-ste100/README.md":"# Asd-ste100 Skill\n\nPath: `.agents/skills/asd-ste100/README.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/.agents/skills/asd-ste100/README.md)","plugins/examples/custom_auth_example/README.md":"# custom_auth_example Documentation\n\nPath: `plugins/examples/custom_auth_example/README.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/examples/custom_auth_example/README.md)","plugins/examples/custom_auth_example/plugin-manifest.yaml":"# Custom_auth_example Skill\n\nPath: `plugins/examples/custom_auth_example/plugin-manifest.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/examples/custom_auth_example/plugin-manifest.yaml)","plugins/examples/simple_token_auth/README.md":"# simple_token_auth Documentation\n\nPath: `plugins/examples/simple_token_auth/README.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/examples/simple_token_auth/README.md)","plugins/examples/simple_token_auth/plugin-manifest.yaml":"# Simple_token_auth Skill\n\nPath: `plugins/examples/simple_token_auth/plugin-manifest.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/examples/simple_token_auth/plugin-manifest.yaml)","plugins/external/cedar/README.md":"# cedar Documentation\n\nPath: `plugins/external/cedar/README.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/external/cedar/README.md)","plugins/external/clamav_server/README.md":"# clamav_server Documentation\n\nPath: `plugins/external/clamav_server/README.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/external/clamav_server/README.md)","plugins/external/llmguard/README.md":"# llmguard Documentation\n\nPath: `plugins/external/llmguard/README.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/external/llmguard/README.md)","plugins/external/llmguard/docker-compose.yaml":"# Llmguard Skill\n\nPath: `plugins/external/llmguard/docker-compose.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/external/llmguard/docker-compose.yaml)","plugins/external/opa/README.md":"# opa Documentation\n\nPath: `plugins/external/opa/README.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/external/opa/README.md)","plugins/resources/server/config-http.yaml":"# Server Skill\n\nPath: `plugins/resources/server/config-http.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/resources/server/config-http.yaml)","plugins/resources/server/config-stdio.yaml":"# Server Skill\n\nPath: `plugins/resources/server/config-stdio.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/resources/server/config-stdio.yaml)","tests/performance/plugins/config.yaml":"# Plugins Skill\n\nPath: `tests/performance/plugins/config.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/tests/performance/plugins/config.yaml)",".agents/skills/asd-ste100/.claude-plugin/marketplace.json":"# Claude Plugin Marketplace Catalog\n\nPath: `.agents/skills/asd-ste100/.claude-plugin/marketplace.json`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/.agents/skills/asd-ste100/.claude-plugin/marketplace.json)",".agents/skills/asd-ste100/.claude-plugin/plugin.json":"# claude-plugin Plugin Manifest\n\nPath: `.agents/skills/asd-ste100/.claude-plugin/plugin.json`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/.agents/skills/asd-ste100/.claude-plugin/plugin.json)",".agents/skills/asd-ste100/examples/before-after.md":"# Examples Skill\n\nPath: `.agents/skills/asd-ste100/examples/before-after.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/.agents/skills/asd-ste100/examples/before-after.md)",".agents/skills/asd-ste100/examples/linter-edge-cases.md":"# Examples Skill\n\nPath: `.agents/skills/asd-ste100/examples/linter-edge-cases.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/.agents/skills/asd-ste100/examples/linter-edge-cases.md)",".agents/skills/asd-ste100/references/writing-rules.md":"# References Skill\n\nPath: `.agents/skills/asd-ste100/references/writing-rules.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/.agents/skills/asd-ste100/references/writing-rules.md)","docs/docs/architecture/plugins/gateway-hooks.md":"# Plugins Skill\n\nPath: `docs/docs/architecture/plugins/gateway-hooks.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/docs/docs/architecture/plugins/gateway-hooks.md)","docs/docs/architecture/plugins/security-hooks.md":"# Plugins Skill\n\nPath: `docs/docs/architecture/plugins/security-hooks.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/docs/docs/architecture/plugins/security-hooks.md)","docs/docs/using/agents/a2a.md":"# Subagent: a2a\n\nPath: `docs/docs/using/agents/a2a.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/docs/docs/using/agents/a2a.md)","docs/docs/using/agents/autogen.md":"# Subagent: autogen\n\nPath: `docs/docs/using/agents/autogen.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/docs/docs/using/agents/autogen.md)","docs/docs/using/agents/beeai.md":"# Subagent: beeai\n\nPath: `docs/docs/using/agents/beeai.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/docs/docs/using/agents/beeai.md)","docs/docs/using/agents/crewai.md":"# Subagent: crewai\n\nPath: `docs/docs/using/agents/crewai.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/docs/docs/using/agents/crewai.md)","docs/docs/using/agents/index.md":"# Subagent: index\n\nPath: `docs/docs/using/agents/index.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/docs/docs/using/agents/index.md)","docs/docs/using/agents/langchain.md":"# Subagent: langchain\n\nPath: `docs/docs/using/agents/langchain.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/docs/docs/using/agents/langchain.md)","docs/docs/using/agents/langgraph.md":"# Subagent: langgraph\n\nPath: `docs/docs/using/agents/langgraph.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/docs/docs/using/agents/langgraph.md)","docs/docs/using/agents/llamaindex.md":"# Subagent: llamaindex\n\nPath: `docs/docs/using/agents/llamaindex.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/docs/docs/using/agents/llamaindex.md)","docs/docs/using/agents/openai-sdk.md":"# Subagent: openai-sdk\n\nPath: `docs/docs/using/agents/openai-sdk.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/docs/docs/using/agents/openai-sdk.md)","docs/docs/using/agents/semantic-kernel.md":"# Subagent: semantic-kernel\n\nPath: `docs/docs/using/agents/semantic-kernel.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/docs/docs/using/agents/semantic-kernel.md)","docs/docs/using/plugins/grpc-transport.md":"# Plugins Skill\n\nPath: `docs/docs/using/plugins/grpc-transport.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/docs/docs/using/plugins/grpc-transport.md)","docs/docs/using/plugins/http-auth-hooks.md":"# Plugins Skill\n\nPath: `docs/docs/using/plugins/http-auth-hooks.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/docs/docs/using/plugins/http-auth-hooks.md)","docs/docs/using/plugins/index.md":"# Plugins Skill\n\nPath: `docs/docs/using/plugins/index.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/docs/docs/using/plugins/index.md)","docs/docs/using/plugins/lifecycle.md":"# Plugins Skill\n\nPath: `docs/docs/using/plugins/lifecycle.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/docs/docs/using/plugins/lifecycle.md)","docs/docs/using/plugins/migration-to-cpex.md":"# Plugins Skill\n\nPath: `docs/docs/using/plugins/migration-to-cpex.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/docs/docs/using/plugins/migration-to-cpex.md)","docs/docs/using/plugins/mtls.md":"# Plugins Skill\n\nPath: `docs/docs/using/plugins/mtls.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/docs/docs/using/plugins/mtls.md)","docs/docs/using/plugins/plugins.md":"# Plugins Skill\n\nPath: `docs/docs/using/plugins/plugins.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/docs/docs/using/plugins/plugins.md)","docs/docs/using/plugins/unix-socket-transport.md":"# Plugins Skill\n\nPath: `docs/docs/using/plugins/unix-socket-transport.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/docs/docs/using/plugins/unix-socket-transport.md)","plugins/external/cedar/cedarpolicyplugin/plugin-manifest.yaml":"# Cedarpolicyplugin Skill\n\nPath: `plugins/external/cedar/cedarpolicyplugin/plugin-manifest.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/external/cedar/cedarpolicyplugin/plugin-manifest.yaml)","plugins/external/cedar/examples/config-cedar.yaml":"# Examples Skill\n\nPath: `plugins/external/cedar/examples/config-cedar.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/external/cedar/examples/config-cedar.yaml)","plugins/external/cedar/examples/config-dsl.yaml":"# Examples Skill\n\nPath: `plugins/external/cedar/examples/config-dsl.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/external/cedar/examples/config-dsl.yaml)","plugins/external/llmguard/examples/config-all-in-one.yaml":"# Examples Skill\n\nPath: `plugins/external/llmguard/examples/config-all-in-one.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/external/llmguard/examples/config-all-in-one.yaml)","plugins/external/llmguard/examples/config-complex-policy.yaml":"# Examples Skill\n\nPath: `plugins/external/llmguard/examples/config-complex-policy.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/external/llmguard/examples/config-complex-policy.yaml)","plugins/external/llmguard/examples/config-input-output-filter.yaml":"# Examples Skill\n\nPath: `plugins/external/llmguard/examples/config-input-output-filter.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/external/llmguard/examples/config-input-output-filter.yaml)","plugins/external/llmguard/examples/config-input-output-sanitizer.yaml":"# Examples Skill\n\nPath: `plugins/external/llmguard/examples/config-input-output-sanitizer.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/external/llmguard/examples/config-input-output-sanitizer.yaml)","plugins/external/llmguard/examples/config-separate-plugins-filters-sanitizers.yaml":"# Examples Skill\n\nPath: `plugins/external/llmguard/examples/config-separate-plugins-filters-sanitizers.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/external/llmguard/examples/config-separate-plugins-filters-sanitizers.yaml)","plugins/external/llmguard/llmguardplugin/plugin-manifest.yaml":"# Llmguardplugin Skill\n\nPath: `plugins/external/llmguard/llmguardplugin/plugin-manifest.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/external/llmguard/llmguardplugin/plugin-manifest.yaml)","plugins/external/opa/opapluginfilter/plugin-manifest.yaml":"# Opapluginfilter Skill\n\nPath: `plugins/external/opa/opapluginfilter/plugin-manifest.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/external/opa/opapluginfilter/plugin-manifest.yaml)","tests/performance/payloads/tools/convert_time.json":"# Tools Skill\n\nPath: `tests/performance/payloads/tools/convert_time.json`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/tests/performance/payloads/tools/convert_time.json)","tests/performance/payloads/tools/get_system_time.json":"# Tools Skill\n\nPath: `tests/performance/payloads/tools/get_system_time.json`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/tests/performance/payloads/tools/get_system_time.json)","tests/performance/payloads/tools/list_tools.json":"# Tools Skill\n\nPath: `tests/performance/payloads/tools/list_tools.json`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/tests/performance/payloads/tools/list_tools.json)","plugins/external/cedar/resources/plugins/config.yaml":"# Plugins Skill\n\nPath: `plugins/external/cedar/resources/plugins/config.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/external/cedar/resources/plugins/config.yaml)","plugins/external/cedar/resources/runtime/config.yaml":"# Runtime Skill\n\nPath: `plugins/external/cedar/resources/runtime/config.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/external/cedar/resources/runtime/config.yaml)","plugins/external/clamav_server/resources/plugins/config.yaml":"# Plugins Skill\n\nPath: `plugins/external/clamav_server/resources/plugins/config.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/external/clamav_server/resources/plugins/config.yaml)","plugins/external/llmguard/resources/plugins/config.yaml":"# Plugins Skill\n\nPath: `plugins/external/llmguard/resources/plugins/config.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/external/llmguard/resources/plugins/config.yaml)","plugins/external/llmguard/resources/runtime/config.yaml":"# Runtime Skill\n\nPath: `plugins/external/llmguard/resources/runtime/config.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/external/llmguard/resources/runtime/config.yaml)","plugins/external/opa/resources/plugins/config.yaml":"# Plugins Skill\n\nPath: `plugins/external/opa/resources/plugins/config.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/external/opa/resources/plugins/config.yaml)","plugins/external/opa/resources/runtime/config.yaml":"# Runtime Skill\n\nPath: `plugins/external/opa/resources/runtime/config.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/external/opa/resources/runtime/config.yaml)","tests/unit/mcpgateway/plugins/fixtures/install.yaml":"# Fixtures Skill\n\nPath: `tests/unit/mcpgateway/plugins/fixtures/install.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/tests/unit/mcpgateway/plugins/fixtures/install.yaml)","tests/unit/mcpgateway/plugins/fixtures/configs/agent_context.yaml":"# Configs Skill\n\nPath: `tests/unit/mcpgateway/plugins/fixtures/configs/agent_context.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/tests/unit/mcpgateway/plugins/fixtures/configs/agent_context.yaml)","tests/unit/mcpgateway/plugins/fixtures/configs/agent_filter.yaml":"# Configs Skill\n\nPath: `tests/unit/mcpgateway/plugins/fixtures/configs/agent_filter.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/tests/unit/mcpgateway/plugins/fixtures/configs/agent_filter.yaml)","tests/unit/mcpgateway/plugins/fixtures/configs/agent_passthrough.yaml":"# Configs Skill\n\nPath: `tests/unit/mcpgateway/plugins/fixtures/configs/agent_passthrough.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/tests/unit/mcpgateway/plugins/fixtures/configs/agent_passthrough.yaml)","tests/unit/mcpgateway/plugins/fixtures/configs/context_multiplugins.yaml":"# Configs Skill\n\nPath: `tests/unit/mcpgateway/plugins/fixtures/configs/context_multiplugins.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/tests/unit/mcpgateway/plugins/fixtures/configs/context_multiplugins.yaml)","tests/unit/mcpgateway/plugins/fixtures/configs/context_plugin.yaml":"# Configs Skill\n\nPath: `tests/unit/mcpgateway/plugins/fixtures/configs/context_plugin.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/tests/unit/mcpgateway/plugins/fixtures/configs/context_plugin.yaml)","tests/unit/mcpgateway/plugins/fixtures/configs/context_stdio_external_plugins.yaml":"# Configs Skill\n\nPath: `tests/unit/mcpgateway/plugins/fixtures/configs/context_stdio_external_plugins.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/tests/unit/mcpgateway/plugins/fixtures/configs/context_stdio_external_plugins.yaml)","tests/unit/mcpgateway/plugins/fixtures/configs/cross_hook_context.yaml":"# Configs Skill\n\nPath: `tests/unit/mcpgateway/plugins/fixtures/configs/cross_hook_context.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/tests/unit/mcpgateway/plugins/fixtures/configs/cross_hook_context.yaml)","tests/unit/mcpgateway/plugins/fixtures/configs/error_plugin.yaml":"# Configs Skill\n\nPath: `tests/unit/mcpgateway/plugins/fixtures/configs/error_plugin.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/tests/unit/mcpgateway/plugins/fixtures/configs/error_plugin.yaml)","tests/unit/mcpgateway/plugins/fixtures/configs/error_plugin_raise_error_false.yaml":"# Configs Skill\n\nPath: `tests/unit/mcpgateway/plugins/fixtures/configs/error_plugin_raise_error_false.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/tests/unit/mcpgateway/plugins/fixtures/configs/error_plugin_raise_error_false.yaml)","tests/unit/mcpgateway/plugins/fixtures/configs/error_stdio_external_plugin.yaml":"# Configs Skill\n\nPath: `tests/unit/mcpgateway/plugins/fixtures/configs/error_stdio_external_plugin.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/tests/unit/mcpgateway/plugins/fixtures/configs/error_stdio_external_plugin.yaml)","tests/unit/mcpgateway/plugins/fixtures/configs/init_hooks_plugins_test.yaml":"# Configs Skill\n\nPath: `tests/unit/mcpgateway/plugins/fixtures/configs/init_hooks_plugins_test.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/tests/unit/mcpgateway/plugins/fixtures/configs/init_hooks_plugins_test.yaml)","tests/unit/mcpgateway/plugins/fixtures/configs/invalid_single_plugin.yaml":"# Configs Skill\n\nPath: `tests/unit/mcpgateway/plugins/fixtures/configs/invalid_single_plugin.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/tests/unit/mcpgateway/plugins/fixtures/configs/invalid_single_plugin.yaml)","tests/unit/mcpgateway/plugins/fixtures/configs/test_hook_patterns_config.yaml":"# Configs Skill\n\nPath: `tests/unit/mcpgateway/plugins/fixtures/configs/test_hook_patterns_config.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/tests/unit/mcpgateway/plugins/fixtures/configs/test_hook_patterns_config.yaml)","tests/unit/mcpgateway/plugins/fixtures/configs/tool_headers_metadata_plugin.yaml":"# Configs Skill\n\nPath: `tests/unit/mcpgateway/plugins/fixtures/configs/tool_headers_metadata_plugin.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/tests/unit/mcpgateway/plugins/fixtures/configs/tool_headers_metadata_plugin.yaml)","tests/unit/mcpgateway/plugins/fixtures/configs/tool_headers_plugin.yaml":"# Configs Skill\n\nPath: `tests/unit/mcpgateway/plugins/fixtures/configs/tool_headers_plugin.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/tests/unit/mcpgateway/plugins/fixtures/configs/tool_headers_plugin.yaml)","tests/unit/mcpgateway/plugins/fixtures/configs/valid_grpc_external_plugin.yaml":"# Configs Skill\n\nPath: `tests/unit/mcpgateway/plugins/fixtures/configs/valid_grpc_external_plugin.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/tests/unit/mcpgateway/plugins/fixtures/configs/valid_grpc_external_plugin.yaml)","tests/unit/mcpgateway/plugins/fixtures/configs/valid_grpc_external_plugin_manager.yaml":"# Configs Skill\n\nPath: `tests/unit/mcpgateway/plugins/fixtures/configs/valid_grpc_external_plugin_manager.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/tests/unit/mcpgateway/plugins/fixtures/configs/valid_grpc_external_plugin_manager.yaml)","tests/unit/mcpgateway/plugins/fixtures/configs/valid_multiple_plugins.yaml":"# Configs Skill\n\nPath: `tests/unit/mcpgateway/plugins/fixtures/configs/valid_multiple_plugins.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/tests/unit/mcpgateway/plugins/fixtures/configs/valid_multiple_plugins.yaml)","tests/unit/mcpgateway/plugins/fixtures/configs/valid_multiple_plugins_filter.yaml":"# Configs Skill\n\nPath: `tests/unit/mcpgateway/plugins/fixtures/configs/valid_multiple_plugins_filter.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/tests/unit/mcpgateway/plugins/fixtures/configs/valid_multiple_plugins_filter.yaml)","tests/unit/mcpgateway/plugins/fixtures/configs/valid_no_plugin.yaml":"# Configs Skill\n\nPath: `tests/unit/mcpgateway/plugins/fixtures/configs/valid_no_plugin.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/tests/unit/mcpgateway/plugins/fixtures/configs/valid_no_plugin.yaml)","tests/unit/mcpgateway/plugins/fixtures/configs/valid_single_filter_plugin.yaml":"# Configs Skill\n\nPath: `tests/unit/mcpgateway/plugins/fixtures/configs/valid_single_filter_plugin.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/tests/unit/mcpgateway/plugins/fixtures/configs/valid_single_filter_plugin.yaml)","tests/unit/mcpgateway/plugins/fixtures/configs/valid_single_plugin.yaml":"# Configs Skill\n\nPath: `tests/unit/mcpgateway/plugins/fixtures/configs/valid_single_plugin.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/tests/unit/mcpgateway/plugins/fixtures/configs/valid_single_plugin.yaml)","tests/unit/mcpgateway/plugins/fixtures/configs/valid_single_plugin_passthrough.yaml":"# Configs Skill\n\nPath: `tests/unit/mcpgateway/plugins/fixtures/configs/valid_single_plugin_passthrough.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/tests/unit/mcpgateway/plugins/fixtures/configs/valid_single_plugin_passthrough.yaml)","tests/unit/mcpgateway/plugins/fixtures/configs/valid_stdio_external_plugin.yaml":"# Configs Skill\n\nPath: `tests/unit/mcpgateway/plugins/fixtures/configs/valid_stdio_external_plugin.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/tests/unit/mcpgateway/plugins/fixtures/configs/valid_stdio_external_plugin.yaml)","tests/unit/mcpgateway/plugins/fixtures/configs/valid_stdio_external_plugin_overrides.yaml":"# Configs Skill\n\nPath: `tests/unit/mcpgateway/plugins/fixtures/configs/valid_stdio_external_plugin_overrides.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/tests/unit/mcpgateway/plugins/fixtures/configs/valid_stdio_external_plugin_overrides.yaml)","tests/unit/mcpgateway/plugins/fixtures/configs/valid_stdio_external_plugin_passthrough.yaml":"# Configs Skill\n\nPath: `tests/unit/mcpgateway/plugins/fixtures/configs/valid_stdio_external_plugin_passthrough.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/tests/unit/mcpgateway/plugins/fixtures/configs/valid_stdio_external_plugin_passthrough.yaml)","tests/unit/mcpgateway/plugins/fixtures/configs/valid_stdio_external_plugin_regex.yaml":"# Configs Skill\n\nPath: `tests/unit/mcpgateway/plugins/fixtures/configs/valid_stdio_external_plugin_regex.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/tests/unit/mcpgateway/plugins/fixtures/configs/valid_stdio_external_plugin_regex.yaml)","tests/unit/mcpgateway/plugins/fixtures/configs/valid_strhttp_external_plugin_overrides.yaml":"# Configs Skill\n\nPath: `tests/unit/mcpgateway/plugins/fixtures/configs/valid_strhttp_external_plugin_overrides.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/tests/unit/mcpgateway/plugins/fixtures/configs/valid_strhttp_external_plugin_overrides.yaml)","tests/unit/mcpgateway/plugins/fixtures/configs/valid_strhttp_external_plugin_regex.yaml":"# Configs Skill\n\nPath: `tests/unit/mcpgateway/plugins/fixtures/configs/valid_strhttp_external_plugin_regex.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/tests/unit/mcpgateway/plugins/fixtures/configs/valid_strhttp_external_plugin_regex.yaml)","tests/unit/mcpgateway/plugins/fixtures/configs/valid_tool_hooks.yaml":"# Configs Skill\n\nPath: `tests/unit/mcpgateway/plugins/fixtures/configs/valid_tool_hooks.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/tests/unit/mcpgateway/plugins/fixtures/configs/valid_tool_hooks.yaml)","tests/unit/mcpgateway/plugins/fixtures/configs/valid_unix_external_plugin.yaml":"# Configs Skill\n\nPath: `tests/unit/mcpgateway/plugins/fixtures/configs/valid_unix_external_plugin.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/tests/unit/mcpgateway/plugins/fixtures/configs/valid_unix_external_plugin.yaml)","tests/unit/mcpgateway/plugins/fixtures/configs/valid_unix_external_plugin_manager.yaml":"# Configs Skill\n\nPath: `tests/unit/mcpgateway/plugins/fixtures/configs/valid_unix_external_plugin_manager.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/tests/unit/mcpgateway/plugins/fixtures/configs/valid_unix_external_plugin_manager.yaml)"},"items":[{"name":"AGENTS.md","path":"AGENTS.md","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/AGENTS.md","title":"AI Agent Protocol & Instructions","category":"root-instruction","format":"markdown","content":"# AGENTS.md\n\nGuidelines for AI coding assistants working with this repository.\n\nFor domain-specific guidance, see subdirectory AGENTS.md files:\n- `tests/AGENTS.md` - Testing conventions and workflows\n- `plugins/AGENTS.md` - Plugin framework and development\n- `charts/AGENTS.md` - Helm chart operations\n- `docs/AGENTS.md` - Documentation authoring\n\n**Note:** The `llms/` directory holds LLM guidance of two kinds: end-user runtime guidance for using ContextForge, and work prompts for agents changing this repository. Where `llms/` guidance overlaps an `AGENTS.md` file, the `AGENTS.md` file is authoritative.\n\n## Skills\n\nTask-specific guidance lives in `.agents/skills/`. `.bob/skills` links to that directory. Load the matching skill before you start the task:\n\n- `asd-ste100`: write or rewrite prose for humans (review findings, issue and PR text, commit bodies) in ASD-STE100 style.\n- `pr-review`: write review findings, assign severity, judge blocking criteria.\n- `alembic-migrations`: add or change a database model, column, or migration.\n- `observability-audit-sessions`: change trace, span, metric, or audit writes.\n- `secret-detection`: resolve a `detect-secrets` finding or `.secrets.baseline` change.\n- `github-issues`: create, label, or triage an issue.\n- `contextforge-web-ui`: run or configure the `web_ui` compose service.\n- `mcp-helpers`: generate a JWT or register an MCP server locally.\n\n## Project Overview\n\nContextForge is an open source registry and proxy that federates MCP, A2A, and REST/gRPC APIs with centralized governance, discovery, and observability. It federates tools, agents, and APIs, optimizes agent and tool calling, and supports plugins, auth/RBAC, rate-limiting, virtual servers, multi-transport protocols, and an optional Admin UI.\n\n## Project Structure\n\n```\nmcpgateway/                 # Core FastAPI application\n├── main.py                 # Application entry point\n├── config.py               # Environment configuration\n├── db.py                   # SQLAlchemy ORM models and session management\n├── schemas.py              # Pydantic validation schemas\n├── services/               # Business logic layer (50+ services)\n├── routers/                # HTTP endpoint definitions (19 routers)\n├── middleware/             # Cross-cutting concerns (16 middleware)\n├── transports/             # Protocol implementations (SSE, WebSocket, stdio, streamable HTTP)\n├── plugins/                # Plugin integration (uses cpex external package)\n└── alembic/                # Database migrations\n\ntests/                      # Test suite (see tests/AGENTS.md)\nplugins/                    # Plugin implementations (see plugins/AGENTS.md)\ncharts/                     # Helm charts (see charts/AGENTS.md)\ndocs/                       # Architecture and usage documentation (see docs/AGENTS.md)\na2a-agents/                 # A2A agent implementations (used for testing/examples)\nllms/                       # End-user LLM guidance (not for code agents)\n```\n\n## Essential Commands\n\n### Setup\n```bash\ncp .env.example .env && make install-dev check-env    # Complete setup\nmake venv                          # Create virtual environment with uv\nmake install-dev                   # Install with dev dependencies (includes build-ui)\nmake check-env                     # Verify .env against .env.example\nmake build-ui                      # Rebuild Admin UI JS bundle (requires npm)\n```\n\n### Development\n```bash\nmake dev                          # Dev server on :8000 with autoreload\nmake serve                        # Production gunicorn on :4444\nmake serve-ssl                    # HTTPS on :4444 (creates certs if needed)\n```\n\n### Code Quality\n```bash\n# After writing code\nmake pre-commit\n\n# Before committing, use ty, mypy and pyrefly to check just the new files, then run:\nmake ruff bandit interrogate pylint verify\n```\n\n## Authentication & RBAC Overview\n\nContextForge implements a **two-layer security model**:\n\n1. **Token Scoping (Layer 1)**: Controls what resources a user CAN SEE (data filtering)\n2. **RBAC (Layer 2)**: Controls what actions a user CAN DO (permission checks)\n\n### Token Scoping Quick Reference\n\n**API / legacy tokens** — JWT `teams` claim is the sole authority (`normalize_token_teams()`):\n\n| JWT `teams` State | `is_admin: true` | `is_admin: false` |\n|-------------------|------------------|-------------------|\n| Key MISSING | PUBLIC-ONLY `[]` | PUBLIC-ONLY `[]` |\n| `teams: null` | ADMIN BYPASS | PUBLIC-ONLY `[]` |\n| `teams: []` | PUBLIC-ONLY `[]` | PUBLIC-ONLY `[]` |\n| `teams: [\"t1\"]` | Team + Public | Team + Public |\n\n**Session tokens** (`token_use: \"session\"`) — DB is the authority; JWT `teams` only narrows (`resolve_session_teams()`):\n\n| JWT `teams` State | DB admin? | Result | Access Level |\n|-------------------|-----------|--------|--------------|\n| any | yes | `None` | ADMIN BYPASS (DB authority) |\n| Missing/null/`[]` | no | DB teams | Full DB membership |\n| `[\"t1\"]` | no | intersection | Narrowed to overlap |\n| `[\"revoked\"]` | no | `[]` | Public-only (fail-closed) |\n\n**Key behaviors:**\n\n- **API/legacy tokens**: Missing `teams` key = public-only access (secure default). Admin bypass requires BOTH `teams: null` AND `is_admin: true`. `normalize_token_teams()` in `mcpgateway/auth.py` is the single source of truth.\n- **Token creation defaults to the creator's personal team**: `POST /tokens` (and admin-delegated creation) with no `team_id` no longer mints a `teams: null` (public-only) token for non-admin callers. `TokenCatalogService.get_default_team_id()` resolves the caller's (or, for admin delegation, the target's) personal team and `routers/tokens.py::create_token` uses it when the caller belongs to that team; it falls back to single-team inheritance, then to `team_id=None` plus a `TokenCreateResponse.warnings` entry only when neither applies (no personal team and multiple/zero teams). Un-narrowed admins are exempt — `team_id=None` for them is a deliberate global-scope token. The permission-containment check (`_get_caller_permissions`) still uses the *requested* `team_id`, not the defaulted one, so this does not raise the ceiling on what `scope.permissions` a caller may request. Separately, `derive_token_team_id()` in `mcpgateway/auth.py` — the function that turns a single-team token's claim into `request.state.team_id` for RBAC/rate-limit/routing context — excludes personal teams, since a personal team auto-grants `team_admin`; a personal-team-scoped token instead falls through to `check_any_team`, matching how `PermissionService._get_user_roles` already treats personal teams.\n- **Session tokens**: Admin bypass is determined by the DB `is_admin` flag, not the JWT `teams` claim. Non-admin sessions can be narrowed via JWT `teams`. `resolve_session_teams()` in `mcpgateway/auth.py` is the single policy point.\n- **Layer 1 only**: Token scoping controls visibility (what you can see). RBAC (Layer 2) is evaluated independently — session-token narrowing does not restrict which team roles are checked for permissions.\n- **External IdP tokens**: identities provisioned from trusted external SSO providers (see `SSO_API_TOKEN_AUTH_ENABLED`) are dispatched through the session-token table above (`resolve_session_teams()`), not the API/legacy table — `is_admin`/`teams` come from the persisted local user record, never from the external token's claims.\n\n### Implementation Helpers\n\nLayer-1 derivation is centralized in `mcpgateway/auth_context.py`. Route handlers must call these rather than re-deriving the rule inline:\n\n- `get_scoped_resource_access_context(request, user)` → `(user_email, token_teams)` — the visibility scope to pass into service fetch/list/read calls. Admin bypass is signalled by `token_teams=None` while `user_email` is **kept**, so the service can still owner-match the admin's own private rows. Public-only is `(email, [])`.\n- `get_request_identity(request, user)` → `(user_email, is_admin)` — the requester's own identity, for audit capture and header masking. Use when you need the identity independent of the visibility scope.\n- `get_rpc_filter_context(request, user)` → `(user_email, token_teams, is_admin)` — the raw pre-rule triple. Reserved for the few sites that genuinely need `is_admin` or the un-normalized teams (auth-context forwarding, run-ownership capture, tool-execution authorization); these carry a `Layer-1 exception` comment naming the reason.\n\nThe derived triple is memoized on `request.state` per principal, so calling the scope and identity helpers together costs one derivation rather than two.\n\n### Security Invariants (Required)\n\n- Treat `public` as platform-public scope, not internet-anonymous scope.\n- Explicit exception: when `MCP_REQUIRE_AUTH` is `false`, unauthenticated `/mcp` requests are allowed with public-only visibility — **unless** the target virtual server has `oauth_enabled` set to `True`, in which case unauthenticated requests are rejected with 401 regardless of the global setting.\n- Keep the two-layer model on every path:\n  - Layer 1: token scoping controls what a caller can see.\n  - Layer 2: RBAC controls what a caller can do.\n- Do not re-implement token team interpretation logic; use `normalize_token_teams()` for API/legacy tokens and `resolve_session_teams()` for session tokens (both in `mcpgateway/auth.py`).\n- Do not re-implement Layer 1 token scope semantics; use `token_scope_grants()` in `mcpgateway/middleware/rbac.py`, the single policy point shared by the RBAC decorators and `TokenScopingMiddleware`. Empty token scopes mean \"inherit from RBAC at runtime\" (what `TokenCatalogService._generate_token()` emits for tokens created without an explicit scope) and must never be treated as deny-all; `*` grants everything and `<category>.*` grants that category.\n- Do not accept inbound client auth tokens via URL query parameters.\n- Legacy `INSECURE_ALLOW_QUERYPARAM_AUTH` is interop-only for outbound peer auth and must remain opt-in and host-restricted.\n- High-risk transports must be feature-flagged and disabled by default.\n- Transport/session endpoints must authenticate before session establishment (or message forwarding) and enforce RBAC before processing actions.\n- Token-scoped route authorization must be default-deny for unmapped protected paths.\n- Never trust client-provided ownership fields (`owner_email`, `team_id`, session owner); derive authorization from authenticated identity and server-side state.\n- Security-sensitive changes must include deny-path regression tests (unauthenticated, wrong team, insufficient permissions, feature disabled).\n- A `token-exchange` OAuth grant (RFC 8693 / On-Behalf-Of) exists for gateways; with it, the user's inbound JWT is exchanged with a trusted Authorization Server and **never forwarded upstream** — only the exchanged token is sent to the downstream MCP server.\n- `token_url` on a `token-exchange` gateway is an SSRF / egress boundary: the user's ContextForge JWT is POSTed to it as the `subject_token`, it is validated at config time, and creating or modifying token-exchange gateways is a privileged action.\n- Audit token-exchange operations via the structured logging sink with a `correlation_id`; never log raw subject tokens or exchanged tokens.\n\n#### UAID Cross-Gateway Security\n\n- UAID cross-gateway routing requires explicit domain allowlist (fail-closed default)\n- Empty `UAID_ALLOWED_DOMAINS` blocks all cross-gateway routing unless `UAID_ALLOW_ALL_DOMAINS=true`\n- Cross-gateway calls forward bearer tokens for RBAC enforcement on remote gateways\n- Both gateways must trust the same JWT issuer (shared `JWT_SECRET_KEY` or federated SSO)\n- `UAID_ALLOW_ALL_DOMAINS=true` is unsafe for production (bypasses allowlist validation)\n- Startup validation logs ERROR if A2A enabled but allowlist not configured\n- Remote gateway 401/403 responses raise `A2AAgentError` with troubleshooting guidance\n\n### Built-in Roles\n\n| Role | Scope | Key Permissions |\n|------|-------|-----------------|\n| `platform_admin` | global | `*` (all) |\n| `team_admin` | team | teams.*, tools.read/execute, resources.read |\n| `developer` | team | CRUD on gateways, servers, tools, resources, prompts, and A2A agents; execution/invocation; token self-service; dashboard access; team read/join |\n| `viewer` | team | tools.read/execute, resources.read |\n\nThe `developer` role includes gateway registration, update, and deletion.\nSee the [complete built-in permission table](docs/docs/manage/rbac.md#built-in-rbac-roles) before assigning this role.\n\n### Documentation\n\n- **Full RBAC guide**: `docs/docs/manage/rbac.md`\n- **Multi-tenancy architecture**: `docs/docs/architecture/multitenancy.md`\n- **OAuth token delegation**: `docs/docs/architecture/oauth-design.md`\n### User Identity Extraction\n\n**Canonical Email Precedence**: All user-email extraction helpers use a consistent **email-over-sub** precedence order to ensure forensic accuracy across visibility checks and audit logs:\n\n- When a user dict contains both `email` and `sub` keys, `email` takes precedence\n- The canonical implementation is `get_user_email()` in `mcpgateway/auth_context.py`\n- All other helpers (including `admin.get_user_email`) re-export or delegate to this canonical implementation\n- This ensures that the identity used for RBAC evaluation matches the identity logged in audit trails\n\n**Rationale**: The `email` field is the human-readable identifier used throughout AGENTS.md and user-facing documentation. Consistent precedence prevents forensic confusion where an incident review pivots on a logged email that differs from the principal actually evaluated by RBAC.\n\n**Two accessors**: `get_user_email()` in `mcpgateway/auth_context.py` is the e-mail-attribute accessor. `get_user_id()` in the same module is the identity accessor. Phase 1 populates both with the same value. Audit (`AuditTrail.user_id`) and observability (`ObservabilityTrace.user_email`) identity fields hold the canonical user_id from `get_user_id()`; the column names stay unchanged for compatibility. Routers compute `get_user_id(user)` and pass it to services as the `user_id` keyword; services keep `user_email` for ownership checks.\n\n\n## Separate-Session Writes\n\nObservability and audit writes use sessions separate from the request transaction. Never pass `db=db` to `AuditTrailService.log_action()` or `log_audit()`. Load the `observability-audit-sessions` skill before you change either write path.\n\n\n## Key Environment Variables\n\nDefaults come from `mcpgateway/config.py`. `.env.example` intentionally overrides a few for local/dev convenience.\n\n```bash\n# Core\nHOST=127.0.0.1                  # .env.example uses 0.0.0.0\nPORT=4444\nDATABASE_URL=sqlite:///./mcp.db   # or postgresql+psycopg://...\nREDIS_URL=redis://localhost:6379/0\nRELOAD=false\n\n# Auth\nJWT_SECRET_KEY=your-secret-key\nBASIC_AUTH_USER=admin\nBASIC_AUTH_PASSWORD=changeme        # pragma: allowlist secret\nAUTH_REQUIRED=true                   # Set false ONLY for development\nAUTH_ENCRYPTION_SECRET=             # REQUIRED: generate with: make init-secrets-patch-env  # pragma: allowlist secret\n\n# Features\nMCPGATEWAY_UI_ENABLED=false          # .env.example sets true\nMCPGATEWAY_ADMIN_API_ENABLED=false   # .env.example sets true\nMCPGATEWAY_A2A_ENABLED=true\nPLUGINS_ENABLED=false\nPLUGINS_CONFIG_FILE=plugins/config.yaml\n\n# Logging\nLOG_LEVEL=ERROR\nLOG_TO_FILE=false\nSTRUCTURED_LOGGING_DATABASE_ENABLED=false\n\n# Observability\nOBSERVABILITY_ENABLED=false\nOTEL_EXPORTER_OTLP_ENDPOINT=          # .env.example sets http://localhost:4317\n```\n\n## Technology Stack\n\n- **FastAPI** with **Pydantic** validation and **SQLAlchemy** ORM (Starlette ASGI)\n- **HTMX + Alpine.js** for admin UI\n- **SQLite** default, **PostgreSQL** support, **Redis** for caching/federation\n- **Alembic** for migrations\n\n### Synchronous SQLAlchemy in Async Handlers (Design Decision)\n\nThe codebase deliberately uses synchronous SQLAlchemy sessions (e.g. `SessionLocal().begin()`) inside async FastAPI handlers and ASGI middleware, relying on FastAPI's event-loop management to handle blocking operations. Do not flag this as a bug or attempt to convert individual call sites to async without a broader migration plan. This design decision may be revisited in the future alongside a potential migration to async database drivers.\n\n## Coding Standards\n\n- **Python >= 3.12** with type hints; strict mypy\n- **Formatting**: Ruff (line length 200)\n- **Linting**: Ruff (`E3`,`E4`,`E7`,`E9`,`F`,`D1`), Pylint per `pyproject.toml`\n- **Naming**: `snake_case` functions/modules, `PascalCase` classes, `UPPER_CASE` constants\n- **Imports**: Group per isort sections (stdlib, third-party, first-party `mcpgateway`, local)\n- **Readability**: *Clean Code* — implement per [`docs/docs/development/coding-standards.md`](docs/docs/development/coding-standards.md)\n\n### Code Comments\n\n- Comments are a last resort. Make the code self-documenting first: extract a function or rename a thing until the comment becomes redundant.\n- A comment earns its place only when code cannot express a durable constraint: security rationale, upstream workaround, dependency-pin reason.\n- Comments never carry transient implementation process or decisions. Decisions go to an ADR (`docs/docs/architecture/adr/`), process to the commit body, tasks to an issue.\n- Docstrings are API contract, not comments: Ruff `D1`/`D417` and interrogate enforce presence and parameter coverage; summary line first, then the contract.\n- Fix a comment in the same change that fixes its code.\n\n## Agent Prose (ASD-STE100)\n\nAll agent-authored prose follows the ASD-STE100 writing rules. The controlled dictionary is not enforced; domain, protocol, and code terms count as technical names.\n\n- One instruction per sentence: 20 words or fewer for instructions, 25 for description.\n- Active voice, present tense. Imperative for instructions: \"Add a test\", never \"a test should be added\".\n- One word, one meaning: a token stays a token, never also a credential or a key.\n- Positive constructions. No hedging (\"worth considering\"), no idioms.\n- Technical names verbatim: `normalize_token_teams()`, `DB_POOL_SIZE`, `QueuePool limit exceeded`.\n\nCovers code comments and docstrings, commit bodies, PR descriptions, review findings, issue bodies and comments, CHANGELOG entries. Exempt: identifiers, log and error strings, `docs/` prose, ephemeral working notes.\n\nApply the `asd-ste100` skill (STE-flavored mode) to rewrite prose. Full rules and worked examples per artifact: [`docs/docs/development/agent-prose.md`](docs/docs/development/agent-prose.md).\n\n## Commit & PR Standards\n\n- **Sign commits**: `git commit -s` (DCO requirement). Preserve sign-off on rewritten commits (rebases, conflict resolutions).\n- **Conventional Commits**: `feat:`, `fix:`, `docs:`, `refactor:`, `chore:`. Subjects keep that format; bodies follow *Agent Prose*.\n- **Link issues**: `Closes #123`\n- Include tests for behavior changes.\n- Every PR whose behavior can be exercised through a live gateway must include a full black-box test against a running gateway; see [`tests/live_gateway/`](tests/live_gateway/) for examples.\n- Green lint and tests before PR.\n- Don't push until asked.\n\n### Pre-Merge Validation Gate\n\nRun from the worktree root, in order. Each command must pass, or the PR must document a waiver, before the PR is ready:\n\n| Command | Validates |\n|---------|-----------|\n| `make ruff interrogate pylint` | Lint, docstring coverage, deeper static analysis |\n| `make test` | Full rstest suite |\n| `make coverage diff-cover` | Coverage of changed lines vs. base |\n| `make docker-nuke docker-prod testing-up` | Rebuilds and launches the production-style gateway stack |\n| `make test-e2e` | MCP protocol E2E and RBAC against the live gateway |\n| `make detect-secrets-scan` | No new secrets in files changed vs `main`; exits non-zero on live/unaudited findings (jq merge preserves out-of-scope audited entries; remediate with `make detect-secrets-audit`) |\n\nDistinct from the per-edit hygiene chain in *Essential Commands → Code Quality* (`make autoflake isort black pre-commit`, then `make ruff bandit interrogate pylint verify`): hygiene runs continuously; this gate runs once before declaring a PR ready.\n\n## Maintenance Guardrails (Brief)\n\n- Source of truth precedence: `mcpgateway/config.py` and runtime code > `Makefile` targets/dependencies > `.env.example` (dev overrides) > docs/comments.\n- When auditing repo state, prioritize active source directories and ignore transient/workbench content unless explicitly requested: `todo/`, `tmp/`, `artifacts/`, `logs/`, `coverage/`.\n- Avoid brittle numeric claims (counts of services/routers/middleware/plugins) unless you are actively validating and updating them in the same change; otherwise describe with approximate wording.\n\n## Important Constraints\n\n- Never mention AI assistants in PRs/diffs\n- Do not include test plans or effort estimates in PRs\n- Never create files unless absolutely necessary; prefer editing existing files\n- Never proactively create documentation files unless explicitly requested\n- Never commit secrets; use `.env` for configuration\n\n## Key Files\n\n- `README.md` - Canonical project overview and quick start\n- `mcpgateway/main.py` - Application entry point\n- `mcpgateway/config.py` - Environment configuration\n- `mcpgateway/db.py` - SQLAlchemy ORM models and session management\n- `mcpgateway/schemas.py` - Pydantic schemas\n- `pyproject.toml` - Project configuration\n- `Makefile` - Build automation\n- `.env.example` - Environment template\n\n## CLI Tools Available\n\n- `gh` for GitHub operations\n- `make` for build/test automation\n- `uv` for virtual environment management and for `uv tool run` linter invocations\n- Dev-group tools installed in the venv: `rstest`, `pytest`, `mypy`, `bandit`, `pre-commit`, etc. (see `pyproject.toml` `[dependency-groups]`)\n- Formatters and linters (`ruff`, `vulture`, `interrogate`, `radon`, `yamllint`, `tomlcheck`) are pinned in the `Makefile` and invoked on demand via `uv tool run`; always prefer the Makefile targets (`make black`, `make ruff`, etc.) over calling the underlying tools directly\n","isInternal":false,"tokens":5071,"sizeBytes":22124},{"name":"AGENTS.md","path":"charts/AGENTS.md","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/charts/AGENTS.md","title":"charts - AI Agent Protocol & Instructions","category":"root-instruction","format":"markdown","content":"# charts/AGENTS.md\n\nHelm chart development guidance for AI coding assistants.\n\n## Chart Structure\n\n```\ncharts/\n├── README.md\n└── mcp-stack/              # Main Helm chart\n    ├── Chart.yaml          # Chart metadata\n    ├── values.yaml         # Default configuration\n    ├── values.schema.json  # JSON Schema for validation\n    ├── Makefile            # Developer automation\n    ├── README.md           # Generated chart docs\n    ├── CHANGELOG.md        # Version history\n    ├── CONTRIBUTING.md     # Contribution guidelines\n    └── templates/          # Kubernetes manifests\n        ├── _helpers.tpl    # Template helpers\n        ├── deployment-*.yaml\n        ├── service-*.yaml\n        ├── configmap-*.yaml\n        ├── secret-*.yaml\n        ├── ingress.yaml\n        ├── hpa-*.yaml\n        └── NOTES.txt\n```\n\n## Prerequisites\n\n- `helm` (3.14+)\n- `kubectl` with configured context\n- Optional: `helm-docs`, `yamllint`, `kubeval`, `ajv-cli`, `cosign`\n\n## Quick Commands\n\nFrom `charts/mcp-stack/`:\n\n```bash\n# Info\nmake info                     # Print chart/app versions\nmake version                  # Print chart version\n\n# Lint & Validate\nmake lint                     # helm lint --strict\nmake lint-yaml                # yamllint (if available)\nmake lint-values              # Validate values against schema\nmake validate-all             # Run all lint steps\n\n# Template & Dry-run\nmake test-template            # Render templates → tmp/rendered.yaml\nmake test-template-values     # Render with my-values.yaml\nmake test-dry-run             # helm install --dry-run --debug\nmake test-kubeval             # Validate manifests with kubeval\nmake test-all                 # Template + dry-run + kubeval\n\n# Install/Upgrade\nmake install                  # Install with defaults\nmake install-dev              # Install with my-values.yaml\nmake upgrade                  # Upgrade release\nmake upgrade-dev              # Upgrade with my-values.yaml\nmake uninstall                # Uninstall and wait\n\n# Debug\nmake status                   # Release status\nmake history                  # Release history\nmake rollback                 # Rollback release\nmake debug                    # Context, releases, resources\nmake describe                 # Describe chart resources\nmake logs                     # Show pod logs\nmake logs-follow              # Follow pod logs\nmake port-forward             # Forward localhost:4444 → service:80\nmake shell                    # Interactive shell into gateway\n\n# Package & Registry\nmake package                  # Package to dist/\nmake push                     # Push to OCI registry\nmake sign                     # Sign with cosign\n\n# Docs & Schema\nmake docs                     # Generate README via helm-docs\nmake schema                   # Generate values.schema.json\nmake schema-validate          # Validate values against schema\n```\n\n## Common Workflows\n\n### Local Validation\n```bash\ncd charts/mcp-stack\nmake validate-all\nmake test-template\nmake test-dry-run  # Optional\n```\n\n### First-time Install\n```bash\nNAMESPACE=mcp-dev RELEASE_NAME=mcp-dev make install\n# Or with custom values:\n# Create my-values.yaml, then:\nmake install-dev\n```\n\n### Upgrade\n```bash\nmake upgrade-dev  # Uses my-values.yaml if present\n```\n\n### Debug\n```bash\nmake status\nmake logs\nmake port-forward  # Then browse http://localhost:4444\n```\n\n## Values Override Example\n\nCreate `my-values.yaml`:\n\n```yaml\nmcpContextForge:\n  image:\n    tag: \"latest\"\n    pullPolicy: IfNotPresent\n  ingress:\n    enabled: true\n    className: nginx\n    host: gateway.local\n  config:\n    DEV_MODE: \"true\"\n    RELOAD: \"false\"\n  secret:\n    BASIC_AUTH_USER: admin\n    BASIC_AUTH_PASSWORD: changeme\n    JWT_SECRET_KEY: my-test-key-but-now-longer-than-32-bytes\n\npostgres:\n  enabled: true\n  credentials:\n    user: admin\n    password: test123\n  persistence:\n    storageClassName: standard\n    size: 5Gi\n\nredis:\n  enabled: true\n```\n\n## Security\n\n- Use `mcpContextForge.secret.*` for auth settings in dev\n- Prefer external `Secret` objects for production\n- Configure TLS at ingress or service mesh\n- Never commit secrets to values files\n\n## CI/CD\n\n```bash\n# In pipelines\nmake lint\nmake validate-all\n\n# On tagged releases\nmake package push\n\n# Optional signing\nmake sign\n```\n\n## Troubleshooting\n\n```bash\n# Inspect applied values\nhelm get values <release> -n <namespace>\n\n# Inspect manifests\nhelm get manifest <release> -n <namespace>\n\n# Check events\nkubectl describe pod <pod> -n <namespace>\nkubectl describe ingress <ingress> -n <namespace>\n```\n\n## Key Files\n\n- `Chart.yaml` - Chart metadata, versions, dependencies\n- `values.yaml` - All configurable values with defaults\n- `values.schema.json` - JSON Schema for values validation\n- `templates/_helpers.tpl` - Reusable template functions\n- `Makefile` - Developer automation commands\n","isInternal":false,"tokens":1092,"sizeBytes":4918},{"name":"AGENTS.md","path":"docs/AGENTS.md","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/docs/AGENTS.md","title":"docs - AI Agent Protocol & Instructions","category":"root-instruction","format":"markdown","content":"# docs/AGENTS.md\n\nDocumentation authoring guidance for AI coding assistants.\n\nThis directory contains the project's architecture and usage documentation built with MkDocs.\n\n## Directory Structure\n\n```\ndocs/\n├── mkdocs.yml          # MkDocs configuration\n├── base.yml            # Base configuration\n├── Makefile            # Doc build automation\n├── requirements.txt    # Doc dependencies\n├── theme/              # Custom theme assets\n└── docs/               # Documentation content\n    ├── index.md        # Home page\n    ├── architecture/   # System design, ADRs, plugins, security\n    ├── deployment/     # Docker, K8s, cloud guides\n    ├── development/    # Developer guides, building, testing\n    ├── manage/         # Operations, API usage, logging, scaling\n    ├── using/          # User guides (agents, clients, servers)\n    ├── testing/        # Test guides, performance, fuzzing\n    ├── best-practices/ # Best practice guides\n    ├── tutorials/      # Step-by-step tutorials\n    ├── overview/       # Project overview\n    ├── faq/            # FAQ\n    └── coverage/       # Generated coverage reports\n```\n\n## Quick Commands\n\nFrom `docs/` directory:\n\n```bash\n# Install dependencies\npip install -r requirements.txt\n\n# Build docs\nmake build                # Build static site\n\n# Serve locally\nmake serve                # Serve at http://localhost:8003 (configured in docs/base.yml)\n\n# Clean\nmake clean                # Remove build artifacts\n```\n\nFrom repository root:\n\n```bash\nmake docs                 # Build documentation\n# For local serving, run from docs/:\n#   cd docs && make serve\n```\n\n## Writing Documentation\n\n### File Location\n\nPlace documentation in the appropriate subdirectory:\n\n| Topic | Directory |\n|-------|-----------|\n| System design, ADRs | `docs/architecture/` |\n| Deployment guides | `docs/deployment/` |\n| Developer guides | `docs/development/` |\n| Operations guides | `docs/manage/` |\n| User guides | `docs/using/` |\n| Test documentation | `docs/testing/` |\n\n### Markdown Conventions\n\n- Use ATX-style headers (`#`, `##`, `###`)\n- Include front matter for navigation title if needed\n- Use fenced code blocks with language hints\n- Keep lines under 120 characters when practical\n\n### Code Examples\n\nUse fenced code blocks with language identifier:\n\n```python\nfrom mcpgateway import Gateway\n\ngateway = Gateway()\ngateway.start()\n```\n\n### Admonitions\n\n```markdown\n!!! note\n    This is a note.\n\n!!! warning\n    This is a warning.\n\n!!! tip\n    This is a tip.\n```\n\n### Internal Links\n\n```markdown\nSee [Configuration Reference](manage/configuration.md) for details.\nSee [Architecture Overview](architecture/index.md).\n```\n\n## Architecture Decision Records (ADRs)\n\nADRs live in `docs/architecture/adr/` and follow the [adr.github.io](https://adr.github.io/) format (`# ADR-NNN: Title`, Status/Date/Deciders front material, then Context / Decision / Consequences). Each ADR captures a decision as it stood at a point in time — treat them as a historical record, not living documentation.\n\n### Authoring a New ADR\n\n1. Create `docs/architecture/adr/NNN-short-title.md` with the next sequential number (check `adr/index.md` for the current maximum).\n2. Add a row to the table in `docs/architecture/adr/index.md` (chronological order, per the footer note there).\n3. Add a nav entry in `docs/docs/architecture/adr/.pages` (see *Navigation* below).\n4. Statuses in use: `Draft`, `Proposed`, `Accepted`, `Implemented`, `Deprecated`, `Superseded`.\n\n### Immutability of Accepted ADRs\n\nAn **Accepted** (or Implemented) ADR is frozen. Do not rewrite its Context, Decision, or Consequences to reflect later changes — doing so erases the record of why the decision was made. The only permitted edits to an accepted ADR are:\n\n- **Front material updates** — most commonly the Status line (e.g. `Accepted` → `Superseded by ADR-NNN`).\n- **Footnotes or pointer notes** — a short note (typically a `!!! warning` admonition at the top, as in ADR-038) recording where the ADR has been referenced, altered, or superseded. Keep these additive; never edit the original body text.\n\n### Changing or Reversing a Decision\n\nWhen a decision recorded in an ADR no longer holds:\n\n1. **Write a new ADR** capturing the new decision, its context, and why the old one no longer applies. Reference the superseded ADR by number.\n2. **Update the old ADR's status** to `Superseded by ADR-NNN` and add a pointer note at the top directing readers to the new ADR.\n3. **Update the status in `adr/index.md`** for both records.\n\nNever silently modify or delete an ADR whose decision has been abandoned — the trail from old decision to new is part of the project's institutional memory.\n\n## Navigation\n\nNavigation is configured in `mkdocs.yml`. When adding new pages:\n\n1. Create the markdown file in the appropriate directory\n2. Add an entry to the `nav` section in `mkdocs.yml`\n\n## API Documentation\n\nAPI documentation is auto-generated from OpenAPI schema:\n- Swagger UI: `http://localhost:4444/docs`\n- OpenAPI JSON: `http://localhost:4444/openapi.json`\n\n## Coverage Reports\n\nCoverage reports are generated to `docs/docs/coverage/`:\n\n```bash\nmake htmlcov              # Generate HTML coverage report\n```\n\n## Key Documentation Pages\n\n- `docs/development/developer-onboarding.md` - New contributor guide\n- `docs/development/building.md` - Build system and testing\n- `docs/manage/api-usage.md` - REST API guide\n- `docs/architecture/index.md` - Architecture overview\n- `docs/architecture/adr/` - Architecture Decision Records\n\n## Important Notes\n\n- Do not create documentation files unless explicitly requested\n- Prefer editing existing files over creating new ones\n- Keep documentation up-to-date with code changes\n- Use relative links for internal references\n","isInternal":false,"tokens":1346,"sizeBytes":5849},{"name":"AGENTS.md","path":"plugins/AGENTS.md","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/AGENTS.md","title":"plugins - AI Agent Protocol & Instructions","category":"root-instruction","format":"markdown","content":"# plugins - AI Agent Protocol & Instructions\n\nPath: `plugins/AGENTS.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/AGENTS.md)","tokens":300,"sizeBytes":181},{"name":"AGENTS.md","path":"tests/AGENTS.md","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/tests/AGENTS.md","title":"tests - AI Agent Protocol & Instructions","category":"root-instruction","format":"markdown","content":"# tests - AI Agent Protocol & Instructions\n\nPath: `tests/AGENTS.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/tests/AGENTS.md)","tokens":300,"sizeBytes":175},{"name":"api.md","path":"llms/api.md","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/llms/api.md","title":"llms - API Interface Contract & Specifications","category":"project-spec","format":"markdown","content":"# llms - API Interface Contract & Specifications\n\nPath: `llms/api.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/llms/api.md)","tokens":300,"sizeBytes":173},{"name":"SKILL.md","path":".agents/skills/alembic-migrations/SKILL.md","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/.agents/skills/alembic-migrations/SKILL.md","title":"alembic-migrations","category":"anthropic-skill","format":"markdown","content":"---\nname: alembic-migrations\ndescription: Create or review an Alembic migration in `mcpgateway/alembic`. Use when you add a column or table, change `mcpgateway/db.py` models, fix \"Multiple heads\", or write a `downgrade()` that reads `settings`.\n---\n\n# Alembic Database Migrations\n\nEvery change to a model in `mcpgateway/db.py` needs a matching Alembic migration. This includes every new column and table.\n\n## Migration Chain Rules\n\n- Work on one migration at a time. Merge or finish one migration before you start the next.\n- The `revision` -> `down_revision` links form one linked list. The chain never branches.\n- Each migration has exactly one parent. `alembic heads` shows exactly one head.\n- A new migration sets `down_revision` to the current head.\n\n## Create a Migration\n\n```bash\n# CRITICAL: Always check the current head FIRST\ncd mcpgateway && alembic heads\n\n# Generate a new migration (auto-generates from model changes)\nalembic revision --autogenerate -m \"add_column_to_table\"\n\n# Or create an empty migration for manual edits\nalembic revision -m \"add_column_to_table\"\n```\n\n## Migration File Requirements\n\nThe `down_revision` MUST point to the current head. Read the head from `alembic heads`. Never copy the value from an older migration.\n\n```python\n# CORRECT: points to the actual current head (verified with `alembic heads`)\nrevision: str = \"<new_revision_id>\"\ndown_revision: Union[str, Sequence[str], None] = \"<current_head_id>\"\n\n# WRONG: creates multiple heads (breaks all tests)\ndown_revision: Union[str, Sequence[str], None] = \"<some_older_revision_id>\"\n```\n\n## Idempotent Migrations Pattern\n\nWrite idempotent migrations. Check state before you change it:\n\n```python\ndef upgrade() -> None:\n    inspector = sa.inspect(op.get_bind())\n\n    # Skip if table doesn't exist (fresh DB uses db.py models directly)\n    if \"my_table\" not in inspector.get_table_names():\n        return\n\n    # Skip if column already exists\n    columns = [col[\"name\"] for col in inspector.get_columns(\"my_table\")]\n    if \"new_column\" in columns:\n        return\n\n    op.add_column(\"my_table\", sa.Column(\"new_column\", sa.String(), nullable=True))\n```\n\n## Verification\n\nRun these commands from `mcpgateway/`.\n\n### Inspect the chain\n\n```bash\nalembic heads              # must show exactly ONE head\nalembic current            # revision the DB is at\nalembic history --verbose  # full chain\nalembic branches           # find branch points\n```\n\n### Upgrade\n\n```bash\nalembic upgrade head              # apply all\nalembic upgrade +1                # apply the next one\nalembic upgrade <revision_id>     # apply up to a specific revision\nalembic upgrade <rev>:head --sql  # print the SQL only (offline mode, no DB change)\n```\n\n### Downgrade\n\n```bash\nalembic downgrade -1              # revert the latest migration\nalembic downgrade <revision_id>   # revert to a specific revision\nalembic downgrade base            # revert everything\nalembic downgrade head:-1 --sql   # print the SQL only (offline mode, no DB change)\n```\n\n### Round-trip test of a new migration\n\n```bash\nalembic upgrade head && alembic downgrade -1 && alembic upgrade head\n```\n\nRun the test suite to confirm the migrations work:\n\n```bash\nmake test\n```\n\nDone when `alembic heads` prints one head, the round-trip test passes, and `make test` passes.\n\n## Common Errors\n\n- **\"Multiple heads are present\"**: `down_revision` points to the wrong parent. Set it to the actual current head.\n- **\"Target database is not up to date\"**: Run `alembic upgrade head` first.\n\n## Hermetic Downgrade: Config Snapshot Pattern\n\nA `downgrade()` that reads runtime configuration (`mcpgateway.config.settings`) **must** snapshot those values into `migration_metadata` during `upgrade()`. `downgrade()` reads the snapshot back. The migration is then hermetic: database state determines its behavior, not the current environment.\n\n```python\nfrom mcpgateway.config import settings\nfrom sqlalchemy import inspect, text\n\nREVISION = \"<your_revision_id>\"\n\ndef upgrade() -> None:\n    bind = op.get_bind()\n    # ... schema changes ...\n\n    # Snapshot any settings values used in downgrade\n    if \"migration_metadata\" in inspect(bind).get_table_names():\n        bind.execute(\n            text(\n                \"INSERT INTO migration_metadata (revision, key, value, created_at) \"\n                \"VALUES (:rev, :key, :val, CURRENT_TIMESTAMP) \"\n                \"ON CONFLICT (revision, key) DO UPDATE SET value = excluded.value\"\n            ),\n            {\"rev\": REVISION, \"key\": \"some_setting\", \"val\": settings.some_setting},\n        )\n\ndef downgrade() -> None:\n    bind = op.get_bind()\n\n    # Read from snapshot; fall back to live settings only if table is absent\n    # (pre-existing DB that was upgraded before this pattern was introduced)\n    cfg = {}\n    if \"migration_metadata\" in inspect(bind).get_table_names():\n        rows = bind.execute(\n            text(\"SELECT key, value FROM migration_metadata WHERE revision = :rev\"),\n            {\"rev\": REVISION},\n        ).all()\n        cfg = {r[0]: r[1] for r in rows}\n\n    some_setting = cfg.get(\"some_setting\") or settings.some_setting\n\n    # ... use some_setting for downgrade logic ...\n\n    # Clean up snapshot rows\n    if \"migration_metadata\" in inspect(bind).get_table_names():\n        bind.execute(\n            text(\"DELETE FROM migration_metadata WHERE revision = :rev\"),\n            {\"rev\": REVISION},\n        )\n```\n\n**Rule:** If a migration imports `settings` and uses it in `downgrade()`, follow this pattern. A migration that uses `settings` only in `upgrade()` (for example, to seed initial data) is exempt.\n","frontmatter":{"name":"alembic-migrations","description":"Create or review an Alembic migration in `mcpgateway/alembic`. Use when you add a column or table, change `mcpgateway/db.py` models, fix \"Multiple heads\", or write a `downgrade()` that reads `settings`."},"isInternal":false,"tokens":1314,"sizeBytes":5582},{"name":"before-after.md","path":".agents/skills/asd-ste100/examples/before-after.md","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/.agents/skills/asd-ste100/examples/before-after.md","title":"Examples Skill","category":"anthropic-skill","format":"markdown","content":"# Examples Skill\n\nPath: `.agents/skills/asd-ste100/examples/before-after.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/.agents/skills/asd-ste100/examples/before-after.md)","tokens":300,"sizeBytes":219},{"name":"linter-edge-cases.md","path":".agents/skills/asd-ste100/examples/linter-edge-cases.md","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/.agents/skills/asd-ste100/examples/linter-edge-cases.md","title":"Examples Skill","category":"anthropic-skill","format":"markdown","content":"# Examples Skill\n\nPath: `.agents/skills/asd-ste100/examples/linter-edge-cases.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/.agents/skills/asd-ste100/examples/linter-edge-cases.md)","tokens":300,"sizeBytes":229},{"name":"README.md","path":".agents/skills/asd-ste100/README.md","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/.agents/skills/asd-ste100/README.md","title":"Asd-ste100 Skill","category":"anthropic-skill","format":"markdown","content":"# Asd-ste100 Skill\n\nPath: `.agents/skills/asd-ste100/README.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/.agents/skills/asd-ste100/README.md)","tokens":300,"sizeBytes":191},{"name":"writing-rules.md","path":".agents/skills/asd-ste100/references/writing-rules.md","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/.agents/skills/asd-ste100/references/writing-rules.md","title":"References Skill","category":"anthropic-skill","format":"markdown","content":"# References Skill\n\nPath: `.agents/skills/asd-ste100/references/writing-rules.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/.agents/skills/asd-ste100/references/writing-rules.md)","tokens":300,"sizeBytes":227},{"name":"SKILL.md","path":".agents/skills/asd-ste100/SKILL.md","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/.agents/skills/asd-ste100/SKILL.md","title":"asd-ste100","category":"anthropic-skill","format":"markdown","content":"---\nname: asd-ste100\ndescription: \"Use when English text must be parsed without a human to resolve ambiguity — tool descriptions, error messages, inter-agent instructions, system prompts, status reports — and misreading has a real cost, or when text reads as dense, hedged, or easy to misparse. Triggers: disambiguate, STE100 rewrite, apply Simplified Technical English, plain-language rewrite, controlled-language rewrite, rewrite so an agent cannot misread this. Not for creative or marketing copy.\"\nversion: 0.4.0\n---\n\n# Simplified Technical English (ASD-STE100)\n\nASD-STE100 is a controlled-language standard built by the aerospace and defense industry (ASD, the AeroSpace and Defense Industries Association of Europe) to stop maintenance technicians from misreading English instructions. The standard removes the two biggest sources of misreading: words with more than one meaning, and sentences with more than one possible structure.\n\nThis skill borrows that same discipline for a different reader: an **AI agent or a downstream system** that has to parse an English string — an error message, a tool description, an inter-agent instruction, a status report — without a human in the loop to resolve ambiguity. If a maintenance technician can misread \"close the valve\" as an adjective (\"the valve that is near\") instead of a command, so can a language model.\n\n## When to Use This Skill\n\n- An agent's output (explanation, instruction, log message, tool description) reads as dense, jargon-heavy, or ambiguous.\n- Text will be consumed by another agent, a translation pipeline, or a non-native English reader, and misparsing has a real cost.\n- You are writing a prompt, system message, or tool description and want to remove ambiguity before a model ever sees it.\n- You want a **before/after** comparison showing exactly which rule was violated and how the rewrite fixes it. Ask for it — the default output is the rewritten text alone (see Output Format).\n\nThis skill is not for creative or marketing copy — STE is deliberately flat and literal. Do not apply it to text where voice, nuance, or persuasion is the point.\n\n## Two Modes\n\nPick a mode before rewriting. If the user does not say which, infer it from the text type. Keep the choice internal unless the user asks for the rule table (see Output Format).\n\n**Strict** — procedures, error messages, tool and function descriptions, inter-agent instructions, safety text. Anywhere a wrong reading has a cost. Apply every rule below, including the hard length caps and one-word-one-meaning discipline.\n\n**STE-flavored** — READMEs, PR descriptions, changelogs, explanatory prose. Apply the structural rules in full and treat the lexical rules as advisory (see Core Rewrite Rules for that split). In practice that means keeping the sentence length caps, active voice, simple tenses, no phrasal verbs, no semicolons, no nominalization and no marketing adjectives, while dropping the one-word-one-meaning lockdown: prose needs some range, and a strict rewrite of prose reads as a personality transplant rather than a clarification.\n\nThe two modes and the structural/lexical split are the same distinction seen from two directions. The split says which rules this skill can verify without ASD's dictionary. The modes say which of them to enforce for a given kind of text.\n\n## Source and Scope\n\nThis skill encodes the **rule categories** of ASD-STE100 Issue 9 (Jan 2025): 53 writing rules across 9 sections covering word choice, grammar, sentence structure, and style, backed by a dictionary of ~900 approved words (one meaning, one part of speech each) and ~1,200 words to avoid with suggested replacements. See `references/writing-rules.md` for the full rule summary and citations.\n\nIt does **not** reproduce ASD's ~900-word approved dictionary verbatim. ASD-STE100 is free to obtain, but it is not free to redistribute: Issue 9, page 2 states that \"no reproduction or publication of it, in whole or in part, shall be made without the written authority of an officer of ASD,\" and grants free reproduction rights only to eight listed categories (ASD/AIA/AIAC member associations and their member companies and customers, member-state defence ministries, A4A, airworthiness authorities, and universities and research institutes for educational purposes). This project is in none of them, so the dictionary stays out of this repo.\n\nInstead, this skill applies the *underlying principle* (pick the plainest, most common word available and use it the same way every time) rather than checking against a fixed word list. When exact ASD-approved wording matters (e.g. actual aircraft maintenance documentation), get the standard and check word-by-word against the real dictionary. Request it from the [official downloads page](https://www.asd-ste100.org/STE_downloads.html) — note that this is a request form that emails you a link, not a direct download.\n\n## Core Rewrite Rules\n\nSTE's rules divide into two kinds, and this skill can only fully deliver one of them. **Structural rules** are self-contained: they describe sentence shape, and you can apply them from the description alone. **Lexical rules** are defined entirely by the official ~900-word dictionary, which this skill deliberately does not reproduce (see Source and Scope). Without that dictionary, the lexical rules degrade from a checkable standard into a preference for plain words.\n\nApply the structural rules with confidence. Apply the lexical rules as a direction of travel, and say so in your output rather than implying dictionary compliance you cannot verify.\n\n### Structural rules — apply these\n\n| Rule | Do | Don't |\n|---|---|---|\n| Active voice | \"The agent deletes the file.\" | \"The file is deleted (by the agent).\" — unless the actor is genuinely unknown or irrelevant |\n| No phrasal verbs (Rule 9.3) | \"Remove the panel.\" / \"Start the job.\" | \"Take off the panel.\" / \"Spin up the job.\" — a two-word verb has meanings the parts do not predict |\n| One instruction per sentence | \"Open the file. Read line 3.\" | \"Open the file and read line 3, then check if it matches.\" |\n| Sentence length | ≤20 words for instructions/procedures, ≤25 words for descriptions | Long compound/subordinate-clause sentences |\n| No semicolons (Rule 8.1) | Split into separate sentences | Any semicolon at all — STE bans the mark outright, not only as a clause join. (Rule 8.1 permits every other standard punctuation mark. The em dash is *not* banned by STE, though it often signals a sentence that should be split.) |\n| Noun clusters | ≤3 words stacked as a noun phrase (\"fuel pump valve\") | 4+ word noun stacks (\"high pressure fuel pump inlet valve assembly\") |\n| No ellipsis | Keep the subject, verb, and article explicit even if it reads longer | Drop words to save space (\"Files not backed up will be lost\" → ambiguous which files) |\n| Keep modality | \"The request **may have** failed.\" stays \"may have\" | Promote a hedge to a fact (\"The request failed.\") or invent a certainty the source did not state |\n| Paragraph limits | One topic per paragraph, ≤6 sentences | Multi-topic paragraphs |\n| Lists for sequences | Use a numbered or bulleted list for 3+ steps or conditions | Bury a sequence inside one prose sentence |\n\n### Lexical rules — direction of travel only\n\n| Rule | Do | Don't | Why it is weaker here |\n|---|---|---|---|\n| One word, one meaning | Pick one verb for one action and reuse it every time (e.g. always \"check\", never mix \"check\"/\"verify\"/\"confirm\" for the same action) | Rotate synonyms for the same idea across a document | Consistency within a document is checkable. Which word is the *approved* one is not, without the dictionary. |\n| One part of speech per word | \"Apply oil to the valve\" (oil = noun) | \"Oil the valve\" (oil = verb) | Whether \"oil\" is approved as a noun only is a dictionary fact. Prefer the noun form when both read equally well. Do not claim compliance. |\n| Verb, not noun (Rule 3.7) | \"Analyze the log.\" | \"Perform an analysis of the log.\" — a noun form of an action makes the sentence longer and hides who acts | Rule 3.7 says \"use an **approved** verb to describe an action.\" Preferring the verb form is safe to apply anywhere. Knowing which verb is the approved one needs the dictionary. |\n| Domain terms | Keep necessary technical nouns/verbs, but define them once if not common English (STE allows a project-specific glossary beyond its base dictionary) | Use jargon without ever defining it | The glossary allowance is real STE, but the base dictionary it extends is absent. |\n\n### Simple tenses — apply with one exception\n\nSTE permits infinitive, imperative, simple present, simple past, simple future, and past participle as adjective. It excludes present perfect and other compound forms: \"we received the report\", not \"we have received the report\".\n\nAircraft manuals never need present perfect, so the exclusion costs the standard nothing. Other text is not always so lucky. \"The job has completed\" (and its output is available now) and \"the job completed\" (at some past point) are different statements, and status text frequently needs the first. **Where the compound form carries information the simple form cannot — current relevance, or a hedge as in \"may have failed\" — keep it and flag the departure.** Elsewhere, follow the rule.\n\n## Scan Checklist\n\nThese six habits cover most of what makes machine-written English hard to parse. Each one is mechanical: you can point at the exact word or punctuation mark that breaks the rule, with no judgment call. Scan for all six before you rewrite anything.\n\n1. **Synonym rotation** — the same thing gets several names in one document (\"the user\", \"the customer\", \"the client\"). The reader cannot tell whether they are one thing or three. Fix: pick one name, use it every time.\n2. **Hedge stacking** — helper verbs and qualifiers pile up until the sentence asserts nothing (\"it is important to note that this may potentially help to improve\"). Fix: state the claim, or delete it.\n3. **Nominalization** — an action frozen into a noun (\"perform an analysis of\", \"provides assistance to\"). Fix: use the verb (\"analyze\", \"helps\").\n4. **Marketing adjectives** — words that claim quality instead of showing it: seamless, robust, powerful, cutting-edge, effortless, blazing-fast. Fix: delete, or replace with the measurement that earns the claim.\n5. **Run-on sentences** — several ideas joined by semicolons or em dashes. Fix: one idea per sentence.\n6. **Soft phrasal verbs** — spin up, reach out, dive into, kick off. Fix: use the single plain verb (start, contact, read, begin).\n\n## Process\n\n1. Pick the mode (Strict or STE-flavored). Say which only when the user asked for the rule table — see Output Format.\n2. Read the input text once for meaning — do not start rewriting before you understand what it must still say afterward.\n3. Walk it sentence by sentence. Flag every rule violation from the Core Rewrite Rules tables and every habit from the Scan Checklist. In STE-flavored mode, flag the lexical rules but do not enforce them. For a mechanical first pass over the structural rules, run `scripts/ste-lint.py` (stdin or file args, `--json` for structured output); it checks semicolons, sentence length, phrasal verbs, nominalization, marketing adjectives, synonym rotation, dangling-conjunction in supported list items, passive voice, and compound tenses, and by design never flags hedges or modality. `--baseline N` tolerates N hard violations (for adopting on existing docs); `--disable rule1,rule2` silences named rules.\n4. Rewrite each flagged sentence to fix the violation while preserving the original meaning exactly. If a rewrite would drop necessary precision (a safety condition, a scope qualifier, a number), keep the longer phrasing and flag it instead of silently simplifying.\n   - **Check modality before you commit to a rewrite.** Hedges (\"may\", \"could\", \"sometimes\", \"is likely to\") carry the author's confidence, and confidence is content. A shorter sentence that upgrades a hedge to a fact is not a simplification — it is a different claim. This is the most common way a well-intentioned STE rewrite goes wrong, because hedges are exactly what a length cap tempts you to cut.\n   - Never add a fact the source did not state. A rewrite that reads better because it supplies a cause, a frequency, or a mechanism has stopped being a rewrite.\n5. Output the rewritten text (see Output Format). Keep the mode choice and the rule analysis internal unless the user asked to see them.\n6. If the input already complies, say so — do not force changes onto compliant text.\n\n## Output Format\n\n**Default: the rewritten text, and nothing else.** Most callers want a result they can paste straight into a tool description, an error string, or a prompt. Print the simplified text on its own. Do not add a preamble about this skill, a mode announcement, a violation count, a summary of what changed, a rule table, or a closing offer to explain further.\n\nThe one permitted addition: if step 4 kept a longer phrasing on purpose, add a single line after the text, prefixed `Kept as-is:`, naming the phrase and the precision that would have been lost. Omit the line when there is nothing to report.\n\n**On request: the rule table.** When the user asks to see the reasoning — \"show the diff\", \"which rules did it break\", \"explain the changes\", \"before/after\" — output this table instead:\n\n```markdown\n| Rule violated | Original | Simplified |\n|---|---|---|\n| Present perfect tense | \"We have received your request.\" | \"We received your request.\" |\n| Noun cluster (4+ words) | \"the agent task queue priority handler\" | \"the handler that sets task-queue priority\" |\n\nMode: Strict. 7 violations found.\n```\n\nFollow the table with a one-line note on anything you deliberately did **not** simplify, and why (usually: simplifying would lose required precision).\n\n## Boundaries\n\n**Will:**\n- Rewrite ambiguous or dense English into short, single-meaning, active-voice sentences.\n- Return the rewritten text alone by default, and name the rules it applied when the user asks.\n- Preserve every fact, condition, and scope qualifier in the original.\n- Preserve the strength of every hedge, and add no claim the source did not make.\n- Suggest a one-line glossary entry for domain terms that must stay.\n\n**Will not:**\n- Reproduce ASD's official ~900-word dictionary as if it were memorized verbatim — always treat the official download as the source of truth for exact approved wording.\n- Simplify creative, marketing, or persuasive copy where voice and nuance are the point.\n- Silently drop a safety condition, exception, or scope qualifier to shorten a sentence — it will flag the trade-off instead.\n- Convert \"may have failed\" into \"failed\", or \"could be caused by X\" into \"X is the cause\" — losing a hedge changes the claim.\n- Guarantee an aerospace/defense-grade STE-compliant document. This is a general-purpose clarity tool inspired by STE, not a certified STE authoring tool.\n- Make weak content true or useful. STE fixes the *form* of a text, not its substance. A hollow paragraph rewritten under these rules becomes a clean, short, well-punctuated hollow paragraph. If the text has nothing to say, no rewrite fixes that — say so instead of polishing it.\n- Shorten past the point of clarity. Cutting words is not the goal. Removing ambiguity is the goal. Past a certain point compression starts costing the reader time rather than saving it, so stop when the sentence is unambiguous, not when it is shortest.\n\n## Additional Resources\n\n- **`references/writing-rules.md`** — fuller summary of the 9 rule sections and dictionary structure, with citations to the official standard and secondary sources.\n- **`examples/before-after.md`** — worked examples, including official STE examples and agent-output examples built for this skill.\n- **`scripts/ste-lint.py`** — deterministic, stdlib-only linter for the structural rules, including dangling-conjunction in supported list items, plus a synonym-rotation check (one word, one meaning) scoped per file. Exit 1 when hard violations exceed `--baseline` (default 0); advisory findings (passive voice, compound tenses) never fail the run; `--disable` silences named rules. It never flags hedges or modality: those are content, not style, and `--selftest` asserts that \"may have failed\" passes clean.\n","frontmatter":{"name":"asd-ste100","description":"Use when English text must be parsed without a human to resolve ambiguity — tool descriptions, error messages, inter-agent instructions, system prompts, status reports — and misreading has a real cost, or when text reads as dense, hedged, or easy to misparse. Triggers: disambiguate, STE100 rewrite, apply Simplified Technical English, plain-language rewrite, controlled-language rewrite, rewrite so an agent cannot misread this. Not for creative or marketing copy.","version":"0.4.0"},"isInternal":false,"tokens":3617,"sizeBytes":16418},{"name":"SKILL.md","path":".agents/skills/contextforge-web-ui/SKILL.md","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/.agents/skills/contextforge-web-ui/SKILL.md","title":"contextforge-web-ui","category":"anthropic-skill","format":"markdown","content":"---\nname: contextforge-web-ui\ndescription: Run or configure the ContextForge Web UI (`web_ui` service, `--profile ui`, `WEB_UI_*` variables in `docker-compose.yml` and `.env.example`). Not for the built-in Admin UI.\n---\n\n# ContextForge Web UI\n\nA BFF-style frontend for the gateway API. It is separate from the built-in Admin UI (`MCPGATEWAY_UI_ENABLED`). Source and docs: https://github.com/contextforge-org/contextforge-web-ui\n\n- Runs as `web_ui` plus a dedicated `web_ui_redis` session store in `docker-compose.yml`.\n- Enabled with `--profile ui`. `--profile testing` also pulls it in.\n- `web_ui` waits until `gateway` and `web_ui_redis` are healthy.\n\n```bash\n# Start the gateway plus the web UI\ndocker compose --profile ui up -d\n\n# Access\nopen http://localhost:${WEB_UI_PORT:-3001}\n```\n\nConfiguration (see the commented `WEB_UI_*` block in `.env.example`):\n\n| Variable | Default | Purpose |\n|----------|---------|---------|\n| `WEB_UI_IMAGE` | see `docker-compose.yml` | Image to pull. Pinned to a specific released version *and* digest, never `latest`. The release checklist bumps it (`docs/docs/development/release-management.md`). Keep the value in `docker-compose.yml` only, so copies cannot drift. |\n| `WEB_UI_PORT` | `3001` | Host **and** container port. The image reads `PORT` at startup, so both sides of the mapping stay in sync. |\n| `WEB_UI_HOST` | `0.0.0.0` | Bind address inside the container. Keep `0.0.0.0` in Docker. |\n| `WEB_UI_CONTEXTFORGE_URL` | `http://gateway:4444` | Gateway API base URL the UI talks to (internal compose network). |\n| `WEB_UI_COOKIE_SECURE` | `false` | Set `true` once the UI is served over HTTPS. |\n| `WEB_UI_REDIS_URL` | `redis://web_ui_redis:6379/0` | Session store, separate from the gateway's cache `redis` service. |\n\nFor feature docs, auth flow details, and upstream options beyond this compose file, see the [contextforge-web-ui repo](https://github.com/contextforge-org/contextforge-web-ui).\n","frontmatter":{"name":"contextforge-web-ui","description":"Run or configure the ContextForge Web UI (`web_ui` service, `--profile ui`, `WEB_UI_*` variables in `docker-compose.yml` and `.env.example`). Not for the built-in Admin UI."},"isInternal":false,"tokens":507,"sizeBytes":1942},{"name":"SKILL.md","path":".agents/skills/github-issues/SKILL.md","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/.agents/skills/github-issues/SKILL.md","title":"github-issues","category":"anthropic-skill","format":"markdown","content":"---\nname: github-issues\ndescription: Create, label, or triage a GitHub issue for this repository. Defines issue types, title style, label baseline, and lifecycle labels.\n---\n\n# GitHub Issues\n\n- Start from the matching template in `.github/ISSUE_TEMPLATE/`. The template sets the GitHub Issue Type (`Epic`, `Feature`, `Story`, `Task`, `Bug`). The template's sections define the body.\n- Hierarchy: an Epic holds Features, a Feature holds Stories, a Story holds Tasks. Link children with GitHub sub-issues on the parent. Bugs stand alone or nest anywhere in that chain.\n- Titles carry no type prefix. Write a plain imperative summary: `Gateway drops WebSocket sessions on restart`.\n- Labels carry no issue types. New issues start with `triage`. The Chore and Documentation templates also apply `chore` and `documentation`. Add 1-3 optional scope labels (`security`, `performance`, `ui`, `api`, `python`, `devops`, `a2a`, `mcp-protocol`).\n- The organization defines the issue type names. Template `type` values must match those names exactly.\n- Lifecycle labels: `awaiting-user` when blocked on reporter feedback, `blocked` for dependency blockers, `planned` when accepted but deferred, `fixed` only after the resolving change merges.\n- Bodies and comments follow *Agent Prose* in `AGENTS.md`. Before you post, rewrite them with the `asd-ste100` skill in STE-flavored mode. For public tone, see the `pr-review` skill, section *Tone*.\n","frontmatter":{"name":"github-issues","description":"Create, label, or triage a GitHub issue for this repository. Defines issue types, title style, label baseline, and lifecycle labels."},"isInternal":false,"tokens":333,"sizeBytes":1430},{"name":"SKILL.md","path":".agents/skills/mcp-helpers/SKILL.md","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/.agents/skills/mcp-helpers/SKILL.md","title":"mcp-helpers","category":"anthropic-skill","format":"markdown","content":"---\nname: mcp-helpers\ndescription: Generate a gateway JWT, expose a stdio MCP server over HTTP/SSE with `mcpgateway.translate`, or register an MCP server in a local gateway.\n---\n\n# MCP Helpers\n\n```bash\n# Generate JWT token\npython -m mcpgateway.utils.create_jwt_token --username admin@example.com --exp 10080 --secret KEY\n\n# Export for API calls\nexport MCPGATEWAY_BEARER_TOKEN=$(python -m mcpgateway.utils.create_jwt_token --username admin@example.com --exp 0 --secret KEY)\n\n# Expose stdio server via HTTP/SSE\npython -m mcpgateway.translate --stdio \"uvx mcp-server-git\" --port 9000\n```\n\n## Add an MCP Server\n\n1. Start: `python -m mcpgateway.translate --stdio \"server-command\" --port 9000`\n2. Register: `POST /gateways`\n3. Create virtual server: `POST /servers`\n4. Access via SSE/WebSocket endpoints\n","frontmatter":{"name":"mcp-helpers","description":"Generate a gateway JWT, expose a stdio MCP server over HTTP/SSE with `mcpgateway.translate`, or register an MCP server in a local gateway."},"isInternal":false,"tokens":214,"sizeBytes":798},{"name":"SKILL.md","path":".agents/skills/observability-audit-sessions/SKILL.md","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/.agents/skills/observability-audit-sessions/SKILL.md","title":"observability-audit-sessions","category":"anthropic-skill","format":"markdown","content":"---\nname: observability-audit-sessions\ndescription: Change code that writes traces, spans, metrics, or audit entries. Use when you touch `ObservabilityService`, `ObservabilityMiddleware`, `instrumentation/sqlalchemy.py`, or a `log_action()` / `log_audit()` call site, or when you size connection pools.\n---\n\n# Observability and Audit Trail Session Behavior\n\nObservability writes and audit writes use sessions separate from the main request transaction. This is an intentional trade-off.\n\n## Observability Transaction Behavior\n\n**Issue #3883 - Separate Session Pattern**\n\nThe HTTP middleware reuses one observability session per traced request. This means:\n\n- Observability data persists even when the main request fails.\n- Traces can show \"in progress\" or partial states for failed requests.\n- Observability writes are **NOT atomic** with the main request transaction.\n- You get visibility into partial failures at the cost of atomicity.\n\n### Implementation Details\n\n**Write methods** (create independent sessions unless callers supply a supported `obs_db` parameter):\n- `start_trace()`, `end_trace()`\n- `start_span()`, `end_span()`\n- `add_event()`, `record_token_usage()`, `record_metric()`, `delete_old_traces()`\n\n**Query methods** (use request-scoped sessions):\n- `get_trace()`, `get_traces()`, `get_spans()`, etc.\n- These accept a `db: Session` parameter for RBAC/token scoping.\n\n**Context managers** (create one independent session for the lifecycle):\n- `trace_span()`, `trace_tool_invocation()`, `trace_a2a_request()`\n\n**Middleware lifecycle**: Commit parent traces and HTTP spans before request processing so independent child writers can see them. Commit span and trace completion independently. Roll back caught span failures before attempting trace completion. Keep this session separate from application transactions.\n\n**Pattern**: SQL instrumentation also reuses a session for each query span in `instrumentation/sqlalchemy.py`.\n\n## Audit Trail Transaction Behavior\n\n**Issue #2871 - Separate Session Pattern**\n\n`AuditTrailService.log_action()` (`mcpgateway/services/audit_trail_service.py`) opens its own `SessionLocal()` when no `db` is supplied. It closes and rolls back that session itself. Callers in `tool_service.py`, `resource_service.py`, `gateway_service.py`, `prompt_service.py`, `server_service.py`, and `admin.py` must **never** pass `db=db` (the caller's request-scoped session) to `log_action()`. In `admin.py`, plugin-view audit logging goes through `log_audit()`. It is a thin wrapper over `log_action()` and inherits the same optional-session behavior.\n\nPassing the shared session caused **\"This transaction is inactive\"** errors. The main CRUD operation already calls `db.commit()` before the audit call. A second commit on the same session leaves it in a state that breaks rollback on later errors.\n\n- `log_action()` swallows its own exceptions and returns `None` on failure. It does not propagate them to the caller in production.\n- The main resource (tool/gateway/resource/prompt/server) is committed **before** `log_action()` runs. An audit-logging failure never rolls back persisted data. The generic `except Exception` handlers of callers still call `db.rollback()` and surface an error to the API caller, even though the row is already committed.\n- Do not add `db: Session` back to a `log_action()` call site. If a service needs the audit entry in the same transaction as the main write, that is a deliberate design change that requires review.\n\n**Middleware**: `ObservabilityMiddleware` creates one observability session per HTTP trace lifecycle and closes it after completion. Child spans, metrics, and SQL instrumentation can create additional sessions. The middleware does not create `request.state.db`.\n\n**Security**: Query operations use request-scoped sessions for RBAC/token scoping. Write operations are not RBAC-protected. Observability visibility is platform-wide.\n\n**Connection Pool Sizing**: Session allocations do not equal simultaneous connections. Commits release connections before subsequent lifecycle operations. Size pools from measured concurrent connection use, worker counts, and database limits. The SQLite lifecycle comparison measures session allocations and checkouts. It does not establish production capacity. See `docs/docs/manage/tuning.md` for measurements and limitations.\n","frontmatter":{"name":"observability-audit-sessions","description":"Change code that writes traces, spans, metrics, or audit entries. Use when you touch `ObservabilityService`, `ObservabilityMiddleware`, `instrumentation/sqlalchemy.py`, or a `log_action()` / `log_audit()` call site, or when you size connection pools."},"isInternal":false,"tokens":898,"sizeBytes":4343},{"name":"SKILL.md","path":".agents/skills/pr-review/SKILL.md","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/.agents/skills/pr-review/SKILL.md","title":"pr-review","category":"anthropic-skill","format":"markdown","content":"---\nname: pr-review\ndescription: Review a PR, branch, or diff in this repository. Use before you create or update a PR, when a branch is ready for review, or before you post `gh pr review`. Defines the procedure, finding format, severity levels, blocking criteria, and tone.\n---\n\n# PR Review\n\nA review reports every issue as a finding the author can act on. A review changes no files.\n\n## Rebase on origin/main\n\n1. Run `git fetch origin`.\n2. Run `git rebase origin/main`.\n\nIf the rebase hits conflicts, resolve them. When both sides changed the same logic substantively, ask the user which side wins. Resolve `.secrets.baseline` conflicts with the `secret-detection` skill.\n\n## Gather Context\n\n1. **Diff**: Collect all changes between `origin/main` and HEAD, plus staged and unstaged working-tree changes. Treat them as one unit. Staging status is never a finding.\n2. **PR metadata**: When a PR exists, read the description, review comments, and linked issues (`gh pr view`, `gh pr view --comments`, `gh issue view N`).\n3. **Scope**: Compare the PR description against the linked issues. Partial coverage of an issue is acceptable when the PR says so. Unstated gaps and scope drift are findings.\n4. **Conventions**: Read `AGENTS.md` and `CONTRIBUTING.md`. Use their linter and test commands exactly.\n\n## Review Order\n\nReview the diff in this order. Severity comes from *Blocking Criteria* below, not from the category.\n\n1. Security: injection, leaked secrets, auth gaps, OWASP top 10, Layer 1 / Layer 2 violations.\n2. Correctness: logic errors, edge cases, mismatch with linked issues.\n3. Test coverage: changed code has tests, including deny-path tests for security changes.\n4. Linter compliance: run project linters on touched files and report violations. Do not fix them (see *Optional Lint Auto-Fix*).\n5. Performance: N+1 queries, unnecessary allocations, bottlenecks.\n6. Redundancy: duplicated logic, copy-paste patterns, shared-utility opportunities.\n7. Design: structural quality (see *Design Guidance*).\n8. Consistency: adherence to documented conventions.\n9. Alembic migrations (conditional): idempotence, reversibility, cross-database compatibility, `batch_alter_table` for SQLite. Apply the `alembic-migrations` skill.\n\n## Optional Lint Auto-Fix\n\nNever auto-fix formatting during a review. A reviewer who edits the reviewed code changes the PR under review. Report `black`, `isort`, `autoflake`, pylint, bandit, and mypy findings for the author to address. Include the exact command and output.\n\nRun the auto-fix only when the user explicitly asks for it, for example a local developer who reviews their own branch. Fix files the PR touched only. Never run formatters on the whole codebase. That pollutes the diff.\n\n```bash\nPY_FILES=\"$(git diff --diff-filter=d --name-only origin/main -- '*.py')\"\nif [ -n \"$PY_FILES\" ]; then\n  make autoflake isort black TARGET=\"$PY_FILES\"\nfi\n```\n\nRun the linters again to check the fixes. Report the fix as a minor finding, for example \"Auto-fixed: ran autoflake/isort/black on N files\".\n\n## Design Guidance\n\n### Structure and modularity\n\n- **Single-responsibility violations**: Name each responsibility and suggest a split.\n- **God functions**: More than 50 lines of logic or more than 3 levels of nesting. Name the extraction points.\n- **Long parameter lists**: More than 5 parameters often means a missing config object or dataclass.\n- **Tight coupling**: Modules that reach into each other's internals. Suggest an interface boundary.\n- **Deep nesting**: Suggest early returns, guard clauses, or extracted helpers.\n\n### Polymorphism\n\nLong `if`/`elif`/`else` chains often want polymorphic dispatch. Look for these in changed code and adjacent code:\n\n- **Type-switching conditionals**, for example `if transport == \"sse\": ... elif transport == \"websocket\": ...`. Suggest an ABC or Protocol with one implementation per variant.\n- **Behavior chosen by enum or string**. Suggest Strategy or Template Method.\n- **Scattered object creation**. Suggest a factory method or registry.\n- **Simple dispatch**. A `dict[key, callable]` table is a good intermediate step.\n- **Copy-paste behavior across classes**. Suggest a `Protocol` or mixin.\n- **Missing abstract parents**. Classes with a shared interface and no common base need an ABC with `@abstractmethod`.\n\n### Missing abstractions\n\n- A pattern repeated at 3 or more call sites needs a shared utility or base class.\n- A data class whose related logic lives in other modules needs that logic moved next to the data.\n\n## Second Opinions\n\nAfter your own review, run these tools as background tasks. If a tool is missing or fails, skip it and note the reduced coverage.\n\n- `codex exec review --base origin/main`\n- `git diff origin/main..HEAD | bob \"Review this diff for correctness, security, and design quality. Be specific about line-level issues.\"`\n\nAttribute each finding to its source. Resolve contradictions.\n\n## Finding Format\n\nWrite each finding as a compact block that reads well in a GitHub comment:\n\n```markdown\n**severity** · `path:line`\nProblem: what is wrong and why it matters.\nFix: the concrete change.\n```\n\nUse short sentences. Add detail only when the problem or fix needs it. Make each fix concrete: name the method to extract, the class to create, the interface to define. \"Consider refactoring\" is not a fix. The delivery channel (file, agent toolkit, `gh pr review`) is per-PR. Ask the user which channel applies before you post externally.\n\n## Severity\n\n| Severity | Meaning | Disposition |\n|----------|---------|-------------|\n| blocking | Meets a blocking criterion with evidence in the diff or linked artifacts | Merge gate. No waiver |\n| functionally-impacting | Affects behavior or maintainability, below the blocking bar | Fix before merge unless the PR documents a waiver |\n| suggestion | A better way exists. Optional | May be deferred |\n| minor | Polish | May be deferred |\n\n## Blocking Criteria\n\nA finding is blocking if and only if it meets one of these criteria with evidence in the diff or linked artifacts. If there is no evidence, the finding is not blocking:\n\n1. Correctness bug in changed code, reachable in real use (includes data loss).\n2. Security regression, or a security-sensitive change without deny-path regression tests (unauthenticated, wrong team, insufficient permission, feature disabled).\n3. Violates a documented Security Invariant or design decision (see *Authentication & RBAC Overview* and *Synchronous SQLAlchemy in Async Handlers* in `AGENTS.md`).\n4. Breaks a consumer contract unflagged: HTTP API, environment variables or their defaults, database schema, Helm values, MCP/A2A wire behavior.\n5. Adds or changes a model without a matching Alembic migration.\n6. The PR does not deliver what it claims.\n\nWhen severity stays ambiguous after investigation, mark the finding blocking and name the missing evidence. The next pass resolves it.\n\nNot blocking: style and naming (Ruff owns these), the sync-SQLAlchemy-in-async pattern, doc polish, test-count aesthetics.\n\n## Output\n\n```markdown\n# PR Review: [branch-name]\n\n## Summary\n[1-2 sentences: what changed, whether it meets the PR and issue goals]\n\n## Findings\n[one block per finding, grouped blocking, functionally-impacting, suggestion, minor]\n\n## Recommendation\n[Exactly ONE of: \"Ready to merge\" | \"Ready after addressing findings\" | \"Needs significant rework\"]\n[1 sentence of justification]\n```\n\n## Rules\n\n- Change no files. Report every finding for the author. Run the lint auto-fix only on explicit user request.\n- Never mention AI or coding assistants in any output.\n\n## Tone\n\nCourteous by structure, direct by sentence. Lead with what works. State severity so the author knows what must change. Write as a respectful senior colleague: direct about problems, never harsh, never hedged. Prose follows *Agent Prose* in `AGENTS.md`. Before you post, rewrite the summary, findings, and recommendation with the `asd-ste100` skill in STE-flavored mode. Done when each sentence is 25 words or fewer, active, and keeps every severity and hedge.\n","frontmatter":{"name":"pr-review","description":"Review a PR, branch, or diff in this repository. Use before you create or update a PR, when a branch is ready for review, or before you post `gh pr review`. Defines the procedure, finding format, severity levels, blocking criteria, and tone."},"isInternal":false,"tokens":1811,"sizeBytes":8038},{"name":"SKILL.md","path":".agents/skills/secret-detection/SKILL.md","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/.agents/skills/secret-detection/SKILL.md","title":"secret-detection","category":"anthropic-skill","format":"markdown","content":"---\nname: secret-detection\ndescription: Resolve a `detect-secrets` finding or a `.secrets.baseline` change. Use when `make detect-secrets-scan` fails, when you add a placeholder credential to docs or code, or when you resolve a baseline merge conflict.\n---\n\n# Secret Detection (detect-secrets)\n\nPrefer removing the trigger. Rewrite the line so it holds no credential-shaped value. Suppress only when the value must stay.\n\n## Suppress a False Positive\n\n- **Python files**: suppress inline with `# pragma: allowlist secret`. The finding then stays out of `.secrets.baseline` after `make detect-secrets-scan`.\n  - Exception: doctest strings where the comment breaks the assertion. Rely on `.secrets.baseline` and audit with `make detect-secrets-audit`.\n- **Makefile**: suppress audited false positives inline with `# pragma: allowlist secret`. In variable assignments, append the pragma directly after the value, with no space. Make keeps whitespace before a comment in the value.\n- **Markdown**: inside a fenced code block, append `# pragma: allowlist secret` to the line. In prose, append `<!-- pragma: allowlist secret -->`. Rewrite the line instead when the pragma would break a sample that readers copy verbatim.\n- **All other file types**: regenerate the baseline with `make detect-secrets-scan`.\n- **Merge conflicts**: resolve `.secrets.baseline` with the version from `main`.\n\n## Verify\n\nRun `make detect-secrets-scan`. It exits non-zero on live or unaudited findings. Remediate with `make detect-secrets-audit`. Done when the command exits zero and `.secrets.baseline` holds no entry for a line you suppressed or removed.\n","frontmatter":{"name":"secret-detection","description":"Resolve a `detect-secrets` finding or a `.secrets.baseline` change. Use when `make detect-secrets-scan` fails, when you add a placeholder credential to docs or code, or when you resolve a baseline merge conflict."},"isInternal":false,"tokens":366,"sizeBytes":1628},{"name":"CLEANUP.md","path":".github/tools/CLEANUP.md","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/.github/tools/CLEANUP.md","title":"Tools Skill","category":"anthropic-skill","format":"markdown","content":"# Tools Skill\n\nPath: `.github/tools/CLEANUP.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/.github/tools/CLEANUP.md)","tokens":300,"sizeBytes":164},{"name":"gateway-hooks.md","path":"docs/docs/architecture/plugins/gateway-hooks.md","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/docs/docs/architecture/plugins/gateway-hooks.md","title":"Plugins Skill","category":"anthropic-skill","format":"markdown","content":"# Plugins Skill\n\nPath: `docs/docs/architecture/plugins/gateway-hooks.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/docs/docs/architecture/plugins/gateway-hooks.md)","tokens":300,"sizeBytes":212},{"name":"security-hooks.md","path":"docs/docs/architecture/plugins/security-hooks.md","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/docs/docs/architecture/plugins/security-hooks.md","title":"Plugins Skill","category":"anthropic-skill","format":"markdown","content":"# Plugins Skill\n\nPath: `docs/docs/architecture/plugins/security-hooks.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/docs/docs/architecture/plugins/security-hooks.md)","tokens":300,"sizeBytes":214},{"name":"grpc-transport.md","path":"docs/docs/using/plugins/grpc-transport.md","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/docs/docs/using/plugins/grpc-transport.md","title":"Plugins Skill","category":"anthropic-skill","format":"markdown","content":"# Plugins Skill\n\nPath: `docs/docs/using/plugins/grpc-transport.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/docs/docs/using/plugins/grpc-transport.md)","tokens":300,"sizeBytes":200},{"name":"http-auth-hooks.md","path":"docs/docs/using/plugins/http-auth-hooks.md","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/docs/docs/using/plugins/http-auth-hooks.md","title":"Plugins Skill","category":"anthropic-skill","format":"markdown","content":"# Plugins Skill\n\nPath: `docs/docs/using/plugins/http-auth-hooks.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/docs/docs/using/plugins/http-auth-hooks.md)","tokens":300,"sizeBytes":202},{"name":"index.md","path":"docs/docs/using/plugins/index.md","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/docs/docs/using/plugins/index.md","title":"Plugins Skill","category":"anthropic-skill","format":"markdown","content":"# Plugins Skill\n\nPath: `docs/docs/using/plugins/index.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/docs/docs/using/plugins/index.md)","tokens":300,"sizeBytes":182},{"name":"lifecycle.md","path":"docs/docs/using/plugins/lifecycle.md","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/docs/docs/using/plugins/lifecycle.md","title":"Plugins Skill","category":"anthropic-skill","format":"markdown","content":"# Plugins Skill\n\nPath: `docs/docs/using/plugins/lifecycle.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/docs/docs/using/plugins/lifecycle.md)","tokens":300,"sizeBytes":190},{"name":"migration-to-cpex.md","path":"docs/docs/using/plugins/migration-to-cpex.md","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/docs/docs/using/plugins/migration-to-cpex.md","title":"Plugins Skill","category":"anthropic-skill","format":"markdown","content":"# Plugins Skill\n\nPath: `docs/docs/using/plugins/migration-to-cpex.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/docs/docs/using/plugins/migration-to-cpex.md)","tokens":300,"sizeBytes":206},{"name":"mtls.md","path":"docs/docs/using/plugins/mtls.md","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/docs/docs/using/plugins/mtls.md","title":"Plugins Skill","category":"anthropic-skill","format":"markdown","content":"# Plugins Skill\n\nPath: `docs/docs/using/plugins/mtls.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/docs/docs/using/plugins/mtls.md)","tokens":300,"sizeBytes":180},{"name":"plugins.md","path":"docs/docs/using/plugins/plugins.md","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/docs/docs/using/plugins/plugins.md","title":"Plugins Skill","category":"anthropic-skill","format":"markdown","content":"# Plugins Skill\n\nPath: `docs/docs/using/plugins/plugins.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/docs/docs/using/plugins/plugins.md)","tokens":300,"sizeBytes":186},{"name":"unix-socket-transport.md","path":"docs/docs/using/plugins/unix-socket-transport.md","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/docs/docs/using/plugins/unix-socket-transport.md","title":"Plugins Skill","category":"anthropic-skill","format":"markdown","content":"# Plugins Skill\n\nPath: `docs/docs/using/plugins/unix-socket-transport.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/docs/docs/using/plugins/unix-socket-transport.md)","tokens":300,"sizeBytes":214},{"name":"plugin-manifest.yaml","path":"plugins/ai_artifacts_normalizer/plugin-manifest.yaml","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/ai_artifacts_normalizer/plugin-manifest.yaml","title":"Ai_artifacts_normalizer Skill","category":"anthropic-skill","format":"yaml","content":"# Ai_artifacts_normalizer Skill\n\nPath: `plugins/ai_artifacts_normalizer/plugin-manifest.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/ai_artifacts_normalizer/plugin-manifest.yaml)","tokens":300,"sizeBytes":238},{"name":"plugin-manifest.yaml","path":"plugins/altk_json_processor/plugin-manifest.yaml","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/altk_json_processor/plugin-manifest.yaml","title":"Altk_json_processor Skill","category":"anthropic-skill","format":"yaml","content":"# Altk_json_processor Skill\n\nPath: `plugins/altk_json_processor/plugin-manifest.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/altk_json_processor/plugin-manifest.yaml)","tokens":300,"sizeBytes":226},{"name":"plugin-manifest.yaml","path":"plugins/cached_tool_result/plugin-manifest.yaml","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/cached_tool_result/plugin-manifest.yaml","title":"Cached_tool_result Skill","category":"anthropic-skill","format":"yaml","content":"# Cached_tool_result Skill\n\nPath: `plugins/cached_tool_result/plugin-manifest.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/cached_tool_result/plugin-manifest.yaml)","tokens":300,"sizeBytes":223},{"name":"plugin-manifest.yaml","path":"plugins/circuit_breaker/plugin-manifest.yaml","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/circuit_breaker/plugin-manifest.yaml","title":"Circuit_breaker Skill","category":"anthropic-skill","format":"yaml","content":"# Circuit_breaker Skill\n\nPath: `plugins/circuit_breaker/plugin-manifest.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/circuit_breaker/plugin-manifest.yaml)","tokens":300,"sizeBytes":214},{"name":"plugin-manifest.yaml","path":"plugins/citation_validator/plugin-manifest.yaml","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/citation_validator/plugin-manifest.yaml","title":"Citation_validator Skill","category":"anthropic-skill","format":"yaml","content":"# Citation_validator Skill\n\nPath: `plugins/citation_validator/plugin-manifest.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/citation_validator/plugin-manifest.yaml)","tokens":300,"sizeBytes":223},{"name":"plugin-manifest.yaml","path":"plugins/code_formatter/plugin-manifest.yaml","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/code_formatter/plugin-manifest.yaml","title":"Code_formatter Skill","category":"anthropic-skill","format":"yaml","content":"# Code_formatter Skill\n\nPath: `plugins/code_formatter/plugin-manifest.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/code_formatter/plugin-manifest.yaml)","tokens":300,"sizeBytes":211},{"name":"plugin-manifest.yaml","path":"plugins/code_safety_linter/plugin-manifest.yaml","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/code_safety_linter/plugin-manifest.yaml","title":"Code_safety_linter Skill","category":"anthropic-skill","format":"yaml","content":"# Code_safety_linter Skill\n\nPath: `plugins/code_safety_linter/plugin-manifest.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/code_safety_linter/plugin-manifest.yaml)","tokens":300,"sizeBytes":223},{"name":"config-pii-guardian-policy.yaml","path":"plugins/config-pii-guardian-policy.yaml","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/config-pii-guardian-policy.yaml","title":"Plugins Skill","category":"anthropic-skill","format":"yaml","content":"# Plugins Skill\n\nPath: `plugins/config-pii-guardian-policy.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/config-pii-guardian-policy.yaml)","tokens":300,"sizeBytes":196},{"name":"config.yaml","path":"plugins/config.yaml","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/config.yaml","title":"Plugins Skill","category":"anthropic-skill","format":"yaml","content":"# Plugins Skill\n\nPath: `plugins/config.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/config.yaml)","tokens":300,"sizeBytes":156},{"name":"plugin-manifest.yaml","path":"plugins/content_moderation/plugin-manifest.yaml","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/content_moderation/plugin-manifest.yaml","title":"Content_moderation Skill","category":"anthropic-skill","format":"yaml","content":"# Content_moderation Skill\n\nPath: `plugins/content_moderation/plugin-manifest.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/content_moderation/plugin-manifest.yaml)","tokens":300,"sizeBytes":223},{"name":"TESTING.md","path":"plugins/content_moderation/TESTING.md","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/content_moderation/TESTING.md","title":"Content_moderation Skill","category":"anthropic-skill","format":"markdown","content":"# Content_moderation Skill\n\nPath: `plugins/content_moderation/TESTING.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/content_moderation/TESTING.md)","tokens":300,"sizeBytes":203},{"name":"plugin-manifest.yaml","path":"plugins/deny_filter/plugin-manifest.yaml","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/deny_filter/plugin-manifest.yaml","title":"Deny_filter Skill","category":"anthropic-skill","format":"yaml","content":"# Deny_filter Skill\n\nPath: `plugins/deny_filter/plugin-manifest.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/deny_filter/plugin-manifest.yaml)","tokens":300,"sizeBytes":202},{"name":"plugin-manifest.yaml","path":"plugins/examples/custom_auth_example/plugin-manifest.yaml","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/examples/custom_auth_example/plugin-manifest.yaml","title":"Custom_auth_example Skill","category":"anthropic-skill","format":"yaml","content":"# Custom_auth_example Skill\n\nPath: `plugins/examples/custom_auth_example/plugin-manifest.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/examples/custom_auth_example/plugin-manifest.yaml)","tokens":300,"sizeBytes":244},{"name":"plugin-manifest.yaml","path":"plugins/examples/simple_token_auth/plugin-manifest.yaml","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/examples/simple_token_auth/plugin-manifest.yaml","title":"Simple_token_auth Skill","category":"anthropic-skill","format":"yaml","content":"# Simple_token_auth Skill\n\nPath: `plugins/examples/simple_token_auth/plugin-manifest.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/examples/simple_token_auth/plugin-manifest.yaml)","tokens":300,"sizeBytes":238},{"name":"plugin-manifest.yaml","path":"plugins/external/cedar/cedarpolicyplugin/plugin-manifest.yaml","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/external/cedar/cedarpolicyplugin/plugin-manifest.yaml","title":"Cedarpolicyplugin Skill","category":"anthropic-skill","format":"yaml","content":"# Cedarpolicyplugin Skill\n\nPath: `plugins/external/cedar/cedarpolicyplugin/plugin-manifest.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/external/cedar/cedarpolicyplugin/plugin-manifest.yaml)","tokens":300,"sizeBytes":250},{"name":"config-cedar.yaml","path":"plugins/external/cedar/examples/config-cedar.yaml","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/external/cedar/examples/config-cedar.yaml","title":"Examples Skill","category":"anthropic-skill","format":"yaml","content":"# Examples Skill\n\nPath: `plugins/external/cedar/examples/config-cedar.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/external/cedar/examples/config-cedar.yaml)","tokens":300,"sizeBytes":217},{"name":"config-dsl.yaml","path":"plugins/external/cedar/examples/config-dsl.yaml","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/external/cedar/examples/config-dsl.yaml","title":"Examples Skill","category":"anthropic-skill","format":"yaml","content":"# Examples Skill\n\nPath: `plugins/external/cedar/examples/config-dsl.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/external/cedar/examples/config-dsl.yaml)","tokens":300,"sizeBytes":213},{"name":"config.yaml","path":"plugins/external/cedar/resources/plugins/config.yaml","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/external/cedar/resources/plugins/config.yaml","title":"Plugins Skill","category":"anthropic-skill","format":"yaml","content":"# Plugins Skill\n\nPath: `plugins/external/cedar/resources/plugins/config.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/external/cedar/resources/plugins/config.yaml)","tokens":300,"sizeBytes":222},{"name":"config.yaml","path":"plugins/external/cedar/resources/runtime/config.yaml","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/external/cedar/resources/runtime/config.yaml","title":"Runtime Skill","category":"anthropic-skill","format":"yaml","content":"# Runtime Skill\n\nPath: `plugins/external/cedar/resources/runtime/config.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/external/cedar/resources/runtime/config.yaml)","tokens":300,"sizeBytes":222},{"name":"config.yaml","path":"plugins/external/clamav_server/resources/plugins/config.yaml","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/external/clamav_server/resources/plugins/config.yaml","title":"Plugins Skill","category":"anthropic-skill","format":"yaml","content":"# Plugins Skill\n\nPath: `plugins/external/clamav_server/resources/plugins/config.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/external/clamav_server/resources/plugins/config.yaml)","tokens":300,"sizeBytes":238},{"name":"config-stdio.yaml","path":"plugins/external/config-stdio.yaml","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/external/config-stdio.yaml","title":"External Skill","category":"anthropic-skill","format":"yaml","content":"# External Skill\n\nPath: `plugins/external/config-stdio.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/external/config-stdio.yaml)","tokens":300,"sizeBytes":187},{"name":"config.yaml","path":"plugins/external/config.yaml","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/external/config.yaml","title":"External Skill","category":"anthropic-skill","format":"yaml","content":"# External Skill\n\nPath: `plugins/external/config.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/external/config.yaml)","tokens":300,"sizeBytes":175},{"name":"docker-compose.yaml","path":"plugins/external/llmguard/docker-compose.yaml","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/external/llmguard/docker-compose.yaml","title":"Llmguard Skill","category":"anthropic-skill","format":"yaml","content":"# Llmguard Skill\n\nPath: `plugins/external/llmguard/docker-compose.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/external/llmguard/docker-compose.yaml)","tokens":300,"sizeBytes":209},{"name":"config-all-in-one.yaml","path":"plugins/external/llmguard/examples/config-all-in-one.yaml","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/external/llmguard/examples/config-all-in-one.yaml","title":"Examples Skill","category":"anthropic-skill","format":"yaml","content":"# Examples Skill\n\nPath: `plugins/external/llmguard/examples/config-all-in-one.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/external/llmguard/examples/config-all-in-one.yaml)","tokens":300,"sizeBytes":233},{"name":"config-complex-policy.yaml","path":"plugins/external/llmguard/examples/config-complex-policy.yaml","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/external/llmguard/examples/config-complex-policy.yaml","title":"Examples Skill","category":"anthropic-skill","format":"yaml","content":"# Examples Skill\n\nPath: `plugins/external/llmguard/examples/config-complex-policy.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/external/llmguard/examples/config-complex-policy.yaml)","tokens":300,"sizeBytes":241},{"name":"config-input-output-filter.yaml","path":"plugins/external/llmguard/examples/config-input-output-filter.yaml","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/external/llmguard/examples/config-input-output-filter.yaml","title":"Examples Skill","category":"anthropic-skill","format":"yaml","content":"# Examples Skill\n\nPath: `plugins/external/llmguard/examples/config-input-output-filter.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/external/llmguard/examples/config-input-output-filter.yaml)","tokens":300,"sizeBytes":251},{"name":"config-input-output-sanitizer.yaml","path":"plugins/external/llmguard/examples/config-input-output-sanitizer.yaml","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/external/llmguard/examples/config-input-output-sanitizer.yaml","title":"Examples Skill","category":"anthropic-skill","format":"yaml","content":"# Examples Skill\n\nPath: `plugins/external/llmguard/examples/config-input-output-sanitizer.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/external/llmguard/examples/config-input-output-sanitizer.yaml)","tokens":300,"sizeBytes":257},{"name":"config-separate-plugins-filters-sanitizers.yaml","path":"plugins/external/llmguard/examples/config-separate-plugins-filters-sanitizers.yaml","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/external/llmguard/examples/config-separate-plugins-filters-sanitizers.yaml","title":"Examples Skill","category":"anthropic-skill","format":"yaml","content":"# Examples Skill\n\nPath: `plugins/external/llmguard/examples/config-separate-plugins-filters-sanitizers.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/external/llmguard/examples/config-separate-plugins-filters-sanitizers.yaml)","tokens":300,"sizeBytes":283},{"name":"plugin-manifest.yaml","path":"plugins/external/llmguard/llmguardplugin/plugin-manifest.yaml","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/external/llmguard/llmguardplugin/plugin-manifest.yaml","title":"Llmguardplugin Skill","category":"anthropic-skill","format":"yaml","content":"# Llmguardplugin Skill\n\nPath: `plugins/external/llmguard/llmguardplugin/plugin-manifest.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/external/llmguard/llmguardplugin/plugin-manifest.yaml)","tokens":300,"sizeBytes":247},{"name":"config.yaml","path":"plugins/external/llmguard/resources/plugins/config.yaml","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/external/llmguard/resources/plugins/config.yaml","title":"Plugins Skill","category":"anthropic-skill","format":"yaml","content":"# Plugins Skill\n\nPath: `plugins/external/llmguard/resources/plugins/config.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/external/llmguard/resources/plugins/config.yaml)","tokens":300,"sizeBytes":228},{"name":"config.yaml","path":"plugins/external/llmguard/resources/runtime/config.yaml","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/external/llmguard/resources/runtime/config.yaml","title":"Runtime Skill","category":"anthropic-skill","format":"yaml","content":"# Runtime Skill\n\nPath: `plugins/external/llmguard/resources/runtime/config.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/external/llmguard/resources/runtime/config.yaml)","tokens":300,"sizeBytes":228},{"name":"plugin-manifest.yaml","path":"plugins/external/opa/opapluginfilter/plugin-manifest.yaml","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/external/opa/opapluginfilter/plugin-manifest.yaml","title":"Opapluginfilter Skill","category":"anthropic-skill","format":"yaml","content":"# Opapluginfilter Skill\n\nPath: `plugins/external/opa/opapluginfilter/plugin-manifest.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/external/opa/opapluginfilter/plugin-manifest.yaml)","tokens":300,"sizeBytes":240},{"name":"config.yaml","path":"plugins/external/opa/resources/plugins/config.yaml","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/external/opa/resources/plugins/config.yaml","title":"Plugins Skill","category":"anthropic-skill","format":"yaml","content":"# Plugins Skill\n\nPath: `plugins/external/opa/resources/plugins/config.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/external/opa/resources/plugins/config.yaml)","tokens":300,"sizeBytes":218},{"name":"config.yaml","path":"plugins/external/opa/resources/runtime/config.yaml","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/external/opa/resources/runtime/config.yaml","title":"Runtime Skill","category":"anthropic-skill","format":"yaml","content":"# Runtime Skill\n\nPath: `plugins/external/opa/resources/runtime/config.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/external/opa/resources/runtime/config.yaml)","tokens":300,"sizeBytes":218},{"name":"plugin-manifest.yaml","path":"plugins/file_type_allowlist/plugin-manifest.yaml","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/file_type_allowlist/plugin-manifest.yaml","title":"File_type_allowlist Skill","category":"anthropic-skill","format":"yaml","content":"# File_type_allowlist Skill\n\nPath: `plugins/file_type_allowlist/plugin-manifest.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/file_type_allowlist/plugin-manifest.yaml)","tokens":300,"sizeBytes":226},{"name":"plugin-manifest.yaml","path":"plugins/harmful_content_detector/plugin-manifest.yaml","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/harmful_content_detector/plugin-manifest.yaml","title":"Harmful_content_detector Skill","category":"anthropic-skill","format":"yaml","content":"# Harmful_content_detector Skill\n\nPath: `plugins/harmful_content_detector/plugin-manifest.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/harmful_content_detector/plugin-manifest.yaml)","tokens":300,"sizeBytes":241},{"name":"config.yaml","path":"plugins/header_filter/config.yaml","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/header_filter/config.yaml","title":"Header_filter Skill","category":"anthropic-skill","format":"yaml","content":"# Header_filter Skill\n\nPath: `plugins/header_filter/config.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/header_filter/config.yaml)","tokens":300,"sizeBytes":190},{"name":"plugin-manifest.yaml","path":"plugins/header_injector/plugin-manifest.yaml","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/header_injector/plugin-manifest.yaml","title":"Header_injector Skill","category":"anthropic-skill","format":"yaml","content":"# Header_injector Skill\n\nPath: `plugins/header_injector/plugin-manifest.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/header_injector/plugin-manifest.yaml)","tokens":300,"sizeBytes":214},{"name":"plugin-manifest.yaml","path":"plugins/html_to_markdown/plugin-manifest.yaml","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/html_to_markdown/plugin-manifest.yaml","title":"Html_to_markdown Skill","category":"anthropic-skill","format":"yaml","content":"# Html_to_markdown Skill\n\nPath: `plugins/html_to_markdown/plugin-manifest.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/html_to_markdown/plugin-manifest.yaml)","tokens":300,"sizeBytes":217},{"name":"install.yaml","path":"plugins/install.yaml","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/install.yaml","title":"Plugins Skill","category":"anthropic-skill","format":"yaml","content":"# Plugins Skill\n\nPath: `plugins/install.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/install.yaml)","tokens":300,"sizeBytes":158},{"name":"plugin-manifest.yaml","path":"plugins/json_repair/plugin-manifest.yaml","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/json_repair/plugin-manifest.yaml","title":"Json_repair Skill","category":"anthropic-skill","format":"yaml","content":"# Json_repair Skill\n\nPath: `plugins/json_repair/plugin-manifest.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/json_repair/plugin-manifest.yaml)","tokens":300,"sizeBytes":202},{"name":"plugin-manifest.yaml","path":"plugins/jwt_claims_extraction/plugin-manifest.yaml","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/jwt_claims_extraction/plugin-manifest.yaml","title":"Jwt_claims_extraction Skill","category":"anthropic-skill","format":"yaml","content":"# Jwt_claims_extraction Skill\n\nPath: `plugins/jwt_claims_extraction/plugin-manifest.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/jwt_claims_extraction/plugin-manifest.yaml)","tokens":300,"sizeBytes":232},{"name":"plugin-manifest.yaml","path":"plugins/license_header_injector/plugin-manifest.yaml","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/license_header_injector/plugin-manifest.yaml","title":"License_header_injector Skill","category":"anthropic-skill","format":"yaml","content":"# License_header_injector Skill\n\nPath: `plugins/license_header_injector/plugin-manifest.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/license_header_injector/plugin-manifest.yaml)","tokens":300,"sizeBytes":238},{"name":"plugin-manifest.yaml","path":"plugins/markdown_cleaner/plugin-manifest.yaml","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/markdown_cleaner/plugin-manifest.yaml","title":"Markdown_cleaner Skill","category":"anthropic-skill","format":"yaml","content":"# Markdown_cleaner Skill\n\nPath: `plugins/markdown_cleaner/plugin-manifest.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/markdown_cleaner/plugin-manifest.yaml)","tokens":300,"sizeBytes":217},{"name":"plugin_parity_config.yaml","path":"plugins/plugin_parity_config.yaml","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/plugin_parity_config.yaml","title":"Plugins Skill","category":"anthropic-skill","format":"yaml","content":"# Plugins Skill\n\nPath: `plugins/plugin_parity_config.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/plugin_parity_config.yaml)","tokens":300,"sizeBytes":184},{"name":"primary_worker_multiinstance_config.yaml","path":"plugins/primary_worker_multiinstance_config.yaml","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/primary_worker_multiinstance_config.yaml","title":"Plugins Skill","category":"anthropic-skill","format":"yaml","content":"# Plugins Skill\n\nPath: `plugins/primary_worker_multiinstance_config.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/primary_worker_multiinstance_config.yaml)","tokens":300,"sizeBytes":214},{"name":"plugin-manifest.yaml","path":"plugins/privacy_notice_injector/plugin-manifest.yaml","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/privacy_notice_injector/plugin-manifest.yaml","title":"Privacy_notice_injector Skill","category":"anthropic-skill","format":"yaml","content":"# Privacy_notice_injector Skill\n\nPath: `plugins/privacy_notice_injector/plugin-manifest.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/privacy_notice_injector/plugin-manifest.yaml)","tokens":300,"sizeBytes":238},{"name":"plugin-manifest.yaml","path":"plugins/regex_filter/plugin-manifest.yaml","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/regex_filter/plugin-manifest.yaml","title":"Regex_filter Skill","category":"anthropic-skill","format":"yaml","content":"# Regex_filter Skill\n\nPath: `plugins/regex_filter/plugin-manifest.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/regex_filter/plugin-manifest.yaml)","tokens":300,"sizeBytes":205},{"name":"plugin-manifest.yaml","path":"plugins/resource_filter/plugin-manifest.yaml","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/resource_filter/plugin-manifest.yaml","title":"Resource_filter Skill","category":"anthropic-skill","format":"yaml","content":"# Resource_filter Skill\n\nPath: `plugins/resource_filter/plugin-manifest.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/resource_filter/plugin-manifest.yaml)","tokens":300,"sizeBytes":214},{"name":"config-http.yaml","path":"plugins/resources/server/config-http.yaml","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/resources/server/config-http.yaml","title":"Server Skill","category":"anthropic-skill","format":"yaml","content":"# Server Skill\n\nPath: `plugins/resources/server/config-http.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/resources/server/config-http.yaml)","tokens":300,"sizeBytes":199},{"name":"config-stdio.yaml","path":"plugins/resources/server/config-stdio.yaml","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/resources/server/config-stdio.yaml","title":"Server Skill","category":"anthropic-skill","format":"yaml","content":"# Server Skill\n\nPath: `plugins/resources/server/config-stdio.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/resources/server/config-stdio.yaml)","tokens":300,"sizeBytes":201},{"name":"plugin-manifest.yaml","path":"plugins/response_cache_by_prompt/plugin-manifest.yaml","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/response_cache_by_prompt/plugin-manifest.yaml","title":"Response_cache_by_prompt Skill","category":"anthropic-skill","format":"yaml","content":"# Response_cache_by_prompt Skill\n\nPath: `plugins/response_cache_by_prompt/plugin-manifest.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/response_cache_by_prompt/plugin-manifest.yaml)","tokens":300,"sizeBytes":241},{"name":"plugin-manifest.yaml","path":"plugins/robots_license_guard/plugin-manifest.yaml","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/robots_license_guard/plugin-manifest.yaml","title":"Robots_license_guard Skill","category":"anthropic-skill","format":"yaml","content":"# Robots_license_guard Skill\n\nPath: `plugins/robots_license_guard/plugin-manifest.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/robots_license_guard/plugin-manifest.yaml)","tokens":300,"sizeBytes":229},{"name":"plugin-manifest.yaml","path":"plugins/safe_html_sanitizer/plugin-manifest.yaml","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/safe_html_sanitizer/plugin-manifest.yaml","title":"Safe_html_sanitizer Skill","category":"anthropic-skill","format":"yaml","content":"# Safe_html_sanitizer Skill\n\nPath: `plugins/safe_html_sanitizer/plugin-manifest.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/safe_html_sanitizer/plugin-manifest.yaml)","tokens":300,"sizeBytes":226},{"name":"plugin-manifest.yaml","path":"plugins/schema_guard/plugin-manifest.yaml","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/schema_guard/plugin-manifest.yaml","title":"Schema_guard Skill","category":"anthropic-skill","format":"yaml","content":"# Schema_guard Skill\n\nPath: `plugins/schema_guard/plugin-manifest.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/schema_guard/plugin-manifest.yaml)","tokens":300,"sizeBytes":205},{"name":"plugin-manifest.yaml","path":"plugins/sparc_static_validator/plugin-manifest.yaml","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/sparc_static_validator/plugin-manifest.yaml","title":"Sparc_static_validator Skill","category":"anthropic-skill","format":"yaml","content":"# Sparc_static_validator Skill\n\nPath: `plugins/sparc_static_validator/plugin-manifest.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/sparc_static_validator/plugin-manifest.yaml)","tokens":300,"sizeBytes":235},{"name":"plugin-manifest.yaml","path":"plugins/summarizer/plugin-manifest.yaml","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/summarizer/plugin-manifest.yaml","title":"Summarizer Skill","category":"anthropic-skill","format":"yaml","content":"# Summarizer Skill\n\nPath: `plugins/summarizer/plugin-manifest.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/summarizer/plugin-manifest.yaml)","tokens":300,"sizeBytes":199},{"name":"plugin-manifest.yaml","path":"plugins/timezone_translator/plugin-manifest.yaml","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/timezone_translator/plugin-manifest.yaml","title":"Timezone_translator Skill","category":"anthropic-skill","format":"yaml","content":"# Timezone_translator Skill\n\nPath: `plugins/timezone_translator/plugin-manifest.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/timezone_translator/plugin-manifest.yaml)","tokens":300,"sizeBytes":226},{"name":"plugin-manifest.yaml","path":"plugins/tools_telemetry_exporter/plugin-manifest.yaml","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/tools_telemetry_exporter/plugin-manifest.yaml","title":"Tools_telemetry_exporter Skill","category":"anthropic-skill","format":"yaml","content":"# Tools_telemetry_exporter Skill\n\nPath: `plugins/tools_telemetry_exporter/plugin-manifest.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/tools_telemetry_exporter/plugin-manifest.yaml)","tokens":300,"sizeBytes":241},{"name":"plugin-manifest.yaml","path":"plugins/toon_encoder/plugin-manifest.yaml","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/toon_encoder/plugin-manifest.yaml","title":"Toon_encoder Skill","category":"anthropic-skill","format":"yaml","content":"# Toon_encoder Skill\n\nPath: `plugins/toon_encoder/plugin-manifest.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/toon_encoder/plugin-manifest.yaml)","tokens":300,"sizeBytes":205},{"name":"default_rules.json","path":"plugins/unified_pdp/default_rules.json","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/unified_pdp/default_rules.json","title":"Unified_pdp Skill","category":"anthropic-skill","format":"json","content":"# Unified_pdp Skill\n\nPath: `plugins/unified_pdp/default_rules.json`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/unified_pdp/default_rules.json)","tokens":300,"sizeBytes":198},{"name":"config_vault_e2e.yaml","path":"plugins/vault/config_vault_e2e.yaml","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/vault/config_vault_e2e.yaml","title":"Vault Skill","category":"anthropic-skill","format":"yaml","content":"# Vault Skill\n\nPath: `plugins/vault/config_vault_e2e.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/vault/config_vault_e2e.yaml)","tokens":300,"sizeBytes":186},{"name":"plugin-manifest.yaml","path":"plugins/vault/plugin-manifest.yaml","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/vault/plugin-manifest.yaml","title":"Vault Skill","category":"anthropic-skill","format":"yaml","content":"# Vault Skill\n\nPath: `plugins/vault/plugin-manifest.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/vault/plugin-manifest.yaml)","tokens":300,"sizeBytes":184},{"name":"plugin-manifest.yaml","path":"plugins/virus_total_checker/plugin-manifest.yaml","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/virus_total_checker/plugin-manifest.yaml","title":"Virus_total_checker Skill","category":"anthropic-skill","format":"yaml","content":"# Virus_total_checker Skill\n\nPath: `plugins/virus_total_checker/plugin-manifest.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/virus_total_checker/plugin-manifest.yaml)","tokens":300,"sizeBytes":226},{"name":"plugin-manifest.yaml","path":"plugins/watchdog/plugin-manifest.yaml","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/watchdog/plugin-manifest.yaml","title":"Watchdog Skill","category":"anthropic-skill","format":"yaml","content":"# Watchdog Skill\n\nPath: `plugins/watchdog/plugin-manifest.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/watchdog/plugin-manifest.yaml)","tokens":300,"sizeBytes":193},{"name":"plugin-manifest.yaml","path":"plugins/webhook_notification/plugin-manifest.yaml","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/webhook_notification/plugin-manifest.yaml","title":"Webhook_notification Skill","category":"anthropic-skill","format":"yaml","content":"# Webhook_notification Skill\n\nPath: `plugins/webhook_notification/plugin-manifest.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/webhook_notification/plugin-manifest.yaml)","tokens":300,"sizeBytes":229},{"name":"test_config.yaml","path":"plugins/webhook_notification/test_config.yaml","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/webhook_notification/test_config.yaml","title":"Webhook_notification Skill","category":"anthropic-skill","format":"yaml","content":"# Webhook_notification Skill\n\nPath: `plugins/webhook_notification/test_config.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/webhook_notification/test_config.yaml)","tokens":300,"sizeBytes":221},{"name":"TESTING.md","path":"plugins/webhook_notification/TESTING.md","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/webhook_notification/TESTING.md","title":"Webhook_notification Skill","category":"anthropic-skill","format":"markdown","content":"# Webhook_notification Skill\n\nPath: `plugins/webhook_notification/TESTING.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/webhook_notification/TESTING.md)","tokens":300,"sizeBytes":209},{"name":"convert_time.json","path":"tests/performance/payloads/tools/convert_time.json","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/tests/performance/payloads/tools/convert_time.json","title":"Tools Skill","category":"anthropic-skill","format":"json","content":"# Tools Skill\n\nPath: `tests/performance/payloads/tools/convert_time.json`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/tests/performance/payloads/tools/convert_time.json)","tokens":300,"sizeBytes":216},{"name":"get_system_time.json","path":"tests/performance/payloads/tools/get_system_time.json","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/tests/performance/payloads/tools/get_system_time.json","title":"Tools Skill","category":"anthropic-skill","format":"json","content":"# Tools Skill\n\nPath: `tests/performance/payloads/tools/get_system_time.json`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/tests/performance/payloads/tools/get_system_time.json)","tokens":300,"sizeBytes":222},{"name":"list_tools.json","path":"tests/performance/payloads/tools/list_tools.json","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/tests/performance/payloads/tools/list_tools.json","title":"Tools Skill","category":"anthropic-skill","format":"json","content":"# Tools Skill\n\nPath: `tests/performance/payloads/tools/list_tools.json`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/tests/performance/payloads/tools/list_tools.json)","tokens":300,"sizeBytes":212},{"name":"config.yaml","path":"tests/performance/plugins/config.yaml","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/tests/performance/plugins/config.yaml","title":"Plugins Skill","category":"anthropic-skill","format":"yaml","content":"# Plugins Skill\n\nPath: `tests/performance/plugins/config.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/tests/performance/plugins/config.yaml)","tokens":300,"sizeBytes":192},{"name":"agent_context.yaml","path":"tests/unit/mcpgateway/plugins/fixtures/configs/agent_context.yaml","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/tests/unit/mcpgateway/plugins/fixtures/configs/agent_context.yaml","title":"Configs Skill","category":"anthropic-skill","format":"yaml","content":"# Configs Skill\n\nPath: `tests/unit/mcpgateway/plugins/fixtures/configs/agent_context.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/tests/unit/mcpgateway/plugins/fixtures/configs/agent_context.yaml)","tokens":300,"sizeBytes":248},{"name":"agent_filter.yaml","path":"tests/unit/mcpgateway/plugins/fixtures/configs/agent_filter.yaml","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/tests/unit/mcpgateway/plugins/fixtures/configs/agent_filter.yaml","title":"Configs Skill","category":"anthropic-skill","format":"yaml","content":"# Configs Skill\n\nPath: `tests/unit/mcpgateway/plugins/fixtures/configs/agent_filter.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/tests/unit/mcpgateway/plugins/fixtures/configs/agent_filter.yaml)","tokens":300,"sizeBytes":246},{"name":"agent_passthrough.yaml","path":"tests/unit/mcpgateway/plugins/fixtures/configs/agent_passthrough.yaml","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/tests/unit/mcpgateway/plugins/fixtures/configs/agent_passthrough.yaml","title":"Configs Skill","category":"anthropic-skill","format":"yaml","content":"# Configs Skill\n\nPath: `tests/unit/mcpgateway/plugins/fixtures/configs/agent_passthrough.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/tests/unit/mcpgateway/plugins/fixtures/configs/agent_passthrough.yaml)","tokens":300,"sizeBytes":256},{"name":"context_multiplugins.yaml","path":"tests/unit/mcpgateway/plugins/fixtures/configs/context_multiplugins.yaml","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/tests/unit/mcpgateway/plugins/fixtures/configs/context_multiplugins.yaml","title":"Configs Skill","category":"anthropic-skill","format":"yaml","content":"# Configs Skill\n\nPath: `tests/unit/mcpgateway/plugins/fixtures/configs/context_multiplugins.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/tests/unit/mcpgateway/plugins/fixtures/configs/context_multiplugins.yaml)","tokens":300,"sizeBytes":262},{"name":"context_plugin.yaml","path":"tests/unit/mcpgateway/plugins/fixtures/configs/context_plugin.yaml","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/tests/unit/mcpgateway/plugins/fixtures/configs/context_plugin.yaml","title":"Configs Skill","category":"anthropic-skill","format":"yaml","content":"# Configs Skill\n\nPath: `tests/unit/mcpgateway/plugins/fixtures/configs/context_plugin.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/tests/unit/mcpgateway/plugins/fixtures/configs/context_plugin.yaml)","tokens":300,"sizeBytes":250},{"name":"context_stdio_external_plugins.yaml","path":"tests/unit/mcpgateway/plugins/fixtures/configs/context_stdio_external_plugins.yaml","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/tests/unit/mcpgateway/plugins/fixtures/configs/context_stdio_external_plugins.yaml","title":"Configs Skill","category":"anthropic-skill","format":"yaml","content":"# Configs Skill\n\nPath: `tests/unit/mcpgateway/plugins/fixtures/configs/context_stdio_external_plugins.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/tests/unit/mcpgateway/plugins/fixtures/configs/context_stdio_external_plugins.yaml)","tokens":300,"sizeBytes":282},{"name":"cross_hook_context.yaml","path":"tests/unit/mcpgateway/plugins/fixtures/configs/cross_hook_context.yaml","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/tests/unit/mcpgateway/plugins/fixtures/configs/cross_hook_context.yaml","title":"Configs Skill","category":"anthropic-skill","format":"yaml","content":"# Configs Skill\n\nPath: `tests/unit/mcpgateway/plugins/fixtures/configs/cross_hook_context.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/tests/unit/mcpgateway/plugins/fixtures/configs/cross_hook_context.yaml)","tokens":300,"sizeBytes":258},{"name":"error_plugin_raise_error_false.yaml","path":"tests/unit/mcpgateway/plugins/fixtures/configs/error_plugin_raise_error_false.yaml","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/tests/unit/mcpgateway/plugins/fixtures/configs/error_plugin_raise_error_false.yaml","title":"Configs Skill","category":"anthropic-skill","format":"yaml","content":"# Configs Skill\n\nPath: `tests/unit/mcpgateway/plugins/fixtures/configs/error_plugin_raise_error_false.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/tests/unit/mcpgateway/plugins/fixtures/configs/error_plugin_raise_error_false.yaml)","tokens":300,"sizeBytes":282},{"name":"error_plugin.yaml","path":"tests/unit/mcpgateway/plugins/fixtures/configs/error_plugin.yaml","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/tests/unit/mcpgateway/plugins/fixtures/configs/error_plugin.yaml","title":"Configs Skill","category":"anthropic-skill","format":"yaml","content":"# Configs Skill\n\nPath: `tests/unit/mcpgateway/plugins/fixtures/configs/error_plugin.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/tests/unit/mcpgateway/plugins/fixtures/configs/error_plugin.yaml)","tokens":300,"sizeBytes":246},{"name":"error_stdio_external_plugin.yaml","path":"tests/unit/mcpgateway/plugins/fixtures/configs/error_stdio_external_plugin.yaml","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/tests/unit/mcpgateway/plugins/fixtures/configs/error_stdio_external_plugin.yaml","title":"Configs Skill","category":"anthropic-skill","format":"yaml","content":"# Configs Skill\n\nPath: `tests/unit/mcpgateway/plugins/fixtures/configs/error_stdio_external_plugin.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/tests/unit/mcpgateway/plugins/fixtures/configs/error_stdio_external_plugin.yaml)","tokens":300,"sizeBytes":276},{"name":"init_hooks_plugins_test.yaml","path":"tests/unit/mcpgateway/plugins/fixtures/configs/init_hooks_plugins_test.yaml","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/tests/unit/mcpgateway/plugins/fixtures/configs/init_hooks_plugins_test.yaml","title":"Configs Skill","category":"anthropic-skill","format":"yaml","content":"# Configs Skill\n\nPath: `tests/unit/mcpgateway/plugins/fixtures/configs/init_hooks_plugins_test.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/tests/unit/mcpgateway/plugins/fixtures/configs/init_hooks_plugins_test.yaml)","tokens":300,"sizeBytes":268},{"name":"invalid_single_plugin.yaml","path":"tests/unit/mcpgateway/plugins/fixtures/configs/invalid_single_plugin.yaml","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/tests/unit/mcpgateway/plugins/fixtures/configs/invalid_single_plugin.yaml","title":"Configs Skill","category":"anthropic-skill","format":"yaml","content":"# Configs Skill\n\nPath: `tests/unit/mcpgateway/plugins/fixtures/configs/invalid_single_plugin.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/tests/unit/mcpgateway/plugins/fixtures/configs/invalid_single_plugin.yaml)","tokens":300,"sizeBytes":264},{"name":"test_hook_patterns_config.yaml","path":"tests/unit/mcpgateway/plugins/fixtures/configs/test_hook_patterns_config.yaml","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/tests/unit/mcpgateway/plugins/fixtures/configs/test_hook_patterns_config.yaml","title":"Configs Skill","category":"anthropic-skill","format":"yaml","content":"# Configs Skill\n\nPath: `tests/unit/mcpgateway/plugins/fixtures/configs/test_hook_patterns_config.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/tests/unit/mcpgateway/plugins/fixtures/configs/test_hook_patterns_config.yaml)","tokens":300,"sizeBytes":272},{"name":"tool_headers_metadata_plugin.yaml","path":"tests/unit/mcpgateway/plugins/fixtures/configs/tool_headers_metadata_plugin.yaml","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/tests/unit/mcpgateway/plugins/fixtures/configs/tool_headers_metadata_plugin.yaml","title":"Configs Skill","category":"anthropic-skill","format":"yaml","content":"# Configs Skill\n\nPath: `tests/unit/mcpgateway/plugins/fixtures/configs/tool_headers_metadata_plugin.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/tests/unit/mcpgateway/plugins/fixtures/configs/tool_headers_metadata_plugin.yaml)","tokens":300,"sizeBytes":278},{"name":"tool_headers_plugin.yaml","path":"tests/unit/mcpgateway/plugins/fixtures/configs/tool_headers_plugin.yaml","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/tests/unit/mcpgateway/plugins/fixtures/configs/tool_headers_plugin.yaml","title":"Configs Skill","category":"anthropic-skill","format":"yaml","content":"# Configs Skill\n\nPath: `tests/unit/mcpgateway/plugins/fixtures/configs/tool_headers_plugin.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/tests/unit/mcpgateway/plugins/fixtures/configs/tool_headers_plugin.yaml)","tokens":300,"sizeBytes":260},{"name":"valid_grpc_external_plugin_manager.yaml","path":"tests/unit/mcpgateway/plugins/fixtures/configs/valid_grpc_external_plugin_manager.yaml","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/tests/unit/mcpgateway/plugins/fixtures/configs/valid_grpc_external_plugin_manager.yaml","title":"Configs Skill","category":"anthropic-skill","format":"yaml","content":"# Configs Skill\n\nPath: `tests/unit/mcpgateway/plugins/fixtures/configs/valid_grpc_external_plugin_manager.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/tests/unit/mcpgateway/plugins/fixtures/configs/valid_grpc_external_plugin_manager.yaml)","tokens":300,"sizeBytes":290},{"name":"valid_grpc_external_plugin.yaml","path":"tests/unit/mcpgateway/plugins/fixtures/configs/valid_grpc_external_plugin.yaml","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/tests/unit/mcpgateway/plugins/fixtures/configs/valid_grpc_external_plugin.yaml","title":"Configs Skill","category":"anthropic-skill","format":"yaml","content":"# Configs Skill\n\nPath: `tests/unit/mcpgateway/plugins/fixtures/configs/valid_grpc_external_plugin.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/tests/unit/mcpgateway/plugins/fixtures/configs/valid_grpc_external_plugin.yaml)","tokens":300,"sizeBytes":274},{"name":"valid_multiple_plugins_filter.yaml","path":"tests/unit/mcpgateway/plugins/fixtures/configs/valid_multiple_plugins_filter.yaml","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/tests/unit/mcpgateway/plugins/fixtures/configs/valid_multiple_plugins_filter.yaml","title":"Configs Skill","category":"anthropic-skill","format":"yaml","content":"# Configs Skill\n\nPath: `tests/unit/mcpgateway/plugins/fixtures/configs/valid_multiple_plugins_filter.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/tests/unit/mcpgateway/plugins/fixtures/configs/valid_multiple_plugins_filter.yaml)","tokens":300,"sizeBytes":280},{"name":"valid_multiple_plugins.yaml","path":"tests/unit/mcpgateway/plugins/fixtures/configs/valid_multiple_plugins.yaml","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/tests/unit/mcpgateway/plugins/fixtures/configs/valid_multiple_plugins.yaml","title":"Configs Skill","category":"anthropic-skill","format":"yaml","content":"# Configs Skill\n\nPath: `tests/unit/mcpgateway/plugins/fixtures/configs/valid_multiple_plugins.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/tests/unit/mcpgateway/plugins/fixtures/configs/valid_multiple_plugins.yaml)","tokens":300,"sizeBytes":266},{"name":"valid_no_plugin.yaml","path":"tests/unit/mcpgateway/plugins/fixtures/configs/valid_no_plugin.yaml","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/tests/unit/mcpgateway/plugins/fixtures/configs/valid_no_plugin.yaml","title":"Configs Skill","category":"anthropic-skill","format":"yaml","content":"# Configs Skill\n\nPath: `tests/unit/mcpgateway/plugins/fixtures/configs/valid_no_plugin.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/tests/unit/mcpgateway/plugins/fixtures/configs/valid_no_plugin.yaml)","tokens":300,"sizeBytes":252},{"name":"valid_single_filter_plugin.yaml","path":"tests/unit/mcpgateway/plugins/fixtures/configs/valid_single_filter_plugin.yaml","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/tests/unit/mcpgateway/plugins/fixtures/configs/valid_single_filter_plugin.yaml","title":"Configs Skill","category":"anthropic-skill","format":"yaml","content":"# Configs Skill\n\nPath: `tests/unit/mcpgateway/plugins/fixtures/configs/valid_single_filter_plugin.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/tests/unit/mcpgateway/plugins/fixtures/configs/valid_single_filter_plugin.yaml)","tokens":300,"sizeBytes":274},{"name":"valid_single_plugin_passthrough.yaml","path":"tests/unit/mcpgateway/plugins/fixtures/configs/valid_single_plugin_passthrough.yaml","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/tests/unit/mcpgateway/plugins/fixtures/configs/valid_single_plugin_passthrough.yaml","title":"Configs Skill","category":"anthropic-skill","format":"yaml","content":"# Configs Skill\n\nPath: `tests/unit/mcpgateway/plugins/fixtures/configs/valid_single_plugin_passthrough.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/tests/unit/mcpgateway/plugins/fixtures/configs/valid_single_plugin_passthrough.yaml)","tokens":300,"sizeBytes":284},{"name":"valid_single_plugin.yaml","path":"tests/unit/mcpgateway/plugins/fixtures/configs/valid_single_plugin.yaml","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/tests/unit/mcpgateway/plugins/fixtures/configs/valid_single_plugin.yaml","title":"Configs Skill","category":"anthropic-skill","format":"yaml","content":"# Configs Skill\n\nPath: `tests/unit/mcpgateway/plugins/fixtures/configs/valid_single_plugin.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/tests/unit/mcpgateway/plugins/fixtures/configs/valid_single_plugin.yaml)","tokens":300,"sizeBytes":260},{"name":"valid_stdio_external_plugin_overrides.yaml","path":"tests/unit/mcpgateway/plugins/fixtures/configs/valid_stdio_external_plugin_overrides.yaml","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/tests/unit/mcpgateway/plugins/fixtures/configs/valid_stdio_external_plugin_overrides.yaml","title":"Configs Skill","category":"anthropic-skill","format":"yaml","content":"# Configs Skill\n\nPath: `tests/unit/mcpgateway/plugins/fixtures/configs/valid_stdio_external_plugin_overrides.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/tests/unit/mcpgateway/plugins/fixtures/configs/valid_stdio_external_plugin_overrides.yaml)","tokens":300,"sizeBytes":296},{"name":"valid_stdio_external_plugin_passthrough.yaml","path":"tests/unit/mcpgateway/plugins/fixtures/configs/valid_stdio_external_plugin_passthrough.yaml","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/tests/unit/mcpgateway/plugins/fixtures/configs/valid_stdio_external_plugin_passthrough.yaml","title":"Configs Skill","category":"anthropic-skill","format":"yaml","content":"# Configs Skill\n\nPath: `tests/unit/mcpgateway/plugins/fixtures/configs/valid_stdio_external_plugin_passthrough.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/tests/unit/mcpgateway/plugins/fixtures/configs/valid_stdio_external_plugin_passthrough.yaml)","tokens":300,"sizeBytes":300},{"name":"valid_stdio_external_plugin_regex.yaml","path":"tests/unit/mcpgateway/plugins/fixtures/configs/valid_stdio_external_plugin_regex.yaml","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/tests/unit/mcpgateway/plugins/fixtures/configs/valid_stdio_external_plugin_regex.yaml","title":"Configs Skill","category":"anthropic-skill","format":"yaml","content":"# Configs Skill\n\nPath: `tests/unit/mcpgateway/plugins/fixtures/configs/valid_stdio_external_plugin_regex.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/tests/unit/mcpgateway/plugins/fixtures/configs/valid_stdio_external_plugin_regex.yaml)","tokens":300,"sizeBytes":288},{"name":"valid_stdio_external_plugin.yaml","path":"tests/unit/mcpgateway/plugins/fixtures/configs/valid_stdio_external_plugin.yaml","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/tests/unit/mcpgateway/plugins/fixtures/configs/valid_stdio_external_plugin.yaml","title":"Configs Skill","category":"anthropic-skill","format":"yaml","content":"# Configs Skill\n\nPath: `tests/unit/mcpgateway/plugins/fixtures/configs/valid_stdio_external_plugin.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/tests/unit/mcpgateway/plugins/fixtures/configs/valid_stdio_external_plugin.yaml)","tokens":300,"sizeBytes":276},{"name":"valid_strhttp_external_plugin_overrides.yaml","path":"tests/unit/mcpgateway/plugins/fixtures/configs/valid_strhttp_external_plugin_overrides.yaml","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/tests/unit/mcpgateway/plugins/fixtures/configs/valid_strhttp_external_plugin_overrides.yaml","title":"Configs Skill","category":"anthropic-skill","format":"yaml","content":"# Configs Skill\n\nPath: `tests/unit/mcpgateway/plugins/fixtures/configs/valid_strhttp_external_plugin_overrides.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/tests/unit/mcpgateway/plugins/fixtures/configs/valid_strhttp_external_plugin_overrides.yaml)","tokens":300,"sizeBytes":300},{"name":"valid_strhttp_external_plugin_regex.yaml","path":"tests/unit/mcpgateway/plugins/fixtures/configs/valid_strhttp_external_plugin_regex.yaml","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/tests/unit/mcpgateway/plugins/fixtures/configs/valid_strhttp_external_plugin_regex.yaml","title":"Configs Skill","category":"anthropic-skill","format":"yaml","content":"# Configs Skill\n\nPath: `tests/unit/mcpgateway/plugins/fixtures/configs/valid_strhttp_external_plugin_regex.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/tests/unit/mcpgateway/plugins/fixtures/configs/valid_strhttp_external_plugin_regex.yaml)","tokens":300,"sizeBytes":292},{"name":"valid_tool_hooks.yaml","path":"tests/unit/mcpgateway/plugins/fixtures/configs/valid_tool_hooks.yaml","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/tests/unit/mcpgateway/plugins/fixtures/configs/valid_tool_hooks.yaml","title":"Configs Skill","category":"anthropic-skill","format":"yaml","content":"# Configs Skill\n\nPath: `tests/unit/mcpgateway/plugins/fixtures/configs/valid_tool_hooks.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/tests/unit/mcpgateway/plugins/fixtures/configs/valid_tool_hooks.yaml)","tokens":300,"sizeBytes":254},{"name":"valid_unix_external_plugin_manager.yaml","path":"tests/unit/mcpgateway/plugins/fixtures/configs/valid_unix_external_plugin_manager.yaml","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/tests/unit/mcpgateway/plugins/fixtures/configs/valid_unix_external_plugin_manager.yaml","title":"Configs Skill","category":"anthropic-skill","format":"yaml","content":"# Configs Skill\n\nPath: `tests/unit/mcpgateway/plugins/fixtures/configs/valid_unix_external_plugin_manager.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/tests/unit/mcpgateway/plugins/fixtures/configs/valid_unix_external_plugin_manager.yaml)","tokens":300,"sizeBytes":290},{"name":"valid_unix_external_plugin.yaml","path":"tests/unit/mcpgateway/plugins/fixtures/configs/valid_unix_external_plugin.yaml","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/tests/unit/mcpgateway/plugins/fixtures/configs/valid_unix_external_plugin.yaml","title":"Configs Skill","category":"anthropic-skill","format":"yaml","content":"# Configs Skill\n\nPath: `tests/unit/mcpgateway/plugins/fixtures/configs/valid_unix_external_plugin.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/tests/unit/mcpgateway/plugins/fixtures/configs/valid_unix_external_plugin.yaml)","tokens":300,"sizeBytes":274},{"name":"install.yaml","path":"tests/unit/mcpgateway/plugins/fixtures/install.yaml","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/tests/unit/mcpgateway/plugins/fixtures/install.yaml","title":"Fixtures Skill","category":"anthropic-skill","format":"yaml","content":"# Fixtures Skill\n\nPath: `tests/unit/mcpgateway/plugins/fixtures/install.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/tests/unit/mcpgateway/plugins/fixtures/install.yaml)","tokens":300,"sizeBytes":221},{"name":"CLAUDE.md","path":"CLAUDE.md","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/CLAUDE.md","title":"Claude Agent Guidelines & System Prompt","category":"claude-rule","format":"markdown","content":"# AGENTS.md\n\nGuidelines for AI coding assistants working with this repository.\n\nFor domain-specific guidance, see subdirectory AGENTS.md files:\n- `tests/AGENTS.md` - Testing conventions and workflows\n- `plugins/AGENTS.md` - Plugin framework and development\n- `charts/AGENTS.md` - Helm chart operations\n- `docs/AGENTS.md` - Documentation authoring\n\n**Note:** The `llms/` directory holds LLM guidance of two kinds: end-user runtime guidance for using ContextForge, and work prompts for agents changing this repository. Where `llms/` guidance overlaps an `AGENTS.md` file, the `AGENTS.md` file is authoritative.\n\n## Skills\n\nTask-specific guidance lives in `.agents/skills/`. `.bob/skills` links to that directory. Load the matching skill before you start the task:\n\n- `asd-ste100`: write or rewrite prose for humans (review findings, issue and PR text, commit bodies) in ASD-STE100 style.\n- `pr-review`: write review findings, assign severity, judge blocking criteria.\n- `alembic-migrations`: add or change a database model, column, or migration.\n- `observability-audit-sessions`: change trace, span, metric, or audit writes.\n- `secret-detection`: resolve a `detect-secrets` finding or `.secrets.baseline` change.\n- `github-issues`: create, label, or triage an issue.\n- `contextforge-web-ui`: run or configure the `web_ui` compose service.\n- `mcp-helpers`: generate a JWT or register an MCP server locally.\n\n## Project Overview\n\nContextForge is an open source registry and proxy that federates MCP, A2A, and REST/gRPC APIs with centralized governance, discovery, and observability. It federates tools, agents, and APIs, optimizes agent and tool calling, and supports plugins, auth/RBAC, rate-limiting, virtual servers, multi-transport protocols, and an optional Admin UI.\n\n## Project Structure\n\n```\nmcpgateway/                 # Core FastAPI application\n├── main.py                 # Application entry point\n├── config.py               # Environment configuration\n├── db.py                   # SQLAlchemy ORM models and session management\n├── schemas.py              # Pydantic validation schemas\n├── services/               # Business logic layer (50+ services)\n├── routers/                # HTTP endpoint definitions (19 routers)\n├── middleware/             # Cross-cutting concerns (16 middleware)\n├── transports/             # Protocol implementations (SSE, WebSocket, stdio, streamable HTTP)\n├── plugins/                # Plugin integration (uses cpex external package)\n└── alembic/                # Database migrations\n\ntests/                      # Test suite (see tests/AGENTS.md)\nplugins/                    # Plugin implementations (see plugins/AGENTS.md)\ncharts/                     # Helm charts (see charts/AGENTS.md)\ndocs/                       # Architecture and usage documentation (see docs/AGENTS.md)\na2a-agents/                 # A2A agent implementations (used for testing/examples)\nllms/                       # End-user LLM guidance (not for code agents)\n```\n\n## Essential Commands\n\n### Setup\n```bash\ncp .env.example .env && make install-dev check-env    # Complete setup\nmake venv                          # Create virtual environment with uv\nmake install-dev                   # Install with dev dependencies (includes build-ui)\nmake check-env                     # Verify .env against .env.example\nmake build-ui                      # Rebuild Admin UI JS bundle (requires npm)\n```\n\n### Development\n```bash\nmake dev                          # Dev server on :8000 with autoreload\nmake serve                        # Production gunicorn on :4444\nmake serve-ssl                    # HTTPS on :4444 (creates certs if needed)\n```\n\n### Code Quality\n```bash\n# After writing code\nmake pre-commit\n\n# Before committing, use ty, mypy and pyrefly to check just the new files, then run:\nmake ruff bandit interrogate pylint verify\n```\n\n## Authentication & RBAC Overview\n\nContextForge implements a **two-layer security model**:\n\n1. **Token Scoping (Layer 1)**: Controls what resources a user CAN SEE (data filtering)\n2. **RBAC (Layer 2)**: Controls what actions a user CAN DO (permission checks)\n\n### Token Scoping Quick Reference\n\n**API / legacy tokens** — JWT `teams` claim is the sole authority (`normalize_token_teams()`):\n\n| JWT `teams` State | `is_admin: true` | `is_admin: false` |\n|-------------------|------------------|-------------------|\n| Key MISSING | PUBLIC-ONLY `[]` | PUBLIC-ONLY `[]` |\n| `teams: null` | ADMIN BYPASS | PUBLIC-ONLY `[]` |\n| `teams: []` | PUBLIC-ONLY `[]` | PUBLIC-ONLY `[]` |\n| `teams: [\"t1\"]` | Team + Public | Team + Public |\n\n**Session tokens** (`token_use: \"session\"`) — DB is the authority; JWT `teams` only narrows (`resolve_session_teams()`):\n\n| JWT `teams` State | DB admin? | Result | Access Level |\n|-------------------|-----------|--------|--------------|\n| any | yes | `None` | ADMIN BYPASS (DB authority) |\n| Missing/null/`[]` | no | DB teams | Full DB membership |\n| `[\"t1\"]` | no | intersection | Narrowed to overlap |\n| `[\"revoked\"]` | no | `[]` | Public-only (fail-closed) |\n\n**Key behaviors:**\n\n- **API/legacy tokens**: Missing `teams` key = public-only access (secure default). Admin bypass requires BOTH `teams: null` AND `is_admin: true`. `normalize_token_teams()` in `mcpgateway/auth.py` is the single source of truth.\n- **Token creation defaults to the creator's personal team**: `POST /tokens` (and admin-delegated creation) with no `team_id` no longer mints a `teams: null` (public-only) token for non-admin callers. `TokenCatalogService.get_default_team_id()` resolves the caller's (or, for admin delegation, the target's) personal team and `routers/tokens.py::create_token` uses it when the caller belongs to that team; it falls back to single-team inheritance, then to `team_id=None` plus a `TokenCreateResponse.warnings` entry only when neither applies (no personal team and multiple/zero teams). Un-narrowed admins are exempt — `team_id=None` for them is a deliberate global-scope token. The permission-containment check (`_get_caller_permissions`) still uses the *requested* `team_id`, not the defaulted one, so this does not raise the ceiling on what `scope.permissions` a caller may request. Separately, `derive_token_team_id()` in `mcpgateway/auth.py` — the function that turns a single-team token's claim into `request.state.team_id` for RBAC/rate-limit/routing context — excludes personal teams, since a personal team auto-grants `team_admin`; a personal-team-scoped token instead falls through to `check_any_team`, matching how `PermissionService._get_user_roles` already treats personal teams.\n- **Session tokens**: Admin bypass is determined by the DB `is_admin` flag, not the JWT `teams` claim. Non-admin sessions can be narrowed via JWT `teams`. `resolve_session_teams()` in `mcpgateway/auth.py` is the single policy point.\n- **Layer 1 only**: Token scoping controls visibility (what you can see). RBAC (Layer 2) is evaluated independently — session-token narrowing does not restrict which team roles are checked for permissions.\n- **External IdP tokens**: identities provisioned from trusted external SSO providers (see `SSO_API_TOKEN_AUTH_ENABLED`) are dispatched through the session-token table above (`resolve_session_teams()`), not the API/legacy table — `is_admin`/`teams` come from the persisted local user record, never from the external token's claims.\n\n### Implementation Helpers\n\nLayer-1 derivation is centralized in `mcpgateway/auth_context.py`. Route handlers must call these rather than re-deriving the rule inline:\n\n- `get_scoped_resource_access_context(request, user)` → `(user_email, token_teams)` — the visibility scope to pass into service fetch/list/read calls. Admin bypass is signalled by `token_teams=None` while `user_email` is **kept**, so the service can still owner-match the admin's own private rows. Public-only is `(email, [])`.\n- `get_request_identity(request, user)` → `(user_email, is_admin)` — the requester's own identity, for audit capture and header masking. Use when you need the identity independent of the visibility scope.\n- `get_rpc_filter_context(request, user)` → `(user_email, token_teams, is_admin)` — the raw pre-rule triple. Reserved for the few sites that genuinely need `is_admin` or the un-normalized teams (auth-context forwarding, run-ownership capture, tool-execution authorization); these carry a `Layer-1 exception` comment naming the reason.\n\nThe derived triple is memoized on `request.state` per principal, so calling the scope and identity helpers together costs one derivation rather than two.\n\n### Security Invariants (Required)\n\n- Treat `public` as platform-public scope, not internet-anonymous scope.\n- Explicit exception: when `MCP_REQUIRE_AUTH` is `false`, unauthenticated `/mcp` requests are allowed with public-only visibility — **unless** the target virtual server has `oauth_enabled` set to `True`, in which case unauthenticated requests are rejected with 401 regardless of the global setting.\n- Keep the two-layer model on every path:\n  - Layer 1: token scoping controls what a caller can see.\n  - Layer 2: RBAC controls what a caller can do.\n- Do not re-implement token team interpretation logic; use `normalize_token_teams()` for API/legacy tokens and `resolve_session_teams()` for session tokens (both in `mcpgateway/auth.py`).\n- Do not re-implement Layer 1 token scope semantics; use `token_scope_grants()` in `mcpgateway/middleware/rbac.py`, the single policy point shared by the RBAC decorators and `TokenScopingMiddleware`. Empty token scopes mean \"inherit from RBAC at runtime\" (what `TokenCatalogService._generate_token()` emits for tokens created without an explicit scope) and must never be treated as deny-all; `*` grants everything and `<category>.*` grants that category.\n- Do not accept inbound client auth tokens via URL query parameters.\n- Legacy `INSECURE_ALLOW_QUERYPARAM_AUTH` is interop-only for outbound peer auth and must remain opt-in and host-restricted.\n- High-risk transports must be feature-flagged and disabled by default.\n- Transport/session endpoints must authenticate before session establishment (or message forwarding) and enforce RBAC before processing actions.\n- Token-scoped route authorization must be default-deny for unmapped protected paths.\n- Never trust client-provided ownership fields (`owner_email`, `team_id`, session owner); derive authorization from authenticated identity and server-side state.\n- Security-sensitive changes must include deny-path regression tests (unauthenticated, wrong team, insufficient permissions, feature disabled).\n- A `token-exchange` OAuth grant (RFC 8693 / On-Behalf-Of) exists for gateways; with it, the user's inbound JWT is exchanged with a trusted Authorization Server and **never forwarded upstream** — only the exchanged token is sent to the downstream MCP server.\n- `token_url` on a `token-exchange` gateway is an SSRF / egress boundary: the user's ContextForge JWT is POSTed to it as the `subject_token`, it is validated at config time, and creating or modifying token-exchange gateways is a privileged action.\n- Audit token-exchange operations via the structured logging sink with a `correlation_id`; never log raw subject tokens or exchanged tokens.\n\n#### UAID Cross-Gateway Security\n\n- UAID cross-gateway routing requires explicit domain allowlist (fail-closed default)\n- Empty `UAID_ALLOWED_DOMAINS` blocks all cross-gateway routing unless `UAID_ALLOW_ALL_DOMAINS=true`\n- Cross-gateway calls forward bearer tokens for RBAC enforcement on remote gateways\n- Both gateways must trust the same JWT issuer (shared `JWT_SECRET_KEY` or federated SSO)\n- `UAID_ALLOW_ALL_DOMAINS=true` is unsafe for production (bypasses allowlist validation)\n- Startup validation logs ERROR if A2A enabled but allowlist not configured\n- Remote gateway 401/403 responses raise `A2AAgentError` with troubleshooting guidance\n\n### Built-in Roles\n\n| Role | Scope | Key Permissions |\n|------|-------|-----------------|\n| `platform_admin` | global | `*` (all) |\n| `team_admin` | team | teams.*, tools.read/execute, resources.read |\n| `developer` | team | CRUD on gateways, servers, tools, resources, prompts, and A2A agents; execution/invocation; token self-service; dashboard access; team read/join |\n| `viewer` | team | tools.read/execute, resources.read |\n\nThe `developer` role includes gateway registration, update, and deletion.\nSee the [complete built-in permission table](docs/docs/manage/rbac.md#built-in-rbac-roles) before assigning this role.\n\n### Documentation\n\n- **Full RBAC guide**: `docs/docs/manage/rbac.md`\n- **Multi-tenancy architecture**: `docs/docs/architecture/multitenancy.md`\n- **OAuth token delegation**: `docs/docs/architecture/oauth-design.md`\n### User Identity Extraction\n\n**Canonical Email Precedence**: All user-email extraction helpers use a consistent **email-over-sub** precedence order to ensure forensic accuracy across visibility checks and audit logs:\n\n- When a user dict contains both `email` and `sub` keys, `email` takes precedence\n- The canonical implementation is `get_user_email()` in `mcpgateway/auth_context.py`\n- All other helpers (including `admin.get_user_email`) re-export or delegate to this canonical implementation\n- This ensures that the identity used for RBAC evaluation matches the identity logged in audit trails\n\n**Rationale**: The `email` field is the human-readable identifier used throughout AGENTS.md and user-facing documentation. Consistent precedence prevents forensic confusion where an incident review pivots on a logged email that differs from the principal actually evaluated by RBAC.\n\n**Two accessors**: `get_user_email()` in `mcpgateway/auth_context.py` is the e-mail-attribute accessor. `get_user_id()` in the same module is the identity accessor. Phase 1 populates both with the same value. Audit (`AuditTrail.user_id`) and observability (`ObservabilityTrace.user_email`) identity fields hold the canonical user_id from `get_user_id()`; the column names stay unchanged for compatibility. Routers compute `get_user_id(user)` and pass it to services as the `user_id` keyword; services keep `user_email` for ownership checks.\n\n\n## Separate-Session Writes\n\nObservability and audit writes use sessions separate from the request transaction. Never pass `db=db` to `AuditTrailService.log_action()` or `log_audit()`. Load the `observability-audit-sessions` skill before you change either write path.\n\n\n## Key Environment Variables\n\nDefaults come from `mcpgateway/config.py`. `.env.example` intentionally overrides a few for local/dev convenience.\n\n```bash\n# Core\nHOST=127.0.0.1                  # .env.example uses 0.0.0.0\nPORT=4444\nDATABASE_URL=sqlite:///./mcp.db   # or postgresql+psycopg://...\nREDIS_URL=redis://localhost:6379/0\nRELOAD=false\n\n# Auth\nJWT_SECRET_KEY=your-secret-key\nBASIC_AUTH_USER=admin\nBASIC_AUTH_PASSWORD=changeme        # pragma: allowlist secret\nAUTH_REQUIRED=true                   # Set false ONLY for development\nAUTH_ENCRYPTION_SECRET=             # REQUIRED: generate with: make init-secrets-patch-env  # pragma: allowlist secret\n\n# Features\nMCPGATEWAY_UI_ENABLED=false          # .env.example sets true\nMCPGATEWAY_ADMIN_API_ENABLED=false   # .env.example sets true\nMCPGATEWAY_A2A_ENABLED=true\nPLUGINS_ENABLED=false\nPLUGINS_CONFIG_FILE=plugins/config.yaml\n\n# Logging\nLOG_LEVEL=ERROR\nLOG_TO_FILE=false\nSTRUCTURED_LOGGING_DATABASE_ENABLED=false\n\n# Observability\nOBSERVABILITY_ENABLED=false\nOTEL_EXPORTER_OTLP_ENDPOINT=          # .env.example sets http://localhost:4317\n```\n\n## Technology Stack\n\n- **FastAPI** with **Pydantic** validation and **SQLAlchemy** ORM (Starlette ASGI)\n- **HTMX + Alpine.js** for admin UI\n- **SQLite** default, **PostgreSQL** support, **Redis** for caching/federation\n- **Alembic** for migrations\n\n### Synchronous SQLAlchemy in Async Handlers (Design Decision)\n\nThe codebase deliberately uses synchronous SQLAlchemy sessions (e.g. `SessionLocal().begin()`) inside async FastAPI handlers and ASGI middleware, relying on FastAPI's event-loop management to handle blocking operations. Do not flag this as a bug or attempt to convert individual call sites to async without a broader migration plan. This design decision may be revisited in the future alongside a potential migration to async database drivers.\n\n## Coding Standards\n\n- **Python >= 3.12** with type hints; strict mypy\n- **Formatting**: Ruff (line length 200)\n- **Linting**: Ruff (`E3`,`E4`,`E7`,`E9`,`F`,`D1`), Pylint per `pyproject.toml`\n- **Naming**: `snake_case` functions/modules, `PascalCase` classes, `UPPER_CASE` constants\n- **Imports**: Group per isort sections (stdlib, third-party, first-party `mcpgateway`, local)\n- **Readability**: *Clean Code* — implement per [`docs/docs/development/coding-standards.md`](docs/docs/development/coding-standards.md)\n\n### Code Comments\n\n- Comments are a last resort. Make the code self-documenting first: extract a function or rename a thing until the comment becomes redundant.\n- A comment earns its place only when code cannot express a durable constraint: security rationale, upstream workaround, dependency-pin reason.\n- Comments never carry transient implementation process or decisions. Decisions go to an ADR (`docs/docs/architecture/adr/`), process to the commit body, tasks to an issue.\n- Docstrings are API contract, not comments: Ruff `D1`/`D417` and interrogate enforce presence and parameter coverage; summary line first, then the contract.\n- Fix a comment in the same change that fixes its code.\n\n## Agent Prose (ASD-STE100)\n\nAll agent-authored prose follows the ASD-STE100 writing rules. The controlled dictionary is not enforced; domain, protocol, and code terms count as technical names.\n\n- One instruction per sentence: 20 words or fewer for instructions, 25 for description.\n- Active voice, present tense. Imperative for instructions: \"Add a test\", never \"a test should be added\".\n- One word, one meaning: a token stays a token, never also a credential or a key.\n- Positive constructions. No hedging (\"worth considering\"), no idioms.\n- Technical names verbatim: `normalize_token_teams()`, `DB_POOL_SIZE`, `QueuePool limit exceeded`.\n\nCovers code comments and docstrings, commit bodies, PR descriptions, review findings, issue bodies and comments, CHANGELOG entries. Exempt: identifiers, log and error strings, `docs/` prose, ephemeral working notes.\n\nApply the `asd-ste100` skill (STE-flavored mode) to rewrite prose. Full rules and worked examples per artifact: [`docs/docs/development/agent-prose.md`](docs/docs/development/agent-prose.md).\n\n## Commit & PR Standards\n\n- **Sign commits**: `git commit -s` (DCO requirement). Preserve sign-off on rewritten commits (rebases, conflict resolutions).\n- **Conventional Commits**: `feat:`, `fix:`, `docs:`, `refactor:`, `chore:`. Subjects keep that format; bodies follow *Agent Prose*.\n- **Link issues**: `Closes #123`\n- Include tests for behavior changes.\n- Every PR whose behavior can be exercised through a live gateway must include a full black-box test against a running gateway; see [`tests/live_gateway/`](tests/live_gateway/) for examples.\n- Green lint and tests before PR.\n- Don't push until asked.\n\n### Pre-Merge Validation Gate\n\nRun from the worktree root, in order. Each command must pass, or the PR must document a waiver, before the PR is ready:\n\n| Command | Validates |\n|---------|-----------|\n| `make ruff interrogate pylint` | Lint, docstring coverage, deeper static analysis |\n| `make test` | Full rstest suite |\n| `make coverage diff-cover` | Coverage of changed lines vs. base |\n| `make docker-nuke docker-prod testing-up` | Rebuilds and launches the production-style gateway stack |\n| `make test-e2e` | MCP protocol E2E and RBAC against the live gateway |\n| `make detect-secrets-scan` | No new secrets in files changed vs `main`; exits non-zero on live/unaudited findings (jq merge preserves out-of-scope audited entries; remediate with `make detect-secrets-audit`) |\n\nDistinct from the per-edit hygiene chain in *Essential Commands → Code Quality* (`make autoflake isort black pre-commit`, then `make ruff bandit interrogate pylint verify`): hygiene runs continuously; this gate runs once before declaring a PR ready.\n\n## Maintenance Guardrails (Brief)\n\n- Source of truth precedence: `mcpgateway/config.py` and runtime code > `Makefile` targets/dependencies > `.env.example` (dev overrides) > docs/comments.\n- When auditing repo state, prioritize active source directories and ignore transient/workbench content unless explicitly requested: `todo/`, `tmp/`, `artifacts/`, `logs/`, `coverage/`.\n- Avoid brittle numeric claims (counts of services/routers/middleware/plugins) unless you are actively validating and updating them in the same change; otherwise describe with approximate wording.\n\n## Important Constraints\n\n- Never mention AI assistants in PRs/diffs\n- Do not include test plans or effort estimates in PRs\n- Never create files unless absolutely necessary; prefer editing existing files\n- Never proactively create documentation files unless explicitly requested\n- Never commit secrets; use `.env` for configuration\n\n## Key Files\n\n- `README.md` - Canonical project overview and quick start\n- `mcpgateway/main.py` - Application entry point\n- `mcpgateway/config.py` - Environment configuration\n- `mcpgateway/db.py` - SQLAlchemy ORM models and session management\n- `mcpgateway/schemas.py` - Pydantic schemas\n- `pyproject.toml` - Project configuration\n- `Makefile` - Build automation\n- `.env.example` - Environment template\n\n## CLI Tools Available\n\n- `gh` for GitHub operations\n- `make` for build/test automation\n- `uv` for virtual environment management and for `uv tool run` linter invocations\n- Dev-group tools installed in the venv: `rstest`, `pytest`, `mypy`, `bandit`, `pre-commit`, etc. (see `pyproject.toml` `[dependency-groups]`)\n- Formatters and linters (`ruff`, `vulture`, `interrogate`, `radon`, `yamllint`, `tomlcheck`) are pinned in the `Makefile` and invoked on demand via `uv tool run`; always prefer the Makefile targets (`make black`, `make ruff`, etc.) over calling the underlying tools directly\n","isInternal":false,"tokens":5071,"sizeBytes":22124},{"name":"marketplace.json","path":".agents/skills/asd-ste100/.claude-plugin/marketplace.json","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/.agents/skills/asd-ste100/.claude-plugin/marketplace.json","title":"Claude Plugin Marketplace Catalog","category":"marketplace","format":"json","content":"# Claude Plugin Marketplace Catalog\n\nPath: `.agents/skills/asd-ste100/.claude-plugin/marketplace.json`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/.agents/skills/asd-ste100/.claude-plugin/marketplace.json)","tokens":300,"sizeBytes":252},{"name":"plugin.json","path":".agents/skills/asd-ste100/.claude-plugin/plugin.json","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/.agents/skills/asd-ste100/.claude-plugin/plugin.json","title":"claude-plugin Plugin Manifest","category":"plugin-manifest","format":"json","content":"# claude-plugin Plugin Manifest\n\nPath: `.agents/skills/asd-ste100/.claude-plugin/plugin.json`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/.agents/skills/asd-ste100/.claude-plugin/plugin.json)","tokens":300,"sizeBytes":238},{"name":"README.md","path":"plugins/ai_artifacts_normalizer/README.md","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/ai_artifacts_normalizer/README.md","title":"ai_artifacts_normalizer Documentation","category":"plugin-manifest","format":"markdown","content":"# ai_artifacts_normalizer Documentation\n\nPath: `plugins/ai_artifacts_normalizer/README.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/ai_artifacts_normalizer/README.md)","tokens":300,"sizeBytes":224},{"name":"README.md","path":"plugins/altk_json_processor/README.md","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/altk_json_processor/README.md","title":"altk_json_processor Documentation","category":"plugin-manifest","format":"markdown","content":"# altk_json_processor Documentation\n\nPath: `plugins/altk_json_processor/README.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/altk_json_processor/README.md)","tokens":300,"sizeBytes":212},{"name":"README.md","path":"plugins/argument_normalizer/README.md","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/argument_normalizer/README.md","title":"argument_normalizer Documentation","category":"plugin-manifest","format":"markdown","content":"# argument_normalizer Documentation\n\nPath: `plugins/argument_normalizer/README.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/argument_normalizer/README.md)","tokens":300,"sizeBytes":212},{"name":"README.md","path":"plugins/cached_tool_result/README.md","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/cached_tool_result/README.md","title":"cached_tool_result Documentation","category":"plugin-manifest","format":"markdown","content":"# cached_tool_result Documentation\n\nPath: `plugins/cached_tool_result/README.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/cached_tool_result/README.md)","tokens":300,"sizeBytes":209},{"name":"README.md","path":"plugins/circuit_breaker/README.md","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/circuit_breaker/README.md","title":"circuit_breaker Documentation","category":"plugin-manifest","format":"markdown","content":"# circuit_breaker Documentation\n\nPath: `plugins/circuit_breaker/README.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/circuit_breaker/README.md)","tokens":300,"sizeBytes":200},{"name":"README.md","path":"plugins/citation_validator/README.md","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/citation_validator/README.md","title":"citation_validator Documentation","category":"plugin-manifest","format":"markdown","content":"# citation_validator Documentation\n\nPath: `plugins/citation_validator/README.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/citation_validator/README.md)","tokens":300,"sizeBytes":209},{"name":"README.md","path":"plugins/code_formatter/README.md","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/code_formatter/README.md","title":"code_formatter Documentation","category":"plugin-manifest","format":"markdown","content":"# code_formatter Documentation\n\nPath: `plugins/code_formatter/README.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/code_formatter/README.md)","tokens":300,"sizeBytes":197},{"name":"README.md","path":"plugins/code_safety_linter/README.md","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/code_safety_linter/README.md","title":"code_safety_linter Documentation","category":"plugin-manifest","format":"markdown","content":"# code_safety_linter Documentation\n\nPath: `plugins/code_safety_linter/README.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/code_safety_linter/README.md)","tokens":300,"sizeBytes":209},{"name":"README.md","path":"plugins/content_moderation/README.md","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/content_moderation/README.md","title":"content_moderation Documentation","category":"plugin-manifest","format":"markdown","content":"# content_moderation Documentation\n\nPath: `plugins/content_moderation/README.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/content_moderation/README.md)","tokens":300,"sizeBytes":209},{"name":"README.md","path":"plugins/deny_filter/README.md","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/deny_filter/README.md","title":"deny_filter Documentation","category":"plugin-manifest","format":"markdown","content":"# deny_filter Documentation\n\nPath: `plugins/deny_filter/README.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/deny_filter/README.md)","tokens":300,"sizeBytes":188},{"name":"README.md","path":"plugins/examples/custom_auth_example/README.md","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/examples/custom_auth_example/README.md","title":"custom_auth_example Documentation","category":"plugin-manifest","format":"markdown","content":"# custom_auth_example Documentation\n\nPath: `plugins/examples/custom_auth_example/README.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/examples/custom_auth_example/README.md)","tokens":300,"sizeBytes":230},{"name":"README.md","path":"plugins/examples/simple_token_auth/README.md","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/examples/simple_token_auth/README.md","title":"simple_token_auth Documentation","category":"plugin-manifest","format":"markdown","content":"# simple_token_auth Documentation\n\nPath: `plugins/examples/simple_token_auth/README.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/examples/simple_token_auth/README.md)","tokens":300,"sizeBytes":224},{"name":"README.md","path":"plugins/external/cedar/README.md","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/external/cedar/README.md","title":"cedar Documentation","category":"plugin-manifest","format":"markdown","content":"# cedar Documentation\n\nPath: `plugins/external/cedar/README.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/external/cedar/README.md)","tokens":300,"sizeBytes":188},{"name":"README.md","path":"plugins/external/clamav_server/README.md","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/external/clamav_server/README.md","title":"clamav_server Documentation","category":"plugin-manifest","format":"markdown","content":"# clamav_server Documentation\n\nPath: `plugins/external/clamav_server/README.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/external/clamav_server/README.md)","tokens":300,"sizeBytes":212},{"name":"README.md","path":"plugins/external/llmguard/README.md","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/external/llmguard/README.md","title":"llmguard Documentation","category":"plugin-manifest","format":"markdown","content":"# llmguard Documentation\n\nPath: `plugins/external/llmguard/README.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/external/llmguard/README.md)","tokens":300,"sizeBytes":197},{"name":"README.md","path":"plugins/external/opa/README.md","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/external/opa/README.md","title":"opa Documentation","category":"plugin-manifest","format":"markdown","content":"# opa Documentation\n\nPath: `plugins/external/opa/README.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/external/opa/README.md)","tokens":300,"sizeBytes":182},{"name":"README.md","path":"plugins/file_type_allowlist/README.md","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/file_type_allowlist/README.md","title":"file_type_allowlist Documentation","category":"plugin-manifest","format":"markdown","content":"# file_type_allowlist Documentation\n\nPath: `plugins/file_type_allowlist/README.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/file_type_allowlist/README.md)","tokens":300,"sizeBytes":212},{"name":"README.md","path":"plugins/harmful_content_detector/README.md","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/harmful_content_detector/README.md","title":"harmful_content_detector Documentation","category":"plugin-manifest","format":"markdown","content":"# harmful_content_detector Documentation\n\nPath: `plugins/harmful_content_detector/README.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/harmful_content_detector/README.md)","tokens":300,"sizeBytes":227},{"name":"README.md","path":"plugins/header_filter/README.md","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/header_filter/README.md","title":"header_filter Documentation","category":"plugin-manifest","format":"markdown","content":"# header_filter Documentation\n\nPath: `plugins/header_filter/README.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/header_filter/README.md)","tokens":300,"sizeBytes":194},{"name":"README.md","path":"plugins/header_injector/README.md","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/header_injector/README.md","title":"header_injector Documentation","category":"plugin-manifest","format":"markdown","content":"# header_injector Documentation\n\nPath: `plugins/header_injector/README.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/header_injector/README.md)","tokens":300,"sizeBytes":200},{"name":"README.md","path":"plugins/html_to_markdown/README.md","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/html_to_markdown/README.md","title":"html_to_markdown Documentation","category":"plugin-manifest","format":"markdown","content":"# html_to_markdown Documentation\n\nPath: `plugins/html_to_markdown/README.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/html_to_markdown/README.md)","tokens":300,"sizeBytes":203},{"name":"README.md","path":"plugins/json_repair/README.md","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/json_repair/README.md","title":"json_repair Documentation","category":"plugin-manifest","format":"markdown","content":"# json_repair Documentation\n\nPath: `plugins/json_repair/README.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/json_repair/README.md)","tokens":300,"sizeBytes":188},{"name":"README.md","path":"plugins/jwt_claims_extraction/README.md","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/jwt_claims_extraction/README.md","title":"jwt_claims_extraction Documentation","category":"plugin-manifest","format":"markdown","content":"# jwt_claims_extraction Documentation\n\nPath: `plugins/jwt_claims_extraction/README.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/jwt_claims_extraction/README.md)","tokens":300,"sizeBytes":218},{"name":"README.md","path":"plugins/license_header_injector/README.md","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/license_header_injector/README.md","title":"license_header_injector Documentation","category":"plugin-manifest","format":"markdown","content":"# license_header_injector Documentation\n\nPath: `plugins/license_header_injector/README.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/license_header_injector/README.md)","tokens":300,"sizeBytes":224},{"name":"README.md","path":"plugins/markdown_cleaner/README.md","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/markdown_cleaner/README.md","title":"markdown_cleaner Documentation","category":"plugin-manifest","format":"markdown","content":"# markdown_cleaner Documentation\n\nPath: `plugins/markdown_cleaner/README.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/markdown_cleaner/README.md)","tokens":300,"sizeBytes":203},{"name":"README.md","path":"plugins/privacy_notice_injector/README.md","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/privacy_notice_injector/README.md","title":"privacy_notice_injector Documentation","category":"plugin-manifest","format":"markdown","content":"# privacy_notice_injector Documentation\n\nPath: `plugins/privacy_notice_injector/README.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/privacy_notice_injector/README.md)","tokens":300,"sizeBytes":224},{"name":"README.md","path":"plugins/README.md","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/README.md","title":"plugins Documentation","category":"plugin-manifest","format":"markdown","content":"# plugins Documentation\n\nPath: `plugins/README.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/README.md)","tokens":300,"sizeBytes":160},{"name":"README.md","path":"plugins/regex_filter/README.md","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/regex_filter/README.md","title":"regex_filter Documentation","category":"plugin-manifest","format":"markdown","content":"# regex_filter Documentation\n\nPath: `plugins/regex_filter/README.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/regex_filter/README.md)","tokens":300,"sizeBytes":191},{"name":"README.md","path":"plugins/resource_filter/README.md","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/resource_filter/README.md","title":"resource_filter Documentation","category":"plugin-manifest","format":"markdown","content":"# resource_filter Documentation\n\nPath: `plugins/resource_filter/README.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/resource_filter/README.md)","tokens":300,"sizeBytes":200},{"name":"README.md","path":"plugins/response_cache_by_prompt/README.md","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/response_cache_by_prompt/README.md","title":"response_cache_by_prompt Documentation","category":"plugin-manifest","format":"markdown","content":"# response_cache_by_prompt Documentation\n\nPath: `plugins/response_cache_by_prompt/README.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/response_cache_by_prompt/README.md)","tokens":300,"sizeBytes":227},{"name":"README.md","path":"plugins/robots_license_guard/README.md","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/robots_license_guard/README.md","title":"robots_license_guard Documentation","category":"plugin-manifest","format":"markdown","content":"# robots_license_guard Documentation\n\nPath: `plugins/robots_license_guard/README.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/robots_license_guard/README.md)","tokens":300,"sizeBytes":215},{"name":"README.md","path":"plugins/safe_html_sanitizer/README.md","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/safe_html_sanitizer/README.md","title":"safe_html_sanitizer Documentation","category":"plugin-manifest","format":"markdown","content":"# safe_html_sanitizer Documentation\n\nPath: `plugins/safe_html_sanitizer/README.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/safe_html_sanitizer/README.md)","tokens":300,"sizeBytes":212},{"name":"README.md","path":"plugins/schema_guard/README.md","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/schema_guard/README.md","title":"schema_guard Documentation","category":"plugin-manifest","format":"markdown","content":"# schema_guard Documentation\n\nPath: `plugins/schema_guard/README.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/schema_guard/README.md)","tokens":300,"sizeBytes":191},{"name":"README.md","path":"plugins/span_attribute_customizer/README.md","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/span_attribute_customizer/README.md","title":"span_attribute_customizer Documentation","category":"plugin-manifest","format":"markdown","content":"# span_attribute_customizer Documentation\n\nPath: `plugins/span_attribute_customizer/README.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/span_attribute_customizer/README.md)","tokens":300,"sizeBytes":230},{"name":"README.md","path":"plugins/sparc_static_validator/README.md","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/sparc_static_validator/README.md","title":"sparc_static_validator Documentation","category":"plugin-manifest","format":"markdown","content":"# sparc_static_validator Documentation\n\nPath: `plugins/sparc_static_validator/README.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/sparc_static_validator/README.md)","tokens":300,"sizeBytes":221},{"name":"README.md","path":"plugins/summarizer/README.md","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/summarizer/README.md","title":"summarizer Documentation","category":"plugin-manifest","format":"markdown","content":"# summarizer Documentation\n\nPath: `plugins/summarizer/README.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/summarizer/README.md)","tokens":300,"sizeBytes":185},{"name":"README.md","path":"plugins/timezone_translator/README.md","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/timezone_translator/README.md","title":"timezone_translator Documentation","category":"plugin-manifest","format":"markdown","content":"# timezone_translator Documentation\n\nPath: `plugins/timezone_translator/README.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/timezone_translator/README.md)","tokens":300,"sizeBytes":212},{"name":"README.md","path":"plugins/tools_telemetry_exporter/README.md","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/tools_telemetry_exporter/README.md","title":"tools_telemetry_exporter Documentation","category":"plugin-manifest","format":"markdown","content":"# tools_telemetry_exporter Documentation\n\nPath: `plugins/tools_telemetry_exporter/README.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/tools_telemetry_exporter/README.md)","tokens":300,"sizeBytes":227},{"name":"README.md","path":"plugins/toon_encoder/README.md","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/toon_encoder/README.md","title":"toon_encoder Documentation","category":"plugin-manifest","format":"markdown","content":"# toon_encoder Documentation\n\nPath: `plugins/toon_encoder/README.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/toon_encoder/README.md)","tokens":300,"sizeBytes":191},{"name":"README.md","path":"plugins/unified_pdp/README.md","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/unified_pdp/README.md","title":"unified_pdp Documentation","category":"plugin-manifest","format":"markdown","content":"# unified_pdp Documentation\n\nPath: `plugins/unified_pdp/README.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/unified_pdp/README.md)","tokens":300,"sizeBytes":188},{"name":"README.md","path":"plugins/vault/README.md","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/vault/README.md","title":"vault Documentation","category":"plugin-manifest","format":"markdown","content":"# vault Documentation\n\nPath: `plugins/vault/README.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/vault/README.md)","tokens":300,"sizeBytes":170},{"name":"README.md","path":"plugins/virus_total_checker/README.md","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/virus_total_checker/README.md","title":"virus_total_checker Documentation","category":"plugin-manifest","format":"markdown","content":"# virus_total_checker Documentation\n\nPath: `plugins/virus_total_checker/README.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/virus_total_checker/README.md)","tokens":300,"sizeBytes":212},{"name":"README.md","path":"plugins/watchdog/README.md","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/watchdog/README.md","title":"watchdog Documentation","category":"plugin-manifest","format":"markdown","content":"# watchdog Documentation\n\nPath: `plugins/watchdog/README.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/watchdog/README.md)","tokens":300,"sizeBytes":179},{"name":"README.md","path":"plugins/webhook_notification/README.md","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/webhook_notification/README.md","title":"webhook_notification Documentation","category":"plugin-manifest","format":"markdown","content":"# webhook_notification Documentation\n\nPath: `plugins/webhook_notification/README.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/webhook_notification/README.md)","tokens":300,"sizeBytes":215},{"name":"a2a.md","path":"docs/docs/using/agents/a2a.md","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/docs/docs/using/agents/a2a.md","title":"Subagent: a2a","category":"subagent-persona","format":"markdown","content":"# Subagent: a2a\n\nPath: `docs/docs/using/agents/a2a.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/docs/docs/using/agents/a2a.md)","tokens":300,"sizeBytes":176},{"name":"autogen.md","path":"docs/docs/using/agents/autogen.md","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/docs/docs/using/agents/autogen.md","title":"Subagent: autogen","category":"subagent-persona","format":"markdown","content":"# Subagent: autogen\n\nPath: `docs/docs/using/agents/autogen.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/docs/docs/using/agents/autogen.md)","tokens":300,"sizeBytes":188},{"name":"beeai.md","path":"docs/docs/using/agents/beeai.md","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/docs/docs/using/agents/beeai.md","title":"Subagent: beeai","category":"subagent-persona","format":"markdown","content":"# Subagent: beeai\n\nPath: `docs/docs/using/agents/beeai.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/docs/docs/using/agents/beeai.md)","tokens":300,"sizeBytes":182},{"name":"crewai.md","path":"docs/docs/using/agents/crewai.md","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/docs/docs/using/agents/crewai.md","title":"Subagent: crewai","category":"subagent-persona","format":"markdown","content":"# Subagent: crewai\n\nPath: `docs/docs/using/agents/crewai.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/docs/docs/using/agents/crewai.md)","tokens":300,"sizeBytes":185},{"name":"index.md","path":"docs/docs/using/agents/index.md","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/docs/docs/using/agents/index.md","title":"Subagent: index","category":"subagent-persona","format":"markdown","content":"# Subagent: index\n\nPath: `docs/docs/using/agents/index.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/docs/docs/using/agents/index.md)","tokens":300,"sizeBytes":182},{"name":"langchain.md","path":"docs/docs/using/agents/langchain.md","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/docs/docs/using/agents/langchain.md","title":"Subagent: langchain","category":"subagent-persona","format":"markdown","content":"# Subagent: langchain\n\nPath: `docs/docs/using/agents/langchain.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/docs/docs/using/agents/langchain.md)","tokens":300,"sizeBytes":194},{"name":"langgraph.md","path":"docs/docs/using/agents/langgraph.md","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/docs/docs/using/agents/langgraph.md","title":"Subagent: langgraph","category":"subagent-persona","format":"markdown","content":"# Subagent: langgraph\n\nPath: `docs/docs/using/agents/langgraph.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/docs/docs/using/agents/langgraph.md)","tokens":300,"sizeBytes":194},{"name":"llamaindex.md","path":"docs/docs/using/agents/llamaindex.md","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/docs/docs/using/agents/llamaindex.md","title":"Subagent: llamaindex","category":"subagent-persona","format":"markdown","content":"# Subagent: llamaindex\n\nPath: `docs/docs/using/agents/llamaindex.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/docs/docs/using/agents/llamaindex.md)","tokens":300,"sizeBytes":197},{"name":"openai-sdk.md","path":"docs/docs/using/agents/openai-sdk.md","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/docs/docs/using/agents/openai-sdk.md","title":"Subagent: openai-sdk","category":"subagent-persona","format":"markdown","content":"# Subagent: openai-sdk\n\nPath: `docs/docs/using/agents/openai-sdk.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/docs/docs/using/agents/openai-sdk.md)","tokens":300,"sizeBytes":197},{"name":"semantic-kernel.md","path":"docs/docs/using/agents/semantic-kernel.md","rawUrl":"https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/docs/docs/using/agents/semantic-kernel.md","title":"Subagent: semantic-kernel","category":"subagent-persona","format":"markdown","content":"# Subagent: semantic-kernel\n\nPath: `docs/docs/using/agents/semantic-kernel.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/docs/docs/using/agents/semantic-kernel.md)","tokens":300,"sizeBytes":212}],"systemPromptSnippet":"<yakaai_skills repo=\"IBM/mcp-context-forge\">\n<!-- File: AGENTS.md (Tokens: ~5071 | Category: root-instruction) -->\n# AGENTS.md\n\nGuidelines for AI coding assistants working with this repository.\n\nFor domain-specific guidance, see subdirectory AGENTS.md files:\n- `tests/AGENTS.md` - Testing conventions and workflows\n- `plugins/AGENTS.md` - Plugin framework and development\n- `charts/AGENTS.md` - Helm chart operations\n- `docs/AGENTS.md` - Documentation authoring\n\n**Note:** The `llms/` directory holds LLM guidance of two kinds: end-user runtime guidance for using ContextForge, and work prompts for agents changing this repository. Where `llms/` guidance overlaps an `AGENTS.md` file, the `AGENTS.md` file is authoritative.\n\n## Skills\n\nTask-specific guidance lives in `.agents/skills/`. `.bob/skills` links to that directory. Load the matching skill before you start the task:\n\n- `asd-ste100`: write or rewrite prose for humans (review findings, issue and PR text, commit bodies) in ASD-STE100 style.\n- `pr-review`: write review findings, assign severity, judge blocking criteria.\n- `alembic-migrations`: add or change a database model, column, or migration.\n- `observability-audit-sessions`: change trace, span, metric, or audit writes.\n- `secret-detection`: resolve a `detect-secrets` finding or `.secrets.baseline` change.\n- `github-issues`: create, label, or triage an issue.\n- `contextforge-web-ui`: run or configure the `web_ui` compose service.\n- `mcp-helpers`: generate a JWT or register an MCP server locally.\n\n## Project Overview\n\nContextForge is an open source registry and proxy that federates MCP, A2A, and REST/gRPC APIs with centralized governance, discovery, and observability. It federates tools, agents, and APIs, optimizes agent and tool calling, and supports plugins, auth/RBAC, rate-limiting, virtual servers, multi-transport protocols, and an optional Admin UI.\n\n## Project Structure\n\n```\nmcpgateway/                 # Core FastAPI application\n├── main.py                 # Application entry point\n├── config.py               # Environment configuration\n├── db.py                   # SQLAlchemy ORM models and session management\n├── schemas.py              # Pydantic validation schemas\n├── services/               # Business logic layer (50+ services)\n├── routers/                # HTTP endpoint definitions (19 routers)\n├── middleware/             # Cross-cutting concerns (16 middleware)\n├── transports/             # Protocol implementations (SSE, WebSocket, stdio, streamable HTTP)\n├── plugins/                # Plugin integration (uses cpex external package)\n└── alembic/                # Database migrations\n\ntests/                      # Test suite (see tests/AGENTS.md)\nplugins/                    # Plugin implementations (see plugins/AGENTS.md)\ncharts/                     # Helm charts (see charts/AGENTS.md)\ndocs/                       # Architecture and usage documentation (see docs/AGENTS.md)\na2a-agents/                 # A2A agent implementations (used for testing/examples)\nllms/                       # End-user LLM guidance (not for code agents)\n```\n\n## Essential Commands\n\n### Setup\n```bash\ncp .env.example .env && make install-dev check-env    # Complete setup\nmake venv                          # Create virtual environment with uv\nmake install-dev                   # Install with dev dependencies (includes build-ui)\nmake check-env                     # Verify .env against .env.example\nmake build-ui                      # Rebuild Admin UI JS bundle (requires npm)\n```\n\n### Development\n```bash\nmake dev                          # Dev server on :8000 with autoreload\nmake serve                        # Production gunicorn on :4444\nmake serve-ssl                    # HTTPS on :4444 (creates certs if needed)\n```\n\n### Code Quality\n```bash\n# After writing code\nmake pre-commit\n\n# Before committing, use ty, mypy and pyrefly to check just the new files, then run:\nmake ruff bandit interrogate pylint verify\n```\n\n## Authentication & RBAC Overview\n\nContextForge implements a **two-layer security model**:\n\n1. **Token Scoping (Layer 1)**: Controls what resources a user CAN SEE (data filtering)\n2. **RBAC (Layer 2)**: Controls what actions a user CAN DO (permission checks)\n\n### Token Scoping Quick Reference\n\n**API / legacy tokens** — JWT `teams` claim is the sole authority (`normalize_token_teams()`):\n\n| JWT `teams` State | `is_admin: true` | `is_admin: false` |\n|-------------------|------------------|-------------------|\n| Key MISSING | PUBLIC-ONLY `[]` | PUBLIC-ONLY `[]` |\n| `teams: null` | ADMIN BYPASS | PUBLIC-ONLY `[]` |\n| `teams: []` | PUBLIC-ONLY `[]` | PUBLIC-ONLY `[]` |\n| `teams: [\"t1\"]` | Team + Public | Team + Public |\n\n**Session tokens** (`token_use: \"session\"`) — DB is the authority; JWT `teams` only narrows (`resolve_session_teams()`):\n\n| JWT `teams` State | DB admin? | Result | Access Level |\n|-------------------|-----------|--------|--------------|\n| any | yes | `None` | ADMIN BYPASS (DB authority) |\n| Missing/null/`[]` | no | DB teams | Full DB membership |\n| `[\"t1\"]` | no | intersection | Narrowed to overlap |\n| `[\"revoked\"]` | no | `[]` | Public-only (fail-closed) |\n\n**Key behaviors:**\n\n- **API/legacy tokens**: Missing `teams` key = public-only access (secure default). Admin bypass requires BOTH `teams: null` AND `is_admin: true`. `normalize_token_teams()` in `mcpgateway/auth.py` is the single source of truth.\n- **Token creation defaults to the creator's personal team**: `POST /tokens` (and admin-delegated creation) with no `team_id` no longer mints a `teams: null` (public-only) token for non-admin callers. `TokenCatalogService.get_default_team_id()` resolves the caller's (or, for admin delegation, the target's) personal team and `routers/tokens.py::create_token` uses it when the caller belongs to that team; it falls back to single-team inheritance, then to `team_id=None` plus a `TokenCreateResponse.warnings` entry only when neither applies (no personal team and multiple/zero teams). Un-narrowed admins are exempt — `team_id=None` for them is a deliberate global-scope token. The permission-containment check (`_get_caller_permissions`) still uses the *requested* `team_id`, not the defaulted one, so this does not raise the ceiling on what `scope.permissions` a caller may request. Separately, `derive_token_team_id()` in `mcpgateway/auth.py` — the function that turns a single-team token's claim into `request.state.team_id` for RBAC/rate-limit/routing context — excludes personal teams, since a personal team auto-grants `team_admin`; a personal-team-scoped token instead falls through to `check_any_team`, matching how `PermissionService._get_user_roles` already treats personal teams.\n- **Session tokens**: Admin bypass is determined by the DB `is_admin` flag, not the JWT `teams` claim. Non-admin sessions can be narrowed via JWT `teams`. `resolve_session_teams()` in `mcpgateway/auth.py` is the single policy point.\n- **Layer 1 only**: Token scoping controls visibility (what you can see). RBAC (Layer 2) is evaluated independently — session-token narrowing does not restrict which team roles are checked for permissions.\n- **External IdP tokens**: identities provisioned from trusted external SSO providers (see `SSO_API_TOKEN_AUTH_ENABLED`) are dispatched through the session-token table above (`resolve_session_teams()`), not the API/legacy table — `is_admin`/`teams` come from the persisted local user record, never from the external token's claims.\n\n### Implementation Helpers\n\nLayer-1 derivation is centralized in `mcpgateway/auth_context.py`. Route handlers must call these rather than re-deriving the rule inline:\n\n- `get_scoped_resource_access_context(request, user)` → `(user_email, token_teams)` — the visibility scope to pass into service fetch/list/read calls. Admin bypass is signalled by `token_teams=None` while `user_email` is **kept**, so the service can still owner-match the admin's own private rows. Public-only is `(email, [])`.\n- `get_request_identity(request, user)` → `(user_email, is_admin)` — the requester's own identity, for audit capture and header masking. Use when you need the identity independent of the visibility scope.\n- `get_rpc_filter_context(request, user)` → `(user_email, token_teams, is_admin)` — the raw pre-rule triple. Reserved for the few sites that genuinely need `is_admin` or the un-normalized teams (auth-context forwarding, run-ownership capture, tool-execution authorization); these carry a `Layer-1 exception` comment naming the reason.\n\nThe derived triple is memoized on `request.state` per principal, so calling the scope and identity helpers together costs one derivation rather than two.\n\n### Security Invariants (Required)\n\n- Treat `public` as platform-public scope, not internet-anonymous scope.\n- Explicit exception: when `MCP_REQUIRE_AUTH` is `false`, unauthenticated `/mcp` requests are allowed with public-only visibility — **unless** the target virtual server has `oauth_enabled` set to `True`, in which case unauthenticated requests are rejected with 401 regardless of the global setting.\n- Keep the two-layer model on every path:\n  - Layer 1: token scoping controls what a caller can see.\n  - Layer 2: RBAC controls what a caller can do.\n- Do not re-implement token team interpretation logic; use `normalize_token_teams()` for API/legacy tokens and `resolve_session_teams()` for session tokens (both in `mcpgateway/auth.py`).\n- Do not re-implement Layer 1 token scope semantics; use `token_scope_grants()` in `mcpgateway/middleware/rbac.py`, the single policy point shared by the RBAC decorators and `TokenScopingMiddleware`. Empty token scopes mean \"inherit from RBAC at runtime\" (what `TokenCatalogService._generate_token()` emits for tokens created without an explicit scope) and must never be treated as deny-all; `*` grants everything and `<category>.*` grants that category.\n- Do not accept inbound client auth tokens via URL query parameters.\n- Legacy `INSECURE_ALLOW_QUERYPARAM_AUTH` is interop-only for outbound peer auth and must remain opt-in and host-restricted.\n- High-risk transports must be feature-flagged and disabled by default.\n- Transport/session endpoints must authenticate before session establishment (or message forwarding) and enforce RBAC before processing actions.\n- Token-scoped route authorization must be default-deny for unmapped protected paths.\n- Never trust client-provided ownership fields (`owner_email`, `team_id`, session owner); derive authorization from authenticated identity and server-side state.\n- Security-sensitive changes must include deny-path regression tests (unauthenticated, wrong team, insufficient permissions, feature disabled).\n- A `token-exchange` OAuth grant (RFC 8693 / On-Behalf-Of) exists for gateways; with it, the user's inbound JWT is exchanged with a trusted Authorization Server and **never forwarded upstream** — only the exchanged token is sent to the downstream MCP server.\n- `token_url` on a `token-exchange` gateway is an SSRF / egress boundary: the user's ContextForge JWT is POSTed to it as the `subject_token`, it is validated at config time, and creating or modifying token-exchange gateways is a privileged action.\n- Audit token-exchange operations via the structured logging sink with a `correlation_id`; never log raw subject tokens or exchanged tokens.\n\n#### UAID Cross-Gateway Security\n\n- UAID cross-gateway routing requires explicit domain allowlist (fail-closed default)\n- Empty `UAID_ALLOWED_DOMAINS` blocks all cross-gateway routing unless `UAID_ALLOW_ALL_DOMAINS=true`\n- Cross-gateway calls forward bearer tokens for RBAC enforcement on remote gateways\n- Both gateways must trust the same JWT issuer (shared `JWT_SECRET_KEY` or federated SSO)\n- `UAID_ALLOW_ALL_DOMAINS=true` is unsafe for production (bypasses allowlist validation)\n- Startup validation logs ERROR if A2A enabled but allowlist not configured\n- Remote gateway 401/403 responses raise `A2AAgentError` with troubleshooting guidance\n\n### Built-in Roles\n\n| Role | Scope | Key Permissions |\n|------|-------|-----------------|\n| `platform_admin` | global | `*` (all) |\n| `team_admin` | team | teams.*, tools.read/execute, resources.read |\n| `developer` | team | CRUD on gateways, servers, tools, resources, prompts, and A2A agents; execution/invocation; token self-service; dashboard access; team read/join |\n| `viewer` | team | tools.read/execute, resources.read |\n\nThe `developer` role includes gateway registration, update, and deletion.\nSee the [complete built-in permission table](docs/docs/manage/rbac.md#built-in-rbac-roles) before assigning this role.\n\n### Documentation\n\n- **Full RBAC guide**: `docs/docs/manage/rbac.md`\n- **Multi-tenancy architecture**: `docs/docs/architecture/multitenancy.md`\n- **OAuth token delegation**: `docs/docs/architecture/oauth-design.md`\n### User Identity Extraction\n\n**Canonical Email Precedence**: All user-email extraction helpers use a consistent **email-over-sub** precedence order to ensure forensic accuracy across visibility checks and audit logs:\n\n- When a user dict contains both `email` and `sub` keys, `email` takes precedence\n- The canonical implementation is `get_user_email()` in `mcpgateway/auth_context.py`\n- All other helpers (including `admin.get_user_email`) re-export or delegate to this canonical implementation\n- This ensures that the identity used for RBAC evaluation matches the identity logged in audit trails\n\n**Rationale**: The `email` field is the human-readable identifier used throughout AGENTS.md and user-facing documentation. Consistent precedence prevents forensic confusion where an incident review pivots on a logged email that differs from the principal actually evaluated by RBAC.\n\n**Two accessors**: `get_user_email()` in `mcpgateway/auth_context.py` is the e-mail-attribute accessor. `get_user_id()` in the same module is the identity accessor. Phase 1 populates both with the same value. Audit (`AuditTrail.user_id`) and observability (`ObservabilityTrace.user_email`) identity fields hold the canonical user_id from `get_user_id()`; the column names stay unchanged for compatibility. Routers compute `get_user_id(user)` and pass it to services as the `user_id` keyword; services keep `user_email` for ownership checks.\n\n\n## Separate-Session Writes\n\nObservability and audit writes use sessions separate from the request transaction. Never pass `db=db` to `AuditTrailService.log_action()` or `log_audit()`. Load the `observability-audit-sessions` skill before you change either write path.\n\n\n## Key Environment Variables\n\nDefaults come from `mcpgateway/config.py`. `.env.example` intentionally overrides a few for local/dev convenience.\n\n```bash\n# Core\nHOST=127.0.0.1                  # .env.example uses 0.0.0.0\nPORT=4444\nDATABASE_URL=sqlite:///./mcp.db   # or postgresql+psycopg://...\nREDIS_URL=redis://localhost:6379/0\nRELOAD=false\n\n# Auth\nJWT_SECRET_KEY=your-secret-key\nBASIC_AUTH_USER=admin\nBASIC_AUTH_PASSWORD=changeme        # pragma: allowlist secret\nAUTH_REQUIRED=true                   # Set false ONLY for development\nAUTH_ENCRYPTION_SECRET=             # REQUIRED: generate with: make init-secrets-patch-env  # pragma: allowlist secret\n\n# Features\nMCPGATEWAY_UI_ENABLED=false          # .env.example sets true\nMCPGATEWAY_ADMIN_API_ENABLED=false   # .env.example sets true\nMCPGATEWAY_A2A_ENABLED=true\nPLUGINS_ENABLED=false\nPLUGINS_CONFIG_FILE=plugins/config.yaml\n\n# Logging\nLOG_LEVEL=ERROR\nLOG_TO_FILE=false\nSTRUCTURED_LOGGING_DATABASE_ENABLED=false\n\n# Observability\nOBSERVABILITY_ENABLED=false\nOTEL_EXPORTER_OTLP_ENDPOINT=          # .env.example sets http://localhost:4317\n```\n\n## Technology Stack\n\n- **FastAPI** with **Pydantic** validation and **SQLAlchemy** ORM (Starlette ASGI)\n- **HTMX + Alpine.js** for admin UI\n- **SQLite** default, **PostgreSQL** support, **Redis** for caching/federation\n- **Alembic** for migrations\n\n### Synchronous SQLAlchemy in Async Handlers (Design Decision)\n\nThe codebase deliberately uses synchronous SQLAlchemy sessions (e.g. `SessionLocal().begin()`) inside async FastAPI handlers and ASGI middleware, relying on FastAPI's event-loop management to handle blocking operations. Do not flag this as a bug or attempt to convert individual call sites to async without a broader migration plan. This design decision may be revisited in the future alongside a potential migration to async database drivers.\n\n## Coding Standards\n\n- **Python >= 3.12** with type hints; strict mypy\n- **Formatting**: Ruff (line length 200)\n- **Linting**: Ruff (`E3`,`E4`,`E7`,`E9`,`F`,`D1`), Pylint per `pyproject.toml`\n- **Naming**: `snake_case` functions/modules, `PascalCase` classes, `UPPER_CASE` constants\n- **Imports**: Group per isort sections (stdlib, third-party, first-party `mcpgateway`, local)\n- **Readability**: *Clean Code* — implement per [`docs/docs/development/coding-standards.md`](docs/docs/development/coding-standards.md)\n\n### Code Comments\n\n- Comments are a last resort. Make the code self-documenting first: extract a function or rename a thing until the comment becomes redundant.\n- A comment earns its place only when code cannot express a durable constraint: security rationale, upstream workaround, dependency-pin reason.\n- Comments never carry transient implementation process or decisions. Decisions go to an ADR (`docs/docs/architecture/adr/`), process to the commit body, tasks to an issue.\n- Docstrings are API contract, not comments: Ruff `D1`/`D417` and interrogate enforce presence and parameter coverage; summary line first, then the contract.\n- Fix a comment in the same change that fixes its code.\n\n## Agent Prose (ASD-STE100)\n\nAll agent-authored prose follows the ASD-STE100 writing rules. The controlled dictionary is not enforced; domain, protocol, and code terms count as technical names.\n\n- One instruction per sentence: 20 words or fewer for instructions, 25 for description.\n- Active voice, present tense. Imperative for instructions: \"Add a test\", never \"a test should be added\".\n- One word, one meaning: a token stays a token, never also a credential or a key.\n- Positive constructions. No hedging (\"worth considering\"), no idioms.\n- Technical names verbatim: `normalize_token_teams()`, `DB_POOL_SIZE`, `QueuePool limit exceeded`.\n\nCovers code comments and docstrings, commit bodies, PR descriptions, review findings, issue bodies and comments, CHANGELOG entries. Exempt: identifiers, log and error strings, `docs/` prose, ephemeral working notes.\n\nApply the `asd-ste100` skill (STE-flavored mode) to rewrite prose. Full rules and worked examples per artifact: [`docs/docs/development/agent-prose.md`](docs/docs/development/agent-prose.md).\n\n## Commit & PR Standards\n\n- **Sign commits**: `git commit -s` (DCO requirement). Preserve sign-off on rewritten commits (rebases, conflict resolutions).\n- **Conventional Commits**: `feat:`, `fix:`, `docs:`, `refactor:`, `chore:`. Subjects keep that format; bodies follow *Agent Prose*.\n- **Link issues**: `Closes #123`\n- Include tests for behavior changes.\n- Every PR whose behavior can be exercised through a live gateway must include a full black-box test against a running gateway; see [`tests/live_gateway/`](tests/live_gateway/) for examples.\n- Green lint and tests before PR.\n- Don't push until asked.\n\n### Pre-Merge Validation Gate\n\nRun from the worktree root, in order. Each command must pass, or the PR must document a waiver, before the PR is ready:\n\n| Command | Validates |\n|---------|-----------|\n| `make ruff interrogate pylint` | Lint, docstring coverage, deeper static analysis |\n| `make test` | Full rstest suite |\n| `make coverage diff-cover` | Coverage of changed lines vs. base |\n| `make docker-nuke docker-prod testing-up` | Rebuilds and launches the production-style gateway stack |\n| `make test-e2e` | MCP protocol E2E and RBAC against the live gateway |\n| `make detect-secrets-scan` | No new secrets in files changed vs `main`; exits non-zero on live/unaudited findings (jq merge preserves out-of-scope audited entries; remediate with `make detect-secrets-audit`) |\n\nDistinct from the per-edit hygiene chain in *Essential Commands → Code Quality* (`make autoflake isort black pre-commit`, then `make ruff bandit interrogate pylint verify`): hygiene runs continuously; this gate runs once before declaring a PR ready.\n\n## Maintenance Guardrails (Brief)\n\n- Source of truth precedence: `mcpgateway/config.py` and runtime code > `Makefile` targets/dependencies > `.env.example` (dev overrides) > docs/comments.\n- When auditing repo state, prioritize active source directories and ignore transient/workbench content unless explicitly requested: `todo/`, `tmp/`, `artifacts/`, `logs/`, `coverage/`.\n- Avoid brittle numeric claims (counts of services/routers/middleware/plugins) unless you are actively validating and updating them in the same change; otherwise describe with approximate wording.\n\n## Important Constraints\n\n- Never mention AI assistants in PRs/diffs\n- Do not include test plans or effort estimates in PRs\n- Never create files unless absolutely necessary; prefer editing existing files\n- Never proactively create documentation files unless explicitly requested\n- Never commit secrets; use `.env` for configuration\n\n## Key Files\n\n- `README.md` - Canonical project overview and quick start\n- `mcpgateway/main.py` - Application entry point\n- `mcpgateway/config.py` - Environment configuration\n- `mcpgateway/db.py` - SQLAlchemy ORM models and session management\n- `mcpgateway/schemas.py` - Pydantic schemas\n- `pyproject.toml` - Project configuration\n- `Makefile` - Build automation\n- `.env.example` - Environment template\n\n## CLI Tools Available\n\n- `gh` for GitHub operations\n- `make` for build/test automation\n- `uv` for virtual environment management and for `uv tool run` linter invocations\n- Dev-group tools installed in the venv: `rstest`, `pytest`, `mypy`, `bandit`, `pre-commit`, etc. (see `pyproject.toml` `[dependency-groups]`)\n- Formatters and linters (`ruff`, `vulture`, `interrogate`, `radon`, `yamllint`, `tomlcheck`) are pinned in the `Makefile` and invoked on demand via `uv tool run`; always prefer the Makefile targets (`make black`, `make ruff`, etc.) over calling the underlying tools directly\n\n<!-- File: charts/AGENTS.md (Tokens: ~1092 | Category: root-instruction) -->\n# charts/AGENTS.md\n\nHelm chart development guidance for AI coding assistants.\n\n## Chart Structure\n\n```\ncharts/\n├── README.md\n└── mcp-stack/              # Main Helm chart\n    ├── Chart.yaml          # Chart metadata\n    ├── values.yaml         # Default configuration\n    ├── values.schema.json  # JSON Schema for validation\n    ├── Makefile            # Developer automation\n    ├── README.md           # Generated chart docs\n    ├── CHANGELOG.md        # Version history\n    ├── CONTRIBUTING.md     # Contribution guidelines\n    └── templates/          # Kubernetes manifests\n        ├── _helpers.tpl    # Template helpers\n        ├── deployment-*.yaml\n        ├── service-*.yaml\n        ├── configmap-*.yaml\n        ├── secret-*.yaml\n        ├── ingress.yaml\n        ├── hpa-*.yaml\n        └── NOTES.txt\n```\n\n## Prerequisites\n\n- `helm` (3.14+)\n- `kubectl` with configured context\n- Optional: `helm-docs`, `yamllint`, `kubeval`, `ajv-cli`, `cosign`\n\n## Quick Commands\n\nFrom `charts/mcp-stack/`:\n\n```bash\n# Info\nmake info                     # Print chart/app versions\nmake version                  # Print chart version\n\n# Lint & Validate\nmake lint                     # helm lint --strict\nmake lint-yaml                # yamllint (if available)\nmake lint-values              # Validate values against schema\nmake validate-all             # Run all lint steps\n\n# Template & Dry-run\nmake test-template            # Render templates → tmp/rendered.yaml\nmake test-template-values     # Render with my-values.yaml\nmake test-dry-run             # helm install --dry-run --debug\nmake test-kubeval             # Validate manifests with kubeval\nmake test-all                 # Template + dry-run + kubeval\n\n# Install/Upgrade\nmake install                  # Install with defaults\nmake install-dev              # Install with my-values.yaml\nmake upgrade                  # Upgrade release\nmake upgrade-dev              # Upgrade with my-values.yaml\nmake uninstall                # Uninstall and wait\n\n# Debug\nmake status                   # Release status\nmake history                  # Release history\nmake rollback                 # Rollback release\nmake debug                    # Context, releases, resources\nmake describe                 # Describe chart resources\nmake logs                     # Show pod logs\nmake logs-follow              # Follow pod logs\nmake port-forward             # Forward localhost:4444 → service:80\nmake shell                    # Interactive shell into gateway\n\n# Package & Registry\nmake package                  # Package to dist/\nmake push                     # Push to OCI registry\nmake sign                     # Sign with cosign\n\n# Docs & Schema\nmake docs                     # Generate README via helm-docs\nmake schema                   # Generate values.schema.json\nmake schema-validate          # Validate values against schema\n```\n\n## Common Workflows\n\n### Local Validation\n```bash\ncd charts/mcp-stack\nmake validate-all\nmake test-template\nmake test-dry-run  # Optional\n```\n\n### First-time Install\n```bash\nNAMESPACE=mcp-dev RELEASE_NAME=mcp-dev make install\n# Or with custom values:\n# Create my-values.yaml, then:\nmake install-dev\n```\n\n### Upgrade\n```bash\nmake upgrade-dev  # Uses my-values.yaml if present\n```\n\n### Debug\n```bash\nmake status\nmake logs\nmake port-forward  # Then browse http://localhost:4444\n```\n\n## Values Override Example\n\nCreate `my-values.yaml`:\n\n```yaml\nmcpContextForge:\n  image:\n    tag: \"latest\"\n    pullPolicy: IfNotPresent\n  ingress:\n    enabled: true\n    className: nginx\n    host: gateway.local\n  config:\n    DEV_MODE: \"true\"\n    RELOAD: \"false\"\n  secret:\n    BASIC_AUTH_USER: admin\n    BASIC_AUTH_PASSWORD: changeme\n    JWT_SECRET_KEY: my-test-key-but-now-longer-than-32-bytes\n\npostgres:\n  enabled: true\n  credentials:\n    user: admin\n    password: test123\n  persistence:\n    storageClassName: standard\n    size: 5Gi\n\nredis:\n  enabled: true\n```\n\n## Security\n\n- Use `mcpContextForge.secret.*` for auth settings in dev\n- Prefer external `Secret` objects for production\n- Configure TLS at ingress or service mesh\n- Never commit secrets to values files\n\n## CI/CD\n\n```bash\n# In pipelines\nmake lint\nmake validate-all\n\n# On tagged releases\nmake package push\n\n# Optional signing\nmake sign\n```\n\n## Troubleshooting\n\n```bash\n# Inspect applied values\nhelm get values <release> -n <namespace>\n\n# Inspect manifests\nhelm get manifest <release> -n <namespace>\n\n# Check events\nkubectl describe pod <pod> -n <namespace>\nkubectl describe ingress <ingress> -n <namespace>\n```\n\n## Key Files\n\n- `Chart.yaml` - Chart metadata, versions, dependencies\n- `values.yaml` - All configurable values with defaults\n- `values.schema.json` - JSON Schema for values validation\n- `templates/_helpers.tpl` - Reusable template functions\n- `Makefile` - Developer automation commands\n\n<!-- File: docs/AGENTS.md (Tokens: ~1346 | Category: root-instruction) -->\n# docs/AGENTS.md\n\nDocumentation authoring guidance for AI coding assistants.\n\nThis directory contains the project's architecture and usage documentation built with MkDocs.\n\n## Directory Structure\n\n```\ndocs/\n├── mkdocs.yml          # MkDocs configuration\n├── base.yml            # Base configuration\n├── Makefile            # Doc build automation\n├── requirements.txt    # Doc dependencies\n├── theme/              # Custom theme assets\n└── docs/               # Documentation content\n    ├── index.md        # Home page\n    ├── architecture/   # System design, ADRs, plugins, security\n    ├── deployment/     # Docker, K8s, cloud guides\n    ├── development/    # Developer guides, building, testing\n    ├── manage/         # Operations, API usage, logging, scaling\n    ├── using/          # User guides (agents, clients, servers)\n    ├── testing/        # Test guides, performance, fuzzing\n    ├── best-practices/ # Best practice guides\n    ├── tutorials/      # Step-by-step tutorials\n    ├── overview/       # Project overview\n    ├── faq/            # FAQ\n    └── coverage/       # Generated coverage reports\n```\n\n## Quick Commands\n\nFrom `docs/` directory:\n\n```bash\n# Install dependencies\npip install -r requirements.txt\n\n# Build docs\nmake build                # Build static site\n\n# Serve locally\nmake serve                # Serve at http://localhost:8003 (configured in docs/base.yml)\n\n# Clean\nmake clean                # Remove build artifacts\n```\n\nFrom repository root:\n\n```bash\nmake docs                 # Build documentation\n# For local serving, run from docs/:\n#   cd docs && make serve\n```\n\n## Writing Documentation\n\n### File Location\n\nPlace documentation in the appropriate subdirectory:\n\n| Topic | Directory |\n|-------|-----------|\n| System design, ADRs | `docs/architecture/` |\n| Deployment guides | `docs/deployment/` |\n| Developer guides | `docs/development/` |\n| Operations guides | `docs/manage/` |\n| User guides | `docs/using/` |\n| Test documentation | `docs/testing/` |\n\n### Markdown Conventions\n\n- Use ATX-style headers (`#`, `##`, `###`)\n- Include front matter for navigation title if needed\n- Use fenced code blocks with language hints\n- Keep lines under 120 characters when practical\n\n### Code Examples\n\nUse fenced code blocks with language identifier:\n\n```python\nfrom mcpgateway import Gateway\n\ngateway = Gateway()\ngateway.start()\n```\n\n### Admonitions\n\n```markdown\n!!! note\n    This is a note.\n\n!!! warning\n    This is a warning.\n\n!!! tip\n    This is a tip.\n```\n\n### Internal Links\n\n```markdown\nSee [Configuration Reference](manage/configuration.md) for details.\nSee [Architecture Overview](architecture/index.md).\n```\n\n## Architecture Decision Records (ADRs)\n\nADRs live in `docs/architecture/adr/` and follow the [adr.github.io](https://adr.github.io/) format (`# ADR-NNN: Title`, Status/Date/Deciders front material, then Context / Decision / Consequences). Each ADR captures a decision as it stood at a point in time — treat them as a historical record, not living documentation.\n\n### Authoring a New ADR\n\n1. Create `docs/architecture/adr/NNN-short-title.md` with the next sequential number (check `adr/index.md` for the current maximum).\n2. Add a row to the table in `docs/architecture/adr/index.md` (chronological order, per the footer note there).\n3. Add a nav entry in `docs/docs/architecture/adr/.pages` (see *Navigation* below).\n4. Statuses in use: `Draft`, `Proposed`, `Accepted`, `Implemented`, `Deprecated`, `Superseded`.\n\n### Immutability of Accepted ADRs\n\nAn **Accepted** (or Implemented) ADR is frozen. Do not rewrite its Context, Decision, or Consequences to reflect later changes — doing so erases the record of why the decision was made. The only permitted edits to an accepted ADR are:\n\n- **Front material updates** — most commonly the Status line (e.g. `Accepted` → `Superseded by ADR-NNN`).\n- **Footnotes or pointer notes** — a short note (typically a `!!! warning` admonition at the top, as in ADR-038) recording where the ADR has been referenced, altered, or superseded. Keep these additive; never edit the original body text.\n\n### Changing or Reversing a Decision\n\nWhen a decision recorded in an ADR no longer holds:\n\n1. **Write a new ADR** capturing the new decision, its context, and why the old one no longer applies. Reference the superseded ADR by number.\n2. **Update the old ADR's status** to `Superseded by ADR-NNN` and add a pointer note at the top directing readers to the new ADR.\n3. **Update the status in `adr/index.md`** for both records.\n\nNever silently modify or delete an ADR whose decision has been abandoned — the trail from old decision to new is part of the project's institutional memory.\n\n## Navigation\n\nNavigation is configured in `mkdocs.yml`. When adding new pages:\n\n1. Create the markdown file in the appropriate directory\n2. Add an entry to the `nav` section in `mkdocs.yml`\n\n## API Documentation\n\nAPI documentation is auto-generated from OpenAPI schema:\n- Swagger UI: `http://localhost:4444/docs`\n- OpenAPI JSON: `http://localhost:4444/openapi.json`\n\n## Coverage Reports\n\nCoverage reports are generated to `docs/docs/coverage/`:\n\n```bash\nmake htmlcov              # Generate HTML coverage report\n```\n\n## Key Documentation Pages\n\n- `docs/development/developer-onboarding.md` - New contributor guide\n- `docs/development/building.md` - Build system and testing\n- `docs/manage/api-usage.md` - REST API guide\n- `docs/architecture/index.md` - Architecture overview\n- `docs/architecture/adr/` - Architecture Decision Records\n\n## Important Notes\n\n- Do not create documentation files unless explicitly requested\n- Prefer editing existing files over creating new ones\n- Keep documentation up-to-date with code changes\n- Use relative links for internal references\n\n<!-- File: plugins/AGENTS.md (Tokens: ~300 | Category: root-instruction) -->\n# plugins - AI Agent Protocol & Instructions\n\nPath: `plugins/AGENTS.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/AGENTS.md)\n\n<!-- File: tests/AGENTS.md (Tokens: ~300 | Category: root-instruction) -->\n# tests - AI Agent Protocol & Instructions\n\nPath: `tests/AGENTS.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/tests/AGENTS.md)\n\n<!-- File: llms/api.md (Tokens: ~300 | Category: project-spec) -->\n# llms - API Interface Contract & Specifications\n\nPath: `llms/api.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/llms/api.md)\n\n<!-- File: .agents/skills/alembic-migrations/SKILL.md (Tokens: ~1314 | Category: anthropic-skill) -->\n---\nname: alembic-migrations\ndescription: Create or review an Alembic migration in `mcpgateway/alembic`. Use when you add a column or table, change `mcpgateway/db.py` models, fix \"Multiple heads\", or write a `downgrade()` that reads `settings`.\n---\n\n# Alembic Database Migrations\n\nEvery change to a model in `mcpgateway/db.py` needs a matching Alembic migration. This includes every new column and table.\n\n## Migration Chain Rules\n\n- Work on one migration at a time. Merge or finish one migration before you start the next.\n- The `revision` -> `down_revision` links form one linked list. The chain never branches.\n- Each migration has exactly one parent. `alembic heads` shows exactly one head.\n- A new migration sets `down_revision` to the current head.\n\n## Create a Migration\n\n```bash\n# CRITICAL: Always check the current head FIRST\ncd mcpgateway && alembic heads\n\n# Generate a new migration (auto-generates from model changes)\nalembic revision --autogenerate -m \"add_column_to_table\"\n\n# Or create an empty migration for manual edits\nalembic revision -m \"add_column_to_table\"\n```\n\n## Migration File Requirements\n\nThe `down_revision` MUST point to the current head. Read the head from `alembic heads`. Never copy the value from an older migration.\n\n```python\n# CORRECT: points to the actual current head (verified with `alembic heads`)\nrevision: str = \"<new_revision_id>\"\ndown_revision: Union[str, Sequence[str], None] = \"<current_head_id>\"\n\n# WRONG: creates multiple heads (breaks all tests)\ndown_revision: Union[str, Sequence[str], None] = \"<some_older_revision_id>\"\n```\n\n## Idempotent Migrations Pattern\n\nWrite idempotent migrations. Check state before you change it:\n\n```python\ndef upgrade() -> None:\n    inspector = sa.inspect(op.get_bind())\n\n    # Skip if table doesn't exist (fresh DB uses db.py models directly)\n    if \"my_table\" not in inspector.get_table_names():\n        return\n\n    # Skip if column already exists\n    columns = [col[\"name\"] for col in inspector.get_columns(\"my_table\")]\n    if \"new_column\" in columns:\n        return\n\n    op.add_column(\"my_table\", sa.Column(\"new_column\", sa.String(), nullable=True))\n```\n\n## Verification\n\nRun these commands from `mcpgateway/`.\n\n### Inspect the chain\n\n```bash\nalembic heads              # must show exactly ONE head\nalembic current            # revision the DB is at\nalembic history --verbose  # full chain\nalembic branches           # find branch points\n```\n\n### Upgrade\n\n```bash\nalembic upgrade head              # apply all\nalembic upgrade +1                # apply the next one\nalembic upgrade <revision_id>     # apply up to a specific revision\nalembic upgrade <rev>:head --sql  # print the SQL only (offline mode, no DB change)\n```\n\n### Downgrade\n\n```bash\nalembic downgrade -1              # revert the latest migration\nalembic downgrade <revision_id>   # revert to a specific revision\nalembic downgrade base            # revert everything\nalembic downgrade head:-1 --sql   # print the SQL only (offline mode, no DB change)\n```\n\n### Round-trip test of a new migration\n\n```bash\nalembic upgrade head && alembic downgrade -1 && alembic upgrade head\n```\n\nRun the test suite to confirm the migrations work:\n\n```bash\nmake test\n```\n\nDone when `alembic heads` prints one head, the round-trip test passes, and `make test` passes.\n\n## Common Errors\n\n- **\"Multiple heads are present\"**: `down_revision` points to the wrong parent. Set it to the actual current head.\n- **\"Target database is not up to date\"**: Run `alembic upgrade head` first.\n\n## Hermetic Downgrade: Config Snapshot Pattern\n\nA `downgrade()` that reads runtime configuration (`mcpgateway.config.settings`) **must** snapshot those values into `migration_metadata` during `upgrade()`. `downgrade()` reads the snapshot back. The migration is then hermetic: database state determines its behavior, not the current environment.\n\n```python\nfrom mcpgateway.config import settings\nfrom sqlalchemy import inspect, text\n\nREVISION = \"<your_revision_id>\"\n\ndef upgrade() -> None:\n    bind = op.get_bind()\n    # ... schema changes ...\n\n    # Snapshot any settings values used in downgrade\n    if \"migration_metadata\" in inspect(bind).get_table_names():\n        bind.execute(\n            text(\n                \"INSERT INTO migration_metadata (revision, key, value, created_at) \"\n                \"VALUES (:rev, :key, :val, CURRENT_TIMESTAMP) \"\n                \"ON CONFLICT (revision, key) DO UPDATE SET value = excluded.value\"\n            ),\n            {\"rev\": REVISION, \"key\": \"some_setting\", \"val\": settings.some_setting},\n        )\n\ndef downgrade() -> None:\n    bind = op.get_bind()\n\n    # Read from snapshot; fall back to live settings only if table is absent\n    # (pre-existing DB that was upgraded before this pattern was introduced)\n    cfg = {}\n    if \"migration_metadata\" in inspect(bind).get_table_names():\n        rows = bind.execute(\n            text(\"SELECT key, value FROM migration_metadata WHERE revision = :rev\"),\n            {\"rev\": REVISION},\n        ).all()\n        cfg = {r[0]: r[1] for r in rows}\n\n    some_setting = cfg.get(\"some_setting\") or settings.some_setting\n\n    # ... use some_setting for downgrade logic ...\n\n    # Clean up snapshot rows\n    if \"migration_metadata\" in inspect(bind).get_table_names():\n        bind.execute(\n            text(\"DELETE FROM migration_metadata WHERE revision = :rev\"),\n            {\"rev\": REVISION},\n        )\n```\n\n**Rule:** If a migration imports `settings` and uses it in `downgrade()`, follow this pattern. A migration that uses `settings` only in `upgrade()` (for example, to seed initial data) is exempt.\n\n<!-- File: .agents/skills/asd-ste100/examples/before-after.md (Tokens: ~300 | Category: anthropic-skill) -->\n# Examples Skill\n\nPath: `.agents/skills/asd-ste100/examples/before-after.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/.agents/skills/asd-ste100/examples/before-after.md)\n\n<!-- File: .agents/skills/asd-ste100/examples/linter-edge-cases.md (Tokens: ~300 | Category: anthropic-skill) -->\n# Examples Skill\n\nPath: `.agents/skills/asd-ste100/examples/linter-edge-cases.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/.agents/skills/asd-ste100/examples/linter-edge-cases.md)\n\n<!-- File: .agents/skills/asd-ste100/README.md (Tokens: ~300 | Category: anthropic-skill) -->\n# Asd-ste100 Skill\n\nPath: `.agents/skills/asd-ste100/README.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/.agents/skills/asd-ste100/README.md)\n\n<!-- File: .agents/skills/asd-ste100/references/writing-rules.md (Tokens: ~300 | Category: anthropic-skill) -->\n# References Skill\n\nPath: `.agents/skills/asd-ste100/references/writing-rules.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/.agents/skills/asd-ste100/references/writing-rules.md)\n\n<!-- File: .agents/skills/asd-ste100/SKILL.md (Tokens: ~3617 | Category: anthropic-skill) -->\n---\nname: asd-ste100\ndescription: \"Use when English text must be parsed without a human to resolve ambiguity — tool descriptions, error messages, inter-agent instructions, system prompts, status reports — and misreading has a real cost, or when text reads as dense, hedged, or easy to misparse. Triggers: disambiguate, STE100 rewrite, apply Simplified Technical English, plain-language rewrite, controlled-language rewrite, rewrite so an agent cannot misread this. Not for creative or marketing copy.\"\nversion: 0.4.0\n---\n\n# Simplified Technical English (ASD-STE100)\n\nASD-STE100 is a controlled-language standard built by the aerospace and defense industry (ASD, the AeroSpace and Defense Industries Association of Europe) to stop maintenance technicians from misreading English instructions. The standard removes the two biggest sources of misreading: words with more than one meaning, and sentences with more than one possible structure.\n\nThis skill borrows that same discipline for a different reader: an **AI agent or a downstream system** that has to parse an English string — an error message, a tool description, an inter-agent instruction, a status report — without a human in the loop to resolve ambiguity. If a maintenance technician can misread \"close the valve\" as an adjective (\"the valve that is near\") instead of a command, so can a language model.\n\n## When to Use This Skill\n\n- An agent's output (explanation, instruction, log message, tool description) reads as dense, jargon-heavy, or ambiguous.\n- Text will be consumed by another agent, a translation pipeline, or a non-native English reader, and misparsing has a real cost.\n- You are writing a prompt, system message, or tool description and want to remove ambiguity before a model ever sees it.\n- You want a **before/after** comparison showing exactly which rule was violated and how the rewrite fixes it. Ask for it — the default output is the rewritten text alone (see Output Format).\n\nThis skill is not for creative or marketing copy — STE is deliberately flat and literal. Do not apply it to text where voice, nuance, or persuasion is the point.\n\n## Two Modes\n\nPick a mode before rewriting. If the user does not say which, infer it from the text type. Keep the choice internal unless the user asks for the rule table (see Output Format).\n\n**Strict** — procedures, error messages, tool and function descriptions, inter-agent instructions, safety text. Anywhere a wrong reading has a cost. Apply every rule below, including the hard length caps and one-word-one-meaning discipline.\n\n**STE-flavored** — READMEs, PR descriptions, changelogs, explanatory prose. Apply the structural rules in full and treat the lexical rules as advisory (see Core Rewrite Rules for that split). In practice that means keeping the sentence length caps, active voice, simple tenses, no phrasal verbs, no semicolons, no nominalization and no marketing adjectives, while dropping the one-word-one-meaning lockdown: prose needs some range, and a strict rewrite of prose reads as a personality transplant rather than a clarification.\n\nThe two modes and the structural/lexical split are the same distinction seen from two directions. The split says which rules this skill can verify without ASD's dictionary. The modes say which of them to enforce for a given kind of text.\n\n## Source and Scope\n\nThis skill encodes the **rule categories** of ASD-STE100 Issue 9 (Jan 2025): 53 writing rules across 9 sections covering word choice, grammar, sentence structure, and style, backed by a dictionary of ~900 approved words (one meaning, one part of speech each) and ~1,200 words to avoid with suggested replacements. See `references/writing-rules.md` for the full rule summary and citations.\n\nIt does **not** reproduce ASD's ~900-word approved dictionary verbatim. ASD-STE100 is free to obtain, but it is not free to redistribute: Issue 9, page 2 states that \"no reproduction or publication of it, in whole or in part, shall be made without the written authority of an officer of ASD,\" and grants free reproduction rights only to eight listed categories (ASD/AIA/AIAC member associations and their member companies and customers, member-state defence ministries, A4A, airworthiness authorities, and universities and research institutes for educational purposes). This project is in none of them, so the dictionary stays out of this repo.\n\nInstead, this skill applies the *underlying principle* (pick the plainest, most common word available and use it the same way every time) rather than checking against a fixed word list. When exact ASD-approved wording matters (e.g. actual aircraft maintenance documentation), get the standard and check word-by-word against the real dictionary. Request it from the [official downloads page](https://www.asd-ste100.org/STE_downloads.html) — note that this is a request form that emails you a link, not a direct download.\n\n## Core Rewrite Rules\n\nSTE's rules divide into two kinds, and this skill can only fully deliver one of them. **Structural rules** are self-contained: they describe sentence shape, and you can apply them from the description alone. **Lexical rules** are defined entirely by the official ~900-word dictionary, which this skill deliberately does not reproduce (see Source and Scope). Without that dictionary, the lexical rules degrade from a checkable standard into a preference for plain words.\n\nApply the structural rules with confidence. Apply the lexical rules as a direction of travel, and say so in your output rather than implying dictionary compliance you cannot verify.\n\n### Structural rules — apply these\n\n| Rule | Do | Don't |\n|---|---|---|\n| Active voice | \"The agent deletes the file.\" | \"The file is deleted (by the agent).\" — unless the actor is genuinely unknown or irrelevant |\n| No phrasal verbs (Rule 9.3) | \"Remove the panel.\" / \"Start the job.\" | \"Take off the panel.\" / \"Spin up the job.\" — a two-word verb has meanings the parts do not predict |\n| One instruction per sentence | \"Open the file. Read line 3.\" | \"Open the file and read line 3, then check if it matches.\" |\n| Sentence length | ≤20 words for instructions/procedures, ≤25 words for descriptions | Long compound/subordinate-clause sentences |\n| No semicolons (Rule 8.1) | Split into separate sentences | Any semicolon at all — STE bans the mark outright, not only as a clause join. (Rule 8.1 permits every other standard punctuation mark. The em dash is *not* banned by STE, though it often signals a sentence that should be split.) |\n| Noun clusters | ≤3 words stacked as a noun phrase (\"fuel pump valve\") | 4+ word noun stacks (\"high pressure fuel pump inlet valve assembly\") |\n| No ellipsis | Keep the subject, verb, and article explicit even if it reads longer | Drop words to save space (\"Files not backed up will be lost\" → ambiguous which files) |\n| Keep modality | \"The request **may have** failed.\" stays \"may have\" | Promote a hedge to a fact (\"The request failed.\") or invent a certainty the source did not state |\n| Paragraph limits | One topic per paragraph, ≤6 sentences | Multi-topic paragraphs |\n| Lists for sequences | Use a numbered or bulleted list for 3+ steps or conditions | Bury a sequence inside one prose sentence |\n\n### Lexical rules — direction of travel only\n\n| Rule | Do | Don't | Why it is weaker here |\n|---|---|---|---|\n| One word, one meaning | Pick one verb for one action and reuse it every time (e.g. always \"check\", never mix \"check\"/\"verify\"/\"confirm\" for the same action) | Rotate synonyms for the same idea across a document | Consistency within a document is checkable. Which word is the *approved* one is not, without the dictionary. |\n| One part of speech per word | \"Apply oil to the valve\" (oil = noun) | \"Oil the valve\" (oil = verb) | Whether \"oil\" is approved as a noun only is a dictionary fact. Prefer the noun form when both read equally well. Do not claim compliance. |\n| Verb, not noun (Rule 3.7) | \"Analyze the log.\" | \"Perform an analysis of the log.\" — a noun form of an action makes the sentence longer and hides who acts | Rule 3.7 says \"use an **approved** verb to describe an action.\" Preferring the verb form is safe to apply anywhere. Knowing which verb is the approved one needs the dictionary. |\n| Domain terms | Keep necessary technical nouns/verbs, but define them once if not common English (STE allows a project-specific glossary beyond its base dictionary) | Use jargon without ever defining it | The glossary allowance is real STE, but the base dictionary it extends is absent. |\n\n### Simple tenses — apply with one exception\n\nSTE permits infinitive, imperative, simple present, simple past, simple future, and past participle as adjective. It excludes present perfect and other compound forms: \"we received the report\", not \"we have received the report\".\n\nAircraft manuals never need present perfect, so the exclusion costs the standard nothing. Other text is not always so lucky. \"The job has completed\" (and its output is available now) and \"the job completed\" (at some past point) are different statements, and status text frequently needs the first. **Where the compound form carries information the simple form cannot — current relevance, or a hedge as in \"may have failed\" — keep it and flag the departure.** Elsewhere, follow the rule.\n\n## Scan Checklist\n\nThese six habits cover most of what makes machine-written English hard to parse. Each one is mechanical: you can point at the exact word or punctuation mark that breaks the rule, with no judgment call. Scan for all six before you rewrite anything.\n\n1. **Synonym rotation** — the same thing gets several names in one document (\"the user\", \"the customer\", \"the client\"). The reader cannot tell whether they are one thing or three. Fix: pick one name, use it every time.\n2. **Hedge stacking** — helper verbs and qualifiers pile up until the sentence asserts nothing (\"it is important to note that this may potentially help to improve\"). Fix: state the claim, or delete it.\n3. **Nominalization** — an action frozen into a noun (\"perform an analysis of\", \"provides assistance to\"). Fix: use the verb (\"analyze\", \"helps\").\n4. **Marketing adjectives** — words that claim quality instead of showing it: seamless, robust, powerful, cutting-edge, effortless, blazing-fast. Fix: delete, or replace with the measurement that earns the claim.\n5. **Run-on sentences** — several ideas joined by semicolons or em dashes. Fix: one idea per sentence.\n6. **Soft phrasal verbs** — spin up, reach out, dive into, kick off. Fix: use the single plain verb (start, contact, read, begin).\n\n## Process\n\n1. Pick the mode (Strict or STE-flavored). Say which only when the user asked for the rule table — see Output Format.\n2. Read the input text once for meaning — do not start rewriting before you understand what it must still say afterward.\n3. Walk it sentence by sentence. Flag every rule violation from the Core Rewrite Rules tables and every habit from the Scan Checklist. In STE-flavored mode, flag the lexical rules but do not enforce them. For a mechanical first pass over the structural rules, run `scripts/ste-lint.py` (stdin or file args, `--json` for structured output); it checks semicolons, sentence length, phrasal verbs, nominalization, marketing adjectives, synonym rotation, dangling-conjunction in supported list items, passive voice, and compound tenses, and by design never flags hedges or modality. `--baseline N` tolerates N hard violations (for adopting on existing docs); `--disable rule1,rule2` silences named rules.\n4. Rewrite each flagged sentence to fix the violation while preserving the original meaning exactly. If a rewrite would drop necessary precision (a safety condition, a scope qualifier, a number), keep the longer phrasing and flag it instead of silently simplifying.\n   - **Check modality before you commit to a rewrite.** Hedges (\"may\", \"could\", \"sometimes\", \"is likely to\") carry the author's confidence, and confidence is content. A shorter sentence that upgrades a hedge to a fact is not a simplification — it is a different claim. This is the most common way a well-intentioned STE rewrite goes wrong, because hedges are exactly what a length cap tempts you to cut.\n   - Never add a fact the source did not state. A rewrite that reads better because it supplies a cause, a frequency, or a mechanism has stopped being a rewrite.\n5. Output the rewritten text (see Output Format). Keep the mode choice and the rule analysis internal unless the user asked to see them.\n6. If the input already complies, say so — do not force changes onto compliant text.\n\n## Output Format\n\n**Default: the rewritten text, and nothing else.** Most callers want a result they can paste straight into a tool description, an error string, or a prompt. Print the simplified text on its own. Do not add a preamble about this skill, a mode announcement, a violation count, a summary of what changed, a rule table, or a closing offer to explain further.\n\nThe one permitted addition: if step 4 kept a longer phrasing on purpose, add a single line after the text, prefixed `Kept as-is:`, naming the phrase and the precision that would have been lost. Omit the line when there is nothing to report.\n\n**On request: the rule table.** When the user asks to see the reasoning — \"show the diff\", \"which rules did it break\", \"explain the changes\", \"before/after\" — output this table instead:\n\n```markdown\n| Rule violated | Original | Simplified |\n|---|---|---|\n| Present perfect tense | \"We have received your request.\" | \"We received your request.\" |\n| Noun cluster (4+ words) | \"the agent task queue priority handler\" | \"the handler that sets task-queue priority\" |\n\nMode: Strict. 7 violations found.\n```\n\nFollow the table with a one-line note on anything you deliberately did **not** simplify, and why (usually: simplifying would lose required precision).\n\n## Boundaries\n\n**Will:**\n- Rewrite ambiguous or dense English into short, single-meaning, active-voice sentences.\n- Return the rewritten text alone by default, and name the rules it applied when the user asks.\n- Preserve every fact, condition, and scope qualifier in the original.\n- Preserve the strength of every hedge, and add no claim the source did not make.\n- Suggest a one-line glossary entry for domain terms that must stay.\n\n**Will not:**\n- Reproduce ASD's official ~900-word dictionary as if it were memorized verbatim — always treat the official download as the source of truth for exact approved wording.\n- Simplify creative, marketing, or persuasive copy where voice and nuance are the point.\n- Silently drop a safety condition, exception, or scope qualifier to shorten a sentence — it will flag the trade-off instead.\n- Convert \"may have failed\" into \"failed\", or \"could be caused by X\" into \"X is the cause\" — losing a hedge changes the claim.\n- Guarantee an aerospace/defense-grade STE-compliant document. This is a general-purpose clarity tool inspired by STE, not a certified STE authoring tool.\n- Make weak content true or useful. STE fixes the *form* of a text, not its substance. A hollow paragraph rewritten under these rules becomes a clean, short, well-punctuated hollow paragraph. If the text has nothing to say, no rewrite fixes that — say so instead of polishing it.\n- Shorten past the point of clarity. Cutting words is not the goal. Removing ambiguity is the goal. Past a certain point compression starts costing the reader time rather than saving it, so stop when the sentence is unambiguous, not when it is shortest.\n\n## Additional Resources\n\n- **`references/writing-rules.md`** — fuller summary of the 9 rule sections and dictionary structure, with citations to the official standard and secondary sources.\n- **`examples/before-after.md`** — worked examples, including official STE examples and agent-output examples built for this skill.\n- **`scripts/ste-lint.py`** — deterministic, stdlib-only linter for the structural rules, including dangling-conjunction in supported list items, plus a synonym-rotation check (one word, one meaning) scoped per file. Exit 1 when hard violations exceed `--baseline` (default 0); advisory findings (passive voice, compound tenses) never fail the run; `--disable` silences named rules. It never flags hedges or modality: those are content, not style, and `--selftest` asserts that \"may have failed\" passes clean.\n\n<!-- File: .agents/skills/contextforge-web-ui/SKILL.md (Tokens: ~507 | Category: anthropic-skill) -->\n---\nname: contextforge-web-ui\ndescription: Run or configure the ContextForge Web UI (`web_ui` service, `--profile ui`, `WEB_UI_*` variables in `docker-compose.yml` and `.env.example`). Not for the built-in Admin UI.\n---\n\n# ContextForge Web UI\n\nA BFF-style frontend for the gateway API. It is separate from the built-in Admin UI (`MCPGATEWAY_UI_ENABLED`). Source and docs: https://github.com/contextforge-org/contextforge-web-ui\n\n- Runs as `web_ui` plus a dedicated `web_ui_redis` session store in `docker-compose.yml`.\n- Enabled with `--profile ui`. `--profile testing` also pulls it in.\n- `web_ui` waits until `gateway` and `web_ui_redis` are healthy.\n\n```bash\n# Start the gateway plus the web UI\ndocker compose --profile ui up -d\n\n# Access\nopen http://localhost:${WEB_UI_PORT:-3001}\n```\n\nConfiguration (see the commented `WEB_UI_*` block in `.env.example`):\n\n| Variable | Default | Purpose |\n|----------|---------|---------|\n| `WEB_UI_IMAGE` | see `docker-compose.yml` | Image to pull. Pinned to a specific released version *and* digest, never `latest`. The release checklist bumps it (`docs/docs/development/release-management.md`). Keep the value in `docker-compose.yml` only, so copies cannot drift. |\n| `WEB_UI_PORT` | `3001` | Host **and** container port. The image reads `PORT` at startup, so both sides of the mapping stay in sync. |\n| `WEB_UI_HOST` | `0.0.0.0` | Bind address inside the container. Keep `0.0.0.0` in Docker. |\n| `WEB_UI_CONTEXTFORGE_URL` | `http://gateway:4444` | Gateway API base URL the UI talks to (internal compose network). |\n| `WEB_UI_COOKIE_SECURE` | `false` | Set `true` once the UI is served over HTTPS. |\n| `WEB_UI_REDIS_URL` | `redis://web_ui_redis:6379/0` | Session store, separate from the gateway's cache `redis` service. |\n\nFor feature docs, auth flow details, and upstream options beyond this compose file, see the [contextforge-web-ui repo](https://github.com/contextforge-org/contextforge-web-ui).\n\n<!-- File: .agents/skills/github-issues/SKILL.md (Tokens: ~333 | Category: anthropic-skill) -->\n---\nname: github-issues\ndescription: Create, label, or triage a GitHub issue for this repository. Defines issue types, title style, label baseline, and lifecycle labels.\n---\n\n# GitHub Issues\n\n- Start from the matching template in `.github/ISSUE_TEMPLATE/`. The template sets the GitHub Issue Type (`Epic`, `Feature`, `Story`, `Task`, `Bug`). The template's sections define the body.\n- Hierarchy: an Epic holds Features, a Feature holds Stories, a Story holds Tasks. Link children with GitHub sub-issues on the parent. Bugs stand alone or nest anywhere in that chain.\n- Titles carry no type prefix. Write a plain imperative summary: `Gateway drops WebSocket sessions on restart`.\n- Labels carry no issue types. New issues start with `triage`. The Chore and Documentation templates also apply `chore` and `documentation`. Add 1-3 optional scope labels (`security`, `performance`, `ui`, `api`, `python`, `devops`, `a2a`, `mcp-protocol`).\n- The organization defines the issue type names. Template `type` values must match those names exactly.\n- Lifecycle labels: `awaiting-user` when blocked on reporter feedback, `blocked` for dependency blockers, `planned` when accepted but deferred, `fixed` only after the resolving change merges.\n- Bodies and comments follow *Agent Prose* in `AGENTS.md`. Before you post, rewrite them with the `asd-ste100` skill in STE-flavored mode. For public tone, see the `pr-review` skill, section *Tone*.\n\n<!-- File: .agents/skills/mcp-helpers/SKILL.md (Tokens: ~214 | Category: anthropic-skill) -->\n---\nname: mcp-helpers\ndescription: Generate a gateway JWT, expose a stdio MCP server over HTTP/SSE with `mcpgateway.translate`, or register an MCP server in a local gateway.\n---\n\n# MCP Helpers\n\n```bash\n# Generate JWT token\npython -m mcpgateway.utils.create_jwt_token --username admin@example.com --exp 10080 --secret KEY\n\n# Export for API calls\nexport MCPGATEWAY_BEARER_TOKEN=$(python -m mcpgateway.utils.create_jwt_token --username admin@example.com --exp 0 --secret KEY)\n\n# Expose stdio server via HTTP/SSE\npython -m mcpgateway.translate --stdio \"uvx mcp-server-git\" --port 9000\n```\n\n## Add an MCP Server\n\n1. Start: `python -m mcpgateway.translate --stdio \"server-command\" --port 9000`\n2. Register: `POST /gateways`\n3. Create virtual server: `POST /servers`\n4. Access via SSE/WebSocket endpoints\n\n<!-- File: .agents/skills/observability-audit-sessions/SKILL.md (Tokens: ~898 | Category: anthropic-skill) -->\n---\nname: observability-audit-sessions\ndescription: Change code that writes traces, spans, metrics, or audit entries. Use when you touch `ObservabilityService`, `ObservabilityMiddleware`, `instrumentation/sqlalchemy.py`, or a `log_action()` / `log_audit()` call site, or when you size connection pools.\n---\n\n# Observability and Audit Trail Session Behavior\n\nObservability writes and audit writes use sessions separate from the main request transaction. This is an intentional trade-off.\n\n## Observability Transaction Behavior\n\n**Issue #3883 - Separate Session Pattern**\n\nThe HTTP middleware reuses one observability session per traced request. This means:\n\n- Observability data persists even when the main request fails.\n- Traces can show \"in progress\" or partial states for failed requests.\n- Observability writes are **NOT atomic** with the main request transaction.\n- You get visibility into partial failures at the cost of atomicity.\n\n### Implementation Details\n\n**Write methods** (create independent sessions unless callers supply a supported `obs_db` parameter):\n- `start_trace()`, `end_trace()`\n- `start_span()`, `end_span()`\n- `add_event()`, `record_token_usage()`, `record_metric()`, `delete_old_traces()`\n\n**Query methods** (use request-scoped sessions):\n- `get_trace()`, `get_traces()`, `get_spans()`, etc.\n- These accept a `db: Session` parameter for RBAC/token scoping.\n\n**Context managers** (create one independent session for the lifecycle):\n- `trace_span()`, `trace_tool_invocation()`, `trace_a2a_request()`\n\n**Middleware lifecycle**: Commit parent traces and HTTP spans before request processing so independent child writers can see them. Commit span and trace completion independently. Roll back caught span failures before attempting trace completion. Keep this session separate from application transactions.\n\n**Pattern**: SQL instrumentation also reuses a session for each query span in `instrumentation/sqlalchemy.py`.\n\n## Audit Trail Transaction Behavior\n\n**Issue #2871 - Separate Session Pattern**\n\n`AuditTrailService.log_action()` (`mcpgateway/services/audit_trail_service.py`) opens its own `SessionLocal()` when no `db` is supplied. It closes and rolls back that session itself. Callers in `tool_service.py`, `resource_service.py`, `gateway_service.py`, `prompt_service.py`, `server_service.py`, and `admin.py` must **never** pass `db=db` (the caller's request-scoped session) to `log_action()`. In `admin.py`, plugin-view audit logging goes through `log_audit()`. It is a thin wrapper over `log_action()` and inherits the same optional-session behavior.\n\nPassing the shared session caused **\"This transaction is inactive\"** errors. The main CRUD operation already calls `db.commit()` before the audit call. A second commit on the same session leaves it in a state that breaks rollback on later errors.\n\n- `log_action()` swallows its own exceptions and returns `None` on failure. It does not propagate them to the caller in production.\n- The main resource (tool/gateway/resource/prompt/server) is committed **before** `log_action()` runs. An audit-logging failure never rolls back persisted data. The generic `except Exception` handlers of callers still call `db.rollback()` and surface an error to the API caller, even though the row is already committed.\n- Do not add `db: Session` back to a `log_action()` call site. If a service needs the audit entry in the same transaction as the main write, that is a deliberate design change that requires review.\n\n**Middleware**: `ObservabilityMiddleware` creates one observability session per HTTP trace lifecycle and closes it after completion. Child spans, metrics, and SQL instrumentation can create additional sessions. The middleware does not create `request.state.db`.\n\n**Security**: Query operations use request-scoped sessions for RBAC/token scoping. Write operations are not RBAC-protected. Observability visibility is platform-wide.\n\n**Connection Pool Sizing**: Session allocations do not equal simultaneous connections. Commits release connections before subsequent lifecycle operations. Size pools from measured concurrent connection use, worker counts, and database limits. The SQLite lifecycle comparison measures session allocations and checkouts. It does not establish production capacity. See `docs/docs/manage/tuning.md` for measurements and limitations.\n\n<!-- File: .agents/skills/pr-review/SKILL.md (Tokens: ~1811 | Category: anthropic-skill) -->\n---\nname: pr-review\ndescription: Review a PR, branch, or diff in this repository. Use before you create or update a PR, when a branch is ready for review, or before you post `gh pr review`. Defines the procedure, finding format, severity levels, blocking criteria, and tone.\n---\n\n# PR Review\n\nA review reports every issue as a finding the author can act on. A review changes no files.\n\n## Rebase on origin/main\n\n1. Run `git fetch origin`.\n2. Run `git rebase origin/main`.\n\nIf the rebase hits conflicts, resolve them. When both sides changed the same logic substantively, ask the user which side wins. Resolve `.secrets.baseline` conflicts with the `secret-detection` skill.\n\n## Gather Context\n\n1. **Diff**: Collect all changes between `origin/main` and HEAD, plus staged and unstaged working-tree changes. Treat them as one unit. Staging status is never a finding.\n2. **PR metadata**: When a PR exists, read the description, review comments, and linked issues (`gh pr view`, `gh pr view --comments`, `gh issue view N`).\n3. **Scope**: Compare the PR description against the linked issues. Partial coverage of an issue is acceptable when the PR says so. Unstated gaps and scope drift are findings.\n4. **Conventions**: Read `AGENTS.md` and `CONTRIBUTING.md`. Use their linter and test commands exactly.\n\n## Review Order\n\nReview the diff in this order. Severity comes from *Blocking Criteria* below, not from the category.\n\n1. Security: injection, leaked secrets, auth gaps, OWASP top 10, Layer 1 / Layer 2 violations.\n2. Correctness: logic errors, edge cases, mismatch with linked issues.\n3. Test coverage: changed code has tests, including deny-path tests for security changes.\n4. Linter compliance: run project linters on touched files and report violations. Do not fix them (see *Optional Lint Auto-Fix*).\n5. Performance: N+1 queries, unnecessary allocations, bottlenecks.\n6. Redundancy: duplicated logic, copy-paste patterns, shared-utility opportunities.\n7. Design: structural quality (see *Design Guidance*).\n8. Consistency: adherence to documented conventions.\n9. Alembic migrations (conditional): idempotence, reversibility, cross-database compatibility, `batch_alter_table` for SQLite. Apply the `alembic-migrations` skill.\n\n## Optional Lint Auto-Fix\n\nNever auto-fix formatting during a review. A reviewer who edits the reviewed code changes the PR under review. Report `black`, `isort`, `autoflake`, pylint, bandit, and mypy findings for the author to address. Include the exact command and output.\n\nRun the auto-fix only when the user explicitly asks for it, for example a local developer who reviews their own branch. Fix files the PR touched only. Never run formatters on the whole codebase. That pollutes the diff.\n\n```bash\nPY_FILES=\"$(git diff --diff-filter=d --name-only origin/main -- '*.py')\"\nif [ -n \"$PY_FILES\" ]; then\n  make autoflake isort black TARGET=\"$PY_FILES\"\nfi\n```\n\nRun the linters again to check the fixes. Report the fix as a minor finding, for example \"Auto-fixed: ran autoflake/isort/black on N files\".\n\n## Design Guidance\n\n### Structure and modularity\n\n- **Single-responsibility violations**: Name each responsibility and suggest a split.\n- **God functions**: More than 50 lines of logic or more than 3 levels of nesting. Name the extraction points.\n- **Long parameter lists**: More than 5 parameters often means a missing config object or dataclass.\n- **Tight coupling**: Modules that reach into each other's internals. Suggest an interface boundary.\n- **Deep nesting**: Suggest early returns, guard clauses, or extracted helpers.\n\n### Polymorphism\n\nLong `if`/`elif`/`else` chains often want polymorphic dispatch. Look for these in changed code and adjacent code:\n\n- **Type-switching conditionals**, for example `if transport == \"sse\": ... elif transport == \"websocket\": ...`. Suggest an ABC or Protocol with one implementation per variant.\n- **Behavior chosen by enum or string**. Suggest Strategy or Template Method.\n- **Scattered object creation**. Suggest a factory method or registry.\n- **Simple dispatch**. A `dict[key, callable]` table is a good intermediate step.\n- **Copy-paste behavior across classes**. Suggest a `Protocol` or mixin.\n- **Missing abstract parents**. Classes with a shared interface and no common base need an ABC with `@abstractmethod`.\n\n### Missing abstractions\n\n- A pattern repeated at 3 or more call sites needs a shared utility or base class.\n- A data class whose related logic lives in other modules needs that logic moved next to the data.\n\n## Second Opinions\n\nAfter your own review, run these tools as background tasks. If a tool is missing or fails, skip it and note the reduced coverage.\n\n- `codex exec review --base origin/main`\n- `git diff origin/main..HEAD | bob \"Review this diff for correctness, security, and design quality. Be specific about line-level issues.\"`\n\nAttribute each finding to its source. Resolve contradictions.\n\n## Finding Format\n\nWrite each finding as a compact block that reads well in a GitHub comment:\n\n```markdown\n**severity** · `path:line`\nProblem: what is wrong and why it matters.\nFix: the concrete change.\n```\n\nUse short sentences. Add detail only when the problem or fix needs it. Make each fix concrete: name the method to extract, the class to create, the interface to define. \"Consider refactoring\" is not a fix. The delivery channel (file, agent toolkit, `gh pr review`) is per-PR. Ask the user which channel applies before you post externally.\n\n## Severity\n\n| Severity | Meaning | Disposition |\n|----------|---------|-------------|\n| blocking | Meets a blocking criterion with evidence in the diff or linked artifacts | Merge gate. No waiver |\n| functionally-impacting | Affects behavior or maintainability, below the blocking bar | Fix before merge unless the PR documents a waiver |\n| suggestion | A better way exists. Optional | May be deferred |\n| minor | Polish | May be deferred |\n\n## Blocking Criteria\n\nA finding is blocking if and only if it meets one of these criteria with evidence in the diff or linked artifacts. If there is no evidence, the finding is not blocking:\n\n1. Correctness bug in changed code, reachable in real use (includes data loss).\n2. Security regression, or a security-sensitive change without deny-path regression tests (unauthenticated, wrong team, insufficient permission, feature disabled).\n3. Violates a documented Security Invariant or design decision (see *Authentication & RBAC Overview* and *Synchronous SQLAlchemy in Async Handlers* in `AGENTS.md`).\n4. Breaks a consumer contract unflagged: HTTP API, environment variables or their defaults, database schema, Helm values, MCP/A2A wire behavior.\n5. Adds or changes a model without a matching Alembic migration.\n6. The PR does not deliver what it claims.\n\nWhen severity stays ambiguous after investigation, mark the finding blocking and name the missing evidence. The next pass resolves it.\n\nNot blocking: style and naming (Ruff owns these), the sync-SQLAlchemy-in-async pattern, doc polish, test-count aesthetics.\n\n## Output\n\n```markdown\n# PR Review: [branch-name]\n\n## Summary\n[1-2 sentences: what changed, whether it meets the PR and issue goals]\n\n## Findings\n[one block per finding, grouped blocking, functionally-impacting, suggestion, minor]\n\n## Recommendation\n[Exactly ONE of: \"Ready to merge\" | \"Ready after addressing findings\" | \"Needs significant rework\"]\n[1 sentence of justification]\n```\n\n## Rules\n\n- Change no files. Report every finding for the author. Run the lint auto-fix only on explicit user request.\n- Never mention AI or coding assistants in any output.\n\n## Tone\n\nCourteous by structure, direct by sentence. Lead with what works. State severity so the author knows what must change. Write as a respectful senior colleague: direct about problems, never harsh, never hedged. Prose follows *Agent Prose* in `AGENTS.md`. Before you post, rewrite the summary, findings, and recommendation with the `asd-ste100` skill in STE-flavored mode. Done when each sentence is 25 words or fewer, active, and keeps every severity and hedge.\n\n<!-- File: .agents/skills/secret-detection/SKILL.md (Tokens: ~366 | Category: anthropic-skill) -->\n---\nname: secret-detection\ndescription: Resolve a `detect-secrets` finding or a `.secrets.baseline` change. Use when `make detect-secrets-scan` fails, when you add a placeholder credential to docs or code, or when you resolve a baseline merge conflict.\n---\n\n# Secret Detection (detect-secrets)\n\nPrefer removing the trigger. Rewrite the line so it holds no credential-shaped value. Suppress only when the value must stay.\n\n## Suppress a False Positive\n\n- **Python files**: suppress inline with `# pragma: allowlist secret`. The finding then stays out of `.secrets.baseline` after `make detect-secrets-scan`.\n  - Exception: doctest strings where the comment breaks the assertion. Rely on `.secrets.baseline` and audit with `make detect-secrets-audit`.\n- **Makefile**: suppress audited false positives inline with `# pragma: allowlist secret`. In variable assignments, append the pragma directly after the value, with no space. Make keeps whitespace before a comment in the value.\n- **Markdown**: inside a fenced code block, append `# pragma: allowlist secret` to the line. In prose, append `<!-- pragma: allowlist secret -->`. Rewrite the line instead when the pragma would break a sample that readers copy verbatim.\n- **All other file types**: regenerate the baseline with `make detect-secrets-scan`.\n- **Merge conflicts**: resolve `.secrets.baseline` with the version from `main`.\n\n## Verify\n\nRun `make detect-secrets-scan`. It exits non-zero on live or unaudited findings. Remediate with `make detect-secrets-audit`. Done when the command exits zero and `.secrets.baseline` holds no entry for a line you suppressed or removed.\n\n<!-- File: .github/tools/CLEANUP.md (Tokens: ~300 | Category: anthropic-skill) -->\n# Tools Skill\n\nPath: `.github/tools/CLEANUP.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/.github/tools/CLEANUP.md)\n\n<!-- File: docs/docs/architecture/plugins/gateway-hooks.md (Tokens: ~300 | Category: anthropic-skill) -->\n# Plugins Skill\n\nPath: `docs/docs/architecture/plugins/gateway-hooks.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/docs/docs/architecture/plugins/gateway-hooks.md)\n\n<!-- File: docs/docs/architecture/plugins/security-hooks.md (Tokens: ~300 | Category: anthropic-skill) -->\n# Plugins Skill\n\nPath: `docs/docs/architecture/plugins/security-hooks.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/docs/docs/architecture/plugins/security-hooks.md)\n\n<!-- File: docs/docs/using/plugins/grpc-transport.md (Tokens: ~300 | Category: anthropic-skill) -->\n# Plugins Skill\n\nPath: `docs/docs/using/plugins/grpc-transport.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/docs/docs/using/plugins/grpc-transport.md)\n\n<!-- File: docs/docs/using/plugins/http-auth-hooks.md (Tokens: ~300 | Category: anthropic-skill) -->\n# Plugins Skill\n\nPath: `docs/docs/using/plugins/http-auth-hooks.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/docs/docs/using/plugins/http-auth-hooks.md)\n\n<!-- File: docs/docs/using/plugins/index.md (Tokens: ~300 | Category: anthropic-skill) -->\n# Plugins Skill\n\nPath: `docs/docs/using/plugins/index.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/docs/docs/using/plugins/index.md)\n\n<!-- File: docs/docs/using/plugins/lifecycle.md (Tokens: ~300 | Category: anthropic-skill) -->\n# Plugins Skill\n\nPath: `docs/docs/using/plugins/lifecycle.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/docs/docs/using/plugins/lifecycle.md)\n\n<!-- File: docs/docs/using/plugins/migration-to-cpex.md (Tokens: ~300 | Category: anthropic-skill) -->\n# Plugins Skill\n\nPath: `docs/docs/using/plugins/migration-to-cpex.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/docs/docs/using/plugins/migration-to-cpex.md)\n\n<!-- File: docs/docs/using/plugins/mtls.md (Tokens: ~300 | Category: anthropic-skill) -->\n# Plugins Skill\n\nPath: `docs/docs/using/plugins/mtls.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/docs/docs/using/plugins/mtls.md)\n\n<!-- File: docs/docs/using/plugins/plugins.md (Tokens: ~300 | Category: anthropic-skill) -->\n# Plugins Skill\n\nPath: `docs/docs/using/plugins/plugins.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/docs/docs/using/plugins/plugins.md)\n\n<!-- File: docs/docs/using/plugins/unix-socket-transport.md (Tokens: ~300 | Category: anthropic-skill) -->\n# Plugins Skill\n\nPath: `docs/docs/using/plugins/unix-socket-transport.md`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/docs/docs/using/plugins/unix-socket-transport.md)\n\n<!-- File: plugins/ai_artifacts_normalizer/plugin-manifest.yaml (Tokens: ~300 | Category: anthropic-skill) -->\n# Ai_artifacts_normalizer Skill\n\nPath: `plugins/ai_artifacts_normalizer/plugin-manifest.yaml`\n\n[View Raw Content on GitHub](https://raw.githubusercontent.com/IBM/mcp-context-forge/HEAD/plugins/ai_artifacts_normalizer/plugin-manifest.yaml)\n\n<!-- ... +161 more modular skills available via /api/skills/IBM/mcp-context-forge?path={path} -->\n</yakaai_skills>"}