import { Tool, ToolResult } from '../base.js';
import type { MewsAuthConfig } from '../../types/auth.js';
import { mewsRequest } from '../../utils/http.js';
export const getConfigurationTool: Tool = {
name: 'getConfiguration',
description: 'Returns configuration of the enterprise and the client',
inputSchema: {
type: 'object',
properties: {},
additionalProperties: false
},
async execute(config: MewsAuthConfig, args: unknown): Promise<ToolResult> {
const result = await mewsRequest(config, '/api/connector/v1/configuration/get', {});
return {
content: [{
type: 'text',
text: JSON.stringify(result, null, 2)
}]
};
}
};