UNPKG

n8n-bookstack-agent-tool

Version:

Comprehensive BookStack API integration tool for n8n AI Agent with MCP framework compatibility

57 lines 1.83 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.BookStackApi = void 0; class BookStackApi { constructor() { this.name = 'bookStackApi'; this.displayName = 'BookStack API'; this.documentationUrl = 'https://demo.bookstackapp.com/api/docs'; this.properties = [ { displayName: 'Base URL', name: 'baseUrl', type: 'string', default: '', placeholder: 'https://your-bookstack.com', required: true, description: 'The base URL of your BookStack instance', }, { displayName: 'Token ID', name: 'token', type: 'string', default: '', required: true, description: 'The API token ID from BookStack', }, { displayName: 'Token Secret', name: 'tokenSecret', type: 'string', typeOptions: { password: true, }, default: '', required: true, description: 'The API token secret from BookStack', }, ]; this.authenticate = { type: 'generic', properties: { headers: { Authorization: '=Bearer {{$credentials.token}}:{{$credentials.tokenSecret}}', }, }, }; this.test = { request: { baseURL: '={{$credentials.baseUrl}}', url: '/api/docs.json', method: 'GET', }, }; } } exports.BookStackApi = BookStackApi; //# sourceMappingURL=BookStackApi.credentials.js.map