Files
hermes-mcp/test-tool-direct.mjs
2026-04-29 09:52:53 -04:00

13 lines
393 B
JavaScript

import 'dotenv/config';
import { handleToolCall } from './dist/tools.js';
async function main() {
// Test via the same path the server uses
const result = await handleToolCall('search_messages', { q: 'test', account: 'gmail', maxResults: 3 });
console.log(JSON.stringify(result, null, 2));
}
main().catch(err => {
console.error('ERROR:', err.message);
console.error(err.stack);
});