agentfabric gateway

    by Ayonija Mathur

    1

    Configure and validate AgentFabric MCP gateways with tenant isolation, RBAC, and CEL security policies.

    $49

    /mo

    Subscription · cancel anytime

    Secure checkout via Stripe

    • Always the latest version
    • Delivered live to your agent via MCP
    • Cancel anytime, access ends at period end
    Security scanned

    Works with the AI Agents you already use

    agentfabric gateway

    Example session with this skill installed

    Set up a production AgentFabric gateway for two tenants: 'dev' and 'ops'. 'dev' gets read-only GitHub access, 'ops' gets full Kubernetes access. Use environment variables for all tokens.

    • Read your context and instructions
    • Compiled the agentfabric gateway

    I have generated a hardened AgentFabric configuration for your dev and ops tenants. This setup enforces tenant isolation, uses environment variable mapping for credentials, and implements a deny-by-default policy for tool access.

    AgentFabric Gateway Configuration

    version: "1"
    auth:
      enabled: true
    policy:
      enabled: true
    
    tenants:
      - id: dev
        description: "Development team"
        allowedUpstreams: ["github-read"]
      - id: ops
        description: "Operations team"
        allowedUpstreams: ["github-read", "k8s-prod"]
    
    upstreams:
      - id: github-read
        url: "http://github-mcp:3000"
        auth:
          type: bearer
          tokenEnv: GITHUB_READ_TOKEN
      - id: k8s-prod
        url: "https://k8s-mcp.internal.svc"
        auth:
          type: bearer
          tokenEnv: K8S_PROD_TOKEN
    
    security:
      allowedUpstreamHosts: ["github-mcp", "k8s-mcp.internal.svc"]
      allowPrivateNetworks: true
    
    roles:
      - id: reader
        allow: ["github-read.get_*", "github-read.list_*"]
      - id: admin
        allow: ["k8s-prod.*", "github-read.*"]
    
    assignments:
      - tenant: dev
        role: reader
      - tenant: ops
        role: admin
    

    Next steps

    1. Set the GITHUB_READ_TOKEN and K8S_PROD_TOKEN environment variables in your deployment environment.
    2. Run npx tsx skills/agentfabric-gateway/scripts/validate-config.ts gateway.yaml --production to verify the security posture.
    3. Deploy the YAML via your CI/CD pipeline or Helm chart.
    $49/mo

    Subscription · always the latest version

    • Secure checkout via Stripe
    • Cancel anytime
    • Delivered live via MCP

    About this skill

    Managing multiple MCP servers across different environments often leads to fragmented security and leaky credentials. This skill configures AgentFabric as a governed gateway to federate upstream tools, enforce tenant isolation, and validate security policies before deployment.

    What it does

    • Federated tool mapping maps upstream servers to stable IDs to create clean, prefixed toolsets.
    • Tenant isolation restricts specific users or groups to an explicit allow-list of upstream hosts.
    • RBAC and CEL policy implements fine-grained access control using role patterns or Common Expression Language for complex logic.
    • Credential management configures secure bearer token handshakes using environment variables instead of hardcoded secrets.
    • Configuration validation runs automated checks to detect insecure settings like disabled auth or overly broad network access.

    How it works

    1. Inventory upstreams by identifying URLs, required credentials, and defining lowercase IDs for tool prefixing.
    2. Define access policies using RBAC for tool-level permissions or CEL for attribute-based constraints like MFA requirements.
    3. Configure networking by restricting allowed upstream hosts and private network access based on the environment.
    4. Validate schema using the internal AgentFabric scripts to catch errors before the gateway goes live.

    Frameworks & tools

    Built for AgentFabric gateway deployments using YAML configuration, CEL (Common Expression Language) for logic, and TypeScript-based validation scripts.

    Why this beats prompting it yourself

    Writing gateway policies manually often results in "allow-all" bypasses or broken tool prefixes. This skill enforces deny-by-default logic and ensures your configuration passes production-grade validation scripts automatically.

    Use cases

    • Multi-tenant isolation to prevent one team from accessing another team's internal MCP tools.
    • Production hardening by verifying all credentials use environment variables and auth is strictly enabled.
    • Advanced tool gating requiring specific claims or arguments before a sensitive tool like a database migration is executed.

    Known limitations

    Does not support direct token forwarding from callers. Requires access to the AgentFabric repository root to run validation scripts locally.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Free to use

    No account required to browse

    Trust & safety

    Security scan

    Security scan passed 11 days ago

    Software
    tsxNode.js

    Permissions

    Terminal / Shell
    Read Files
    Environment Variables
    Listed11 days ago

    What's inside

    Frequently Asked Questions

    This skill automates the configuration of AgentFabric as a centralized security layer, preventing credential leaks and ensuring that multiple MCP servers are properly isolated through RBAC and CEL policies.

    The gateway is compatible with any MCP-compliant servers and is specifically designed for deployments utilizing the AgentFabric framework with YAML-based configurations.

    Yes, the skill includes logic for Common Expression Language (CEL) which allows you to gate sensitive tools based on specific user claims, MFA status, or argument-level constraints.

    You will receive a set of configuration templates, security policy patterns for RBAC/CEL, and the automated validation workflows needed to verify your gateway setup before deployment.

    While the skill provides the configuration logic, you must have local access to the AgentFabric repository root to execute the internal TypeScript-based validation scripts.

    Absolutely. The skill is built to map multiple upstream servers to stable, prefixed IDs, making it ideal for organizations managing fragmented tools across different team environments.

    New in LLM Ops

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for LLM Ops.