Apache Tomcat · Capability

Apache Tomcat Manager API — JMX

Apache Tomcat Manager API — JMX. 1 operations. Lead operation: JMX Proxy. Self-contained Naftiko capability covering one Tomcat business surface.

Run with Naftiko TomcatJMX

What You Can Do

GET
Jmxproxy — JMX Proxy
/v1/jmxproxy

MCP Tools

jmx-proxy

JMX Proxy

read-only idempotent

Capability Spec

manager-jmx.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Apache Tomcat Manager API — JMX
  description: 'Apache Tomcat Manager API — JMX. 1 operations. Lead operation: JMX Proxy. Self-contained Naftiko capability
    covering one Tomcat business surface.'
  tags:
  - Tomcat
  - JMX
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    TOMCAT_API_KEY: TOMCAT_API_KEY
capability:
  consumes:
  - type: http
    namespace: manager-jmx
    baseUri: http://localhost:8080/manager
    description: Apache Tomcat Manager API — JMX business capability. Self-contained, no shared references.
    resources:
    - name: jmxproxy
      path: /jmxproxy/
      operations:
      - name: jmxproxy
        method: GET
        description: JMX Proxy
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: qry
          in: query
          type: string
          description: JMX query expression (e.g., *:type=RequestProcessor,*)
        - name: get
          in: query
          type: string
          description: MBean name to get attribute from
        - name: att
          in: query
          type: string
          description: Attribute name to get or set
        - name: key
          in: query
          type: string
          description: Key within a CompositeData attribute
        - name: set
          in: query
          type: string
          description: MBean name for attribute setting
        - name: val
          in: query
          type: string
          description: New attribute value
        - name: invoke
          in: query
          type: string
          description: MBean name for method invocation
        - name: op
          in: query
          type: string
          description: Method name to invoke
        - name: ps
          in: query
          type: string
          description: Parameters for method invocation
    authentication:
      type: basic
      username: '{{env.TOMCAT_USER}}'
      password: '{{env.TOMCAT_PASS}}'
  exposes:
  - type: rest
    namespace: manager-jmx-rest
    port: 8080
    description: REST adapter for Apache Tomcat Manager API — JMX. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/jmxproxy
      name: jmxproxy
      description: REST surface for jmxproxy.
      operations:
      - method: GET
        name: jmxproxy
        description: JMX Proxy
        call: manager-jmx.jmxproxy
        with:
          qry: rest.qry
          get: rest.get
          att: rest.att
          key: rest.key
          set: rest.set
          val: rest.val
          invoke: rest.invoke
          op: rest.op
          ps: rest.ps
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: manager-jmx-mcp
    port: 9090
    transport: http
    description: MCP adapter for Apache Tomcat Manager API — JMX. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: jmx-proxy
      description: JMX Proxy
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: manager-jmx.jmxproxy
      with:
        qry: tools.qry
        get: tools.get
        att: tools.att
        key: tools.key
        set: tools.set
        val: tools.val
        invoke: tools.invoke
        op: tools.op
        ps: tools.ps
      outputParameters:
      - type: object
        mapping: $.