Skip to main content
Glama
Selenium39

Qiita API MCP Server

stock_item

Save articles to your Qiita reading list for later reference by providing the article ID.

Instructions

指定された記事をストックします

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
itemIdYes記事ID

Implementation Reference

  • Handler for the 'stock_item' MCP tool. Validates the input using itemIdSchema and executes by calling the Qiita client's stockItem method.
    stock_item: {
      schema: itemIdSchema,
      execute: async ({ itemId }, client) => client.stockItem(itemId),
    },
  • MCP tool definition for 'stock_item', including name, description, and input schema requiring 'itemId'.
    {
      name: 'stock_item',
      description: '指定された記事をストックします',
      inputSchema: {
        type: 'object',
        properties: {
          itemId: {
            type: 'string',
            description: '記事ID',
          },
        },
        required: ['itemId'],
      },
    },
  • Core implementation in QiitaApiClient that authenticates and makes PUT request to Qiita API to stock the specified item.
    async stockItem(itemId: string) {
      this.assertAuthenticated();
      await this.client.put(`/items/${itemId}/stock`);
      return { success: true };
    }

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