import { printError, printObject } from "@/lib/output";
import { getAPIClient } from "@/lib/trpc";
import { Command } from "@commander-js/extra-typings";
export const whoamiCmd = new Command()
.name("whoami")
.description("returns info about the owner of this API key")
.action(async () => {
await getAPIClient()
.users.whoami.query()
.then(printObject)
.catch(
printError(
`Unable to fetch information about the owner of this API key`,
),
);
});
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/karakeep-app/karakeep'
If you have feedback or need assistance with the MCP directory API, please join our Discord server