Modern Treasury · Capability

Modern Treasury — JournalSource

Modern Treasury — JournalSource. 2 operations. Lead operation: list journal_sources. Self-contained Naftiko capability covering one Modern Treasury business surface.

Run with Naftiko Modern TreasuryJournalSource

What You Can Do

GET
Listjournalsources — list journal_sources
/v1/api/journal-sources
GET
Getjournalsource — show journal_source
/v1/api/journal-sources/{id}

MCP Tools

list-journal-sources

list journal_sources

read-only idempotent
show-journal-source

show journal_source

read-only idempotent

Capability Spec

modern-treasury-journalsource.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Modern Treasury — JournalSource
  description: 'Modern Treasury — JournalSource. 2 operations. Lead operation: list journal_sources. Self-contained Naftiko
    capability covering one Modern Treasury business surface.'
  tags:
  - Modern Treasury
  - JournalSource
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    MODERN_TREASURY_API_KEY: MODERN_TREASURY_API_KEY
capability:
  consumes:
  - type: http
    namespace: modern-treasury-journalsource
    baseUri: http://localhost:3000
    description: Modern Treasury — JournalSource business capability. Self-contained, no shared references.
    resources:
    - name: api-journal_sources
      path: /api/journal_sources
      operations:
      - name: listjournalsources
        method: GET
        description: list journal_sources
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: journal_report_id
          in: query
          type: string
          description: The ID of the journal report
        - name: journal_entry_id
          in: query
          type: string
          description: The ID of the journal entry
        - name: source_id
          in: query
          type: string
          description: The ID of the source object
        - name: source_type
          in: query
          type: string
          description: The type of the source object
        - name: page
          in: query
          type: integer
          description: Page number for pagination
        - name: per_page
          in: query
          type: integer
          description: Number of items per page
    - name: api-journal_sources-id
      path: /api/journal_sources/{id}
      operations:
      - name: getjournalsource
        method: GET
        description: show journal_source
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: basic
      username: '{{env.MODERN_TREASURY_USER}}'
      password: '{{env.MODERN_TREASURY_PASS}}'
  exposes:
  - type: rest
    namespace: modern-treasury-journalsource-rest
    port: 8080
    description: REST adapter for Modern Treasury — JournalSource. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/api/journal-sources
      name: api-journal-sources
      description: REST surface for api-journal_sources.
      operations:
      - method: GET
        name: listjournalsources
        description: list journal_sources
        call: modern-treasury-journalsource.listjournalsources
        with:
          journal_report_id: rest.journal_report_id
          journal_entry_id: rest.journal_entry_id
          source_id: rest.source_id
          source_type: rest.source_type
          page: rest.page
          per_page: rest.per_page
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/journal-sources/{id}
      name: api-journal-sources-id
      description: REST surface for api-journal_sources-id.
      operations:
      - method: GET
        name: getjournalsource
        description: show journal_source
        call: modern-treasury-journalsource.getjournalsource
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: modern-treasury-journalsource-mcp
    port: 9090
    transport: http
    description: MCP adapter for Modern Treasury — JournalSource. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: list-journal-sources
      description: list journal_sources
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: modern-treasury-journalsource.listjournalsources
      with:
        journal_report_id: tools.journal_report_id
        journal_entry_id: tools.journal_entry_id
        source_id: tools.source_id
        source_type: tools.source_type
        page: tools.page
        per_page: tools.per_page
      outputParameters:
      - type: object
        mapping: $.
    - name: show-journal-source
      description: show journal_source
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: modern-treasury-journalsource.getjournalsource
      outputParameters:
      - type: object
        mapping: $.