TechCrunch · Capability

TechCrunch WordPress REST API — Posts

TechCrunch WordPress REST API — Posts. 2 operations. Lead operation: List Posts. Self-contained Naftiko capability covering one Techcrunch business surface.

Run with Naftiko TechcrunchPosts

What You Can Do

GET
Listposts — List Posts
/v1/posts
GET
Getpost — Get Post
/v1/posts/{id}

MCP Tools

list-posts

List Posts

read-only idempotent
get-post

Get Post

read-only idempotent

Capability Spec

wordpress-rest-posts.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: TechCrunch WordPress REST API — Posts
  description: 'TechCrunch WordPress REST API — Posts. 2 operations. Lead operation: List Posts. Self-contained Naftiko capability
    covering one Techcrunch business surface.'
  tags:
  - Techcrunch
  - Posts
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    TECHCRUNCH_API_KEY: TECHCRUNCH_API_KEY
capability:
  consumes:
  - type: http
    namespace: wordpress-rest-posts
    baseUri: https://techcrunch.com/wp-json/wp/v2
    description: TechCrunch WordPress REST API — Posts business capability. Self-contained, no shared references.
    resources:
    - name: posts
      path: /posts
      operations:
      - name: listposts
        method: GET
        description: List Posts
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: page
          in: query
          type: integer
          description: Current page of the collection.
        - name: per_page
          in: query
          type: integer
          description: Maximum number of items to be returned in result set.
        - name: search
          in: query
          type: string
          description: Limit results to those matching a string.
        - name: after
          in: query
          type: string
          description: Limit response to posts published after a given ISO8601 date.
        - name: before
          in: query
          type: string
          description: Limit response to posts published before a given ISO8601 date.
        - name: author
          in: query
          type: array
          description: Limit result set to posts assigned to specific authors.
        - name: categories
          in: query
          type: array
          description: Limit result set to posts assigned to specific category IDs.
        - name: tags
          in: query
          type: array
          description: Limit result set to posts assigned to specific tag IDs.
        - name: orderby
          in: query
          type: string
          description: Sort collection by object attribute.
        - name: order
          in: query
          type: string
          description: Order sort attribute ascending or descending.
        - name: _fields
          in: query
          type: string
          description: Limit response to specific fields. Separate multiple fields with commas.
        - name: _embed
          in: query
          type: boolean
          description: Embed linked resources in the response.
    - name: posts-id
      path: /posts/{id}
      operations:
      - name: getpost
        method: GET
        description: Get Post
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: _fields
          in: query
          type: string
          description: Limit response to specific fields.
        - name: _embed
          in: query
          type: boolean
          description: Embed linked resources.
  exposes:
  - type: rest
    namespace: wordpress-rest-posts-rest
    port: 8080
    description: REST adapter for TechCrunch WordPress REST API — Posts. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/posts
      name: posts
      description: REST surface for posts.
      operations:
      - method: GET
        name: listposts
        description: List Posts
        call: wordpress-rest-posts.listposts
        with:
          page: rest.page
          per_page: rest.per_page
          search: rest.search
          after: rest.after
          before: rest.before
          author: rest.author
          categories: rest.categories
          tags: rest.tags
          orderby: rest.orderby
          order: rest.order
          _fields: rest._fields
          _embed: rest._embed
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/posts/{id}
      name: posts-id
      description: REST surface for posts-id.
      operations:
      - method: GET
        name: getpost
        description: Get Post
        call: wordpress-rest-posts.getpost
        with:
          _fields: rest._fields
          _embed: rest._embed
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: wordpress-rest-posts-mcp
    port: 9090
    transport: http
    description: MCP adapter for TechCrunch WordPress REST API — Posts. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: list-posts
      description: List Posts
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: wordpress-rest-posts.listposts
      with:
        page: tools.page
        per_page: tools.per_page
        search: tools.search
        after: tools.after
        before: tools.before
        author: tools.author
        categories: tools.categories
        tags: tools.tags
        orderby: tools.orderby
        order: tools.order
        _fields: tools._fields
        _embed: tools._embed
      outputParameters:
      - type: object
        mapping: $.
    - name: get-post
      description: Get Post
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: wordpress-rest-posts.getpost
      with:
        _fields: tools._fields
        _embed: tools._embed
      outputParameters:
      - type: object
        mapping: $.