Wiktionary · Capability

Wiktionary MediaWiki Action API — OpenSearch

MediaWiki Action API — OpenSearch. 1 operations. Lead operation: Wiktionary OpenSearch Suggest. Self-contained Naftiko capability covering one Wiktionary business surface.

Run with Naftiko WiktionaryMediaWiki Action APIOpenSearch

What You Can Do

GET
Opensearchsuggest — Wiktionary OpenSearch Suggest
/v1/api-php-opensearch

MCP Tools

open-search-suggest

Wiktionary OpenSearch Suggest

read-only idempotent

Capability Spec

mediawiki-action-api-opensearch.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Wiktionary MediaWiki Action API — OpenSearch
  description: 'MediaWiki Action API — OpenSearch. 1 operations. Lead operation: Wiktionary OpenSearch Suggest. Self-contained Naftiko capability covering one Wiktionary business surface.'
  tags:
  - Wiktionary
  - MediaWiki Action API
  - OpenSearch
  created: '2026-05-30'
  modified: '2026-05-30'
binds:
- namespace: env
  keys:
    WIKTIONARY_MEDIAWIKI_TOKEN: WIKTIONARY_MEDIAWIKI_TOKEN
capability:
  consumes:
  - type: http
    namespace: mediawiki-action-api-opensearch
    baseUri: https://en.wiktionary.org/w
    description: Wiktionary MediaWiki Action API — OpenSearch business capability. Self-contained, no shared references.
    authentication:
      type: bearer
      token: '{{env.WIKTIONARY_MEDIAWIKI_TOKEN}}'
    resources:
    - name: api-php-opensearch
      path: /api.php#opensearch
      operations:
      - name: openSearchSuggest
        method: GET
        description: Wiktionary OpenSearch Suggest
        inputParameters:
        - name: action
          in: query
          type: string
          required: true
          description: Must be `opensearch`.
        - name: search
          in: query
          type: string
          required: true
          description: Prefix to autocomplete.
        - name: limit
          in: query
          type: integer
          required: false
          description: Maximum number of suggestions to return.
        - name: namespace
          in: query
          type: string
          required: false
          description: Pipe-separated namespace numbers to search within.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
  exposes:
  - type: rest
    namespace: mediawiki-action-api-opensearch-rest
    port: 8080
    description: REST adapter for Wiktionary MediaWiki Action API — OpenSearch. One Spectral-compliant resource per consumed operation, prefixed with /v1.
    resources:
    - path: /v1/api-php-opensearch
      name: api-php-opensearch
      description: REST surface for Wiktionary OpenSearch Suggest.
      operations:
      - method: GET
        name: openSearchSuggest
        description: Wiktionary OpenSearch Suggest
        call: mediawiki-action-api-opensearch.openSearchSuggest
        with:
          action: rest.action
          search: rest.search
          limit: rest.limit
          namespace: rest.namespace
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: mediawiki-action-api-opensearch-mcp
    port: 9090
    transport: http
    description: MCP adapter for Wiktionary MediaWiki Action API — OpenSearch. One tool per consumed operation, routed inline through this capability's consumes block.
    tools:
    - name: open-search-suggest
      description: Wiktionary OpenSearch Suggest
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: mediawiki-action-api-opensearch.openSearchSuggest
      with:
        action: tools.action
        search: tools.search
        limit: tools.limit
        namespace: tools.namespace
      outputParameters:
      - type: object
        mapping: $.