sourcesyncai-mcp
Version:
[](https://smithery.ai/server/@pbteja1998/sourcesyncai-mcp)
23 lines (22 loc) • 535 B
JavaScript
import { apiClient } from "./api-client.js";
/**
* Validates an API key
*/
export async function validateApiKey(params) {
try {
// Use the existing apiClient to validate the API key
const result = await apiClient.validateApiKey();
return {
valid: true,
message: "API key is valid",
data: result
};
}
catch (error) {
return {
valid: false,
message: error.message || "Invalid API key",
error
};
}
}