Skip to main content
Glama
Selenium39

Qiita API MCP Server

get_user_items

Retrieve articles posted by a specific user on Qiita, the Japanese developer community platform, using their user ID with pagination support.

Instructions

指定されたユーザーの記事一覧を取得します

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
userIdYesユーザーID
pageNoページ番号(1-100)
perPageNo1ページあたりの件数(1-100)

Implementation Reference

  • The handler for the 'get_user_items' MCP tool. It defines the input schema by merging userId and pagination schemas, and the execute function which calls QiitaApiClient.getUserItems with the provided parameters.
    get_user_items: {
      schema: userIdSchema.merge(paginationSchema),
      execute: async ({ userId, page, perPage }, client) =>
        client.getUserItems(userId, page, perPage),
    },
  • The tool schema definition for 'get_user_items', including name, description, and inputSchema used for listing tools.
    {
      name: 'get_user_items',
      description: '指定されたユーザーの記事一覧を取得します',
      inputSchema: {
        type: 'object',
        properties: {
          userId: {
            type: 'string',
            description: 'ユーザーID',
          },
          page: {
            type: 'number',
            description: 'ページ番号(1-100)',
            default: 1,
          },
          perPage: {
            type: 'number',
            description: '1ページあたりの件数(1-100)',
            default: 20,
          },
        },
        required: ['userId'],
      },
  • The helper method in QiitaApiClient that performs the actual HTTP request to fetch the user's items from the Qiita API.
    async getUserItems(userId: string, page = 1, perPage = 20) {
      const response = await this.client.get(`/users/${userId}/items`, {
        params: { page, per_page: perPage },
      });
      return response.data;
    }

Latest Blog Posts

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/Selenium39/mcp-server-qiita'

If you have feedback or need assistance with the MCP directory API, please join our Discord server