export function registerProjectTools(server, client) {
    server.tool('list_projects', 'List all projects', {}, async () => {
        try {
            const result = await client.listProjects();
            return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }] };
        }
        catch (e) {
            return { content: [{ type: 'text', text: `Error: ${e.message}` }], isError: true };
        }
    });
}
//# sourceMappingURL=projects.js.map