github_user_info
Retrieve GitHub user information for OSINT investigations by providing a username to analyze profiles, repositories, and activity data.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| username | Yes | GitHub username |
Implementation Reference
- src/tools/github.ts:27-37 (handler)The handler implementation for the `github_user_info` tool.
async getUserInfo(username: string): Promise<any> { try { return await this.fetch<any>(`users/${username}`, { method: "GET", headers: this.getHeaders(), }); } catch (error) { if (error instanceof McpError) throw error; throw new McpError(ErrorCode.InternalError, `GitHub User Info error: ${(error as Error).message}`); } } - src/index.ts:353-360 (registration)Registration of the `github_user_info` tool in the main server file.
server.tool( "github_user_info", { username: z.string().describe("GitHub username") }, async ({ username }) => { const result = await ghClient.getUserInfo(username); return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }], };