follow_user
Follow a specific user on Qiita to track their technical articles and updates. Use this tool to stay informed about developers' content by providing their user ID.
Instructions
指定されたユーザーをフォローします
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| userId | Yes | ユーザーID |
Implementation Reference
- src/tools/handlers.ts:153-156 (handler)Handler definition for the 'follow_user' tool that executes by calling the QiitaApiClient's followUser method.follow_user: { schema: userIdSchema, execute: async ({ userId }, client) => client.followUser(userId), },
- src/tools/definitions.ts:464-477 (registration)MCP tool registration entry for 'follow_user', listed in the tools array for listTools handler.{ name: 'follow_user', description: '指定されたユーザーをフォローします', inputSchema: { type: 'object', properties: { userId: { type: 'string', description: 'ユーザーID', }, }, required: ['userId'], }, },
- src/tools/handlers.ts:15-17 (schema)Zod input validation schema for userId parameter used in the follow_user handler.const userIdSchema = z.object({ userId: z.string(), });
- src/qiitaApiClient.ts:194-198 (helper)QiitaApiClient helper method that performs the actual API call to follow a user.async followUser(userId: string) { this.assertAuthenticated(); await this.client.put(`/users/${userId}/following`); return { success: true }; }