id: apache-casbin-mcp-gateway-detect

info:
  name: Apache Casbin MCP Gateway - Detection
  author: icarot
  severity: info
  description: |
    Detects an Apache Casbin MCP Gateway server, a lightweight gateway service that instantly transforms existing MCP Servers and APIs into MCP servers with zero code changes.
  reference:
    - https://github.com/apache/casbin-mcp-gateway
  metadata:
    vendor: apache
    product: casbin-mcp-gateway
  tags: tech,casbin-mcp-gateway,apache,detect
http:
  - method: GET
    path:
      - "{{BaseURL}}/health"

    matchers-condition: and
    matchers:
      - type: word
        words:
          - '"service": "mcp-gateway"'
        condition: and
      - type: status
        status:
          - 200
    extractors:
      - type: json
        name: version
        part: body
        json:
          - '.version'
# digest: 4b0a00483046022100d9c23c922bef8e9db91c5f33c8d6156e3329ecab217c6fc6493b0c9dff93af4e022100c8faaad0725313c2f5d473efa9e1a27fae6f5f040d76b021cf015757b43cf4eb:922c64590222798bb761d5b6d8e72950