Skip to content

[DOCS] Document MCP_INCLUDE_TOOLS/MCP_EXCLUDE_TOOLS config #251

Closed

Description

The canonical openapi.yaml in inference-gateway/schemas now carries two MCP tool-filtering config entries that drive the gateway's config/docs/.env generation:

  • mcp_include_tools / MCP_INCLUDE_TOOLS (string): comma-separated allowlist of MCP tool names to inject. If empty, all tools are injected. Takes precedence over MCP_EXCLUDE_TOOLS.
  • mcp_exclude_tools / MCP_EXCLUDE_TOOLS (string): comma-separated denylist of MCP tool names to skip injecting. If empty, no tools are excluded. Takes lower precedence than MCP_INCLUDE_TOOLS.

These were already a shipped gateway feature but were missing from the upstream schema; they have now been added.

What needs documenting:

  • Config reference / MCP section: list both env vars with type, default (empty), and precedence behavior.
  • Any .env example or configuration tables generated from the schema should include both keys.

Source schemas PR: inference-gateway/schemas pull request 79 (closes issue 75).

Activity

  1. added
    documentation
    on Jun 18, 2026
  2. edenreich commented on Jun 18, 2026

    @edenreich
    Contributor

    @claude Can you document it?

  3. inference-gateway-maintainer commented on Jun 18, 2026

    @inference-gateway-maintainer
    ContributorAuthor

    Claude finished @edenreich's task in 4m 51s —— View job • docs/issue-251-20260618-2102 • [Create PR ➔](https://github.com/inference-gateway/docs/compare/main...docs/issue-251-20260618-2102?quick_pull=1&title=Issue%20%23251%3A%20Changes%20from%20Claude&body=This%20PR%20addresses%20issue%20%23251%0A%0AGenerated%20with%20%5BClaude%20Code%5D(https%3A%2F%2Fclaude.ai%2Fcode)


    Documenting MCP_INCLUDE_TOOLS / MCP_EXCLUDE_TOOLS

    Done. Both config keys are now documented.

    • Gather context (read configuration.md + mcp.md, find all MCP config references)
    • Add MCP_INCLUDE_TOOLS / MCP_EXCLUDE_TOOLS to the MCP settings table in configuration.md
    • Add precedence explanation + both keys to the .env / complete config example
    • Document tool filtering on the dedicated mcp.md page
    • Run lint + format + build to verify
    • Commit and open PR

    What changed

    configuration.md (canonical config reference)

    • Added both vars to the MCP settings ConfigTable - each with type, default (""), and precedence behavior in the description.
    • Added a short paragraph after the table explaining the allowlist/denylist semantics and that MCP_INCLUDE_TOOLS wins when both are set.
    • Added MCP_INCLUDE_TOOLS= and MCP_EXCLUDE_TOOLS= to the complete .env example.

    mcp.md (dedicated MCP page - the one that documents dynamic tool injection)

    • Added both vars to the Environment Variables block.
    • Added a new Filtering Injected Tools subsection with allowlist/denylist semantics, precedence, and runnable examples, noting that tool names match those from GET /v1/mcp/tools.

    Verification

    Check Result
    bun run lint:md passes
    bun run format:check passes
    bun run build passes
    SSR'd HTML contains both vars confirmed in dist/configuration/index.html and dist/mcp/index.html (indexable, not client-only)

    The other files (sdks.md, troubleshooting.md, index.md, api-reference.md) only mention MCP in passing and don't enumerate every config var, so they were intentionally left unchanged.

    PR: #253 (Closes #251)

  4. moved this from In progress to QA in 2026on Jun 18, 2026
  5. moved this from QA to Done in 2026on Jun 18, 2026
  6. inference-gateway-releaser commented on Jun 24, 2026

    @inference-gateway-releaser
    Contributor

    🎉 This issue has been resolved in version 0.6.113 🎉

    The release is available on GitHub release

    Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationreleased

    Type

    No type

    Projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions