naftiko: 1.0.0-alpha2 info: label: Local REST API for Obsidian — Vault Directories description: 'Local REST API for Obsidian — Vault Directories. 2 operations. Lead operation: List files that exist in the root of your vault.. Self-contained Naftiko capability covering one Obsidian business surface.' tags: - Obsidian - Vault Directories created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: OBSIDIAN_API_KEY: OBSIDIAN_API_KEY capability: consumes: - type: http namespace: local-rest-vault-directories baseUri: https://{host}:{port} description: Local REST API for Obsidian — Vault Directories business capability. Self-contained, no shared references. resources: - name: vault path: /vault/ operations: - name: get method: GET description: List files that exist in the root of your vault. outputRawFormat: json outputParameters: - name: result type: object value: $. - name: vault-pathToDirectory path: /vault/{pathToDirectory}/ operations: - name: get method: GET description: List files that exist in the specified directory. outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: pathToDirectory in: path type: string description: Path to list files from (relative to your vault root). Note that empty directories will not be returned. required: true authentication: type: bearer token: '{{env.OBSIDIAN_API_KEY}}' exposes: - type: rest namespace: local-rest-vault-directories-rest port: 8080 description: REST adapter for Local REST API for Obsidian — Vault Directories. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/vault name: vault description: REST surface for vault. operations: - method: GET name: get description: List files that exist in the root of your vault. call: local-rest-vault-directories.get outputParameters: - type: object mapping: $. - path: /v1/vault/{pathtodirectory} name: vault-pathtodirectory description: REST surface for vault-pathToDirectory. operations: - method: GET name: get description: List files that exist in the specified directory. call: local-rest-vault-directories.get with: pathToDirectory: rest.pathToDirectory outputParameters: - type: object mapping: $. - type: mcp namespace: local-rest-vault-directories-mcp port: 9090 transport: http description: MCP adapter for Local REST API for Obsidian — Vault Directories. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: list-files-that-exist-root description: List files that exist in the root of your vault. hints: readOnly: true destructive: false idempotent: true call: local-rest-vault-directories.get outputParameters: - type: object mapping: $. - name: list-files-that-exist-specified description: List files that exist in the specified directory. hints: readOnly: true destructive: false idempotent: true call: local-rest-vault-directories.get with: pathToDirectory: tools.pathToDirectory outputParameters: - type: object mapping: $.