diff --git a/README.md b/README.md index c32da85..1fe1d89 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,8 @@ # LINE Bot MCP Server -[![npmjs](https://badge.fury.io/js/%40line%2Fline-bot-mcp-server.svg)](https://www.npmjs.com/package/@line/line-bot-mcp-server) +[![npmjs](https://badge.fury.io/js/%40line%2Fline-bot-mcp-server.svg)](https://www.npmjs.com/package/@line-bot-mcp-server) +[![smithery badge](https://smithery.ai/badge/@line/line-bot-mcp-server)](https://smithery.ai/server/@line/line-bot-mcp-server) [Model Context Protocol (MCP)](https://github.com/modelcontextprotocol) server implementation that integrates the LINE Messaging API to connect an AI Agent to the LINE Official Account. @@ -49,6 +50,14 @@ requirements: - Node.js v20 or later +### Installing via Smithery + +To install LINE Bot Integration Server for Claude Desktop automatically via [Smithery](https://smithery.ai/server/@line/line-bot-mcp-server): + +```bash +npx -y @smithery/cli install @line/line-bot-mcp-server --client claude +``` + ### Step 1: Create LINE Official Account This MCP server utilizes a LINE Official Account. If you do not have one, please create it by following [this instructions](https://developers.line.biz/en/docs/messaging-api/getting-started/#create-oa). diff --git a/smithery.yaml b/smithery.yaml new file mode 100644 index 0000000..0b195dd --- /dev/null +++ b/smithery.yaml @@ -0,0 +1,24 @@ +# Smithery configuration file: https://smithery.ai/docs/build/project-config + +startCommand: + type: stdio + commandFunction: + # A JS function that produces the CLI command based on the given config to start the MCP on stdio. + |- + (config) => ({ command: 'node', args: ['dist/index.js'], env: { CHANNEL_ACCESS_TOKEN: config.channelAccessToken, DESTINATION_USER_ID: config.destinationUserId } }) + configSchema: + # JSON Schema defining the configuration options for the MCP. + type: object + required: + - channelAccessToken + properties: + channelAccessToken: + type: string + description: Channel Access Token for LINE Messaging API + destinationUserId: + type: string + default: "" + description: Default user ID to receive messages if not provided in tool calls + exampleConfig: + channelAccessToken: YOUR_CHANNEL_ACCESS_TOKEN + destinationUserId: U1234567890