
woraphol-j/lineshopping-api-mcp
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
LINE SHOPPING API用のモデルコンテキストプロトコル(MCP)サーバー。 LINE SHOPPINGの商品、在庫、注文、決済を自動生成したMCPツールで管理できるAIエージェントやツールが使用可能です.
概要
MCPの特長 LINEショッピングAPI用のサーバーで、AIエージェントやツールがモデルコンテキストプロトコルを介してLINEショッピングデータや操作とやり取りできるようにします。 このサーバは、公式LINEショッピングAPIを使用して、商品、在庫、注文、決済などを管理するためのツールを提供しています。 - : 製品やバリアントを検索、作成、更新、削除 - : Adjust、増加、または在庫レベルを削減 - : クエリ、ビュー、キャンセル、および更新注文 - : 注文のための決済の詳細を取得する - : すべてのツールはOpenAPIの仕様から自動生成されます 1. Python >= 3.13 2. uvPython(パッケージマネージャ) 3. LINEショッピングAPIキー(X API KEY) uvx を使用して PyPI から直接インストールして実行します。 永続的な構成のために、作業ディレクトリに .env ファイルを作成します。 PyPI インストールされたパッケージを使用するエージェントを設定します。 ローカル開発またはクローン化されたリポジトリの場合: 以下のツールは、MCP サーバーによって公開されます(詳細は openapi.json を参照してください)
概要(AI 翻訳)
MCPの特長 LINEショッピングAPI用のサーバーで、AIエージェントやツールがモデルコンテキストプロトコルを介してLINEショッピングデータや操作とやり取りできるようにします。 このサーバは、公式LINEショッピングAPIを使用して、商品、在庫、注文、決済などを管理するためのツールを提供しています。
##特徴
- 製品管理: 製品や variant を検索、作成、更新、削除
- 在庫管理: 在庫レベルを調整、増加、または減少
- 注文管理: クエリ、ビュー、キャンセル、および更新注文
- 設定:注文のための決済の詳細を取得する
- OpenAPIの統合:すべてのツールはOpenAPIの仕様から自動生成されます
前提条件
- Python >= 3.13
- uv(Pythonパッケージマネージャ)
- LINEショッピングAPIキー([[T0])
インストール
方法1:uvx(推奨)の使用
uvxを使用してPyPIから直接インストールして実行します。
環境変数で実行するか:
方法 2: クローンと実行
- リポジトリのクローン:
2.依存関係のインストール:
3。サーバーの実行:
環境設定
永続的な構成のために、作業ディレクトリの[.env]ファイルを作成します。
構成と統合
uvx (PyPI インストール) を使用する
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
以下は原文 README の抜粋です。原文を見る。
LINE Shopping API MCP Server
MCP Server for the LINE Shopping API, enabling AI agents and tools to interact with LINE Shopping data and operations via the Model Context Protocol. This server provides tools for managing products, inventory, orders, settlements, and more, using the official LINE Shopping API.
Features
- Product Management: Search, create, update, and delete products and variants
- Inventory Management: Adjust, increase, or decrease inventory levels
- Order Management: Query, view, cancel, and update orders
- Settlement: Retrieve settlement details for orders
- OpenAPI Integration: All tools are auto-generated from the OpenAPI spec
Prerequisites
- Python >= 3.13
- uv (Python package manager)
- LINE Shopping API Key (
X_API_KEY)
Installation
Method 1: Using uvx (Recommended)
Install and run directly from PyPI using uvx:
# Install and run the MCP server (note the different executable name)
uvx --from lineshopping-api-mcp lineshopping-mcp
Or run with environment variables:
# Set your API key and run
X_API_KEY=your_api_key_here uvx --from lineshopping-api-mcp lineshopping-mcp
Method 2: Clone and Run
-
Clone the repository:
git clone https://github.com/woraphol-j/lineshopping-api-mcp.git cd lineshopping-api-mcp -
Install dependencies:
uv add fastmcp httpx -
Run the server:
# Set your API key and run X_API_KEY=your_api_key_here uv run --with fastmcp fastmcp run app.py
Environment Configuration
For persistent configuration, create a .env file in your working directory:
X_API_KEY=your_api_key_here
Configuration & Integration
Using uvx (PyPI Installation)
Configure your agent to use the PyPI-installed package:
{
"inputs": [
{
"type": "promptString",
"id": "line-shopping-api-key",
"description": "LINE Shopping API Key",
"password": true
}
],
"servers": {
"LINE Shopping API MCP": {
"command": "uvx",
"args": [
"--from",
"lineshopping-api-mcp",
"lineshopping-mcp"
],
"env": {
"X_API_KEY": "${input:line-shopping-api-key}"
}
}
}
}
Using Local Clone
For local development or cloned repository:
{
"inputs": [
{
"type": "promptString",
"id": "line-shopping-api-key",
"description": "LINE Shopping API Key",
"password": true
}
],
"servers": {
"LINE Shopping API MCP": {
"command": "uv",
"args": [
"run",
"--with",
"fastmcp",
"fastmcp",
"run",
"/Users/xxx/lineshopping-api-mcp/app.py"
],
"env": {
"X_API_KEY": "${input:line-shopping-api-key}",
"FASTMCP_EXPERIMENTAL_ENABLE_NEW_OPENAPI_PARSER": "true"
}
}
}
}
Available Tools
The following tools are exposed by the MCP server (see openapi.json for full details):
Checkout & Links
create-checkout-link: Generate a checkout link for order items
インストール
uvx --from lineshopping-api-mcp lineshopping-mcp