fandom_user_info
Retrieve user information from Fandom platforms to support open-source intelligence investigations and security research.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| username | Yes | Fandom username |
Implementation Reference
- src/tools/fandom.ts:12-29 (handler)The getUserInfo method inside the FandomApiClient class handles the API request to fetch user information from Fandom.
async getUserInfo(username: string): Promise<any> { try { const data = await this.fetch<any>("", { method: "GET", }, { action: "query", list: "users", ususers: username, usprop: "blockinfo|groups|editcount|registration|gender", format: "json", }); return data.query?.users?.[0] || null; } catch (error) { if (error instanceof McpError) throw error; throw new McpError(ErrorCode.InternalError, `Fandom User Info error: ${(error as Error).message}`); } } - src/index.ts:413-420 (registration)Registration of the "fandom_user_info" tool in the main server file, which calls the FandomApiClient.getUserInfo method.
server.tool( "fandom_user_info", { username: z.string().describe("Fandom username") }, async ({ username }) => { const result = await fandomClient.getUserInfo(username); return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }], };