Answers from your instructions
Describe its role, what it knows and what it must not do in plain words; the next message follows it.
LINE OA × Claude Code · Agent Lab
Add LINE OA MCP to Claude Code and say "connect my LINE OA to AI". Claude Code creates the connection, sends you a secure page for the channel, sets how the AI answers and confirms the first reply; it answers test users until you approve every friend.
> connect my LINE OA to AI
line_connect_accountsetup link sent
line_get_connectionchannel entered · webhook set
line_configure_botinstructions saved
Live: your test account got its first AI reply
Why connect LINE from Claude Code
Describe its role, what it knows and what it must not do in plain words; the next message follows it.
It answers your paired test account until you approve answering every friend, signed in.
The Channel ID and Secret go on the service's own page; the AI tool never sees them.
On LINE's plans replies are free; it replies first and pushes only when the reply window has passed.
Your options
Scroll the table sideways.
| What you care about | Claude Code + LINE OA MCP | Claude Code codes a LINE bot |
|---|---|---|
| What you do | Say one sentence, fill in a secure page | Have it write a webhook, deploy it, configure LINE Developers |
| Channel Secret | Claude Code never sees it | Handed to the AI or written into config |
| Webhook URL | Set and verified for you | Deploy and paste it into the LINE console yourself |
| Going live | Test users first, every friend after you approve | Write it yourself |
| Changing answers | Edit the instructions; the next message follows | Change code and redeploy |
Steps
Run it on Agent Lab from the setup guide, sign in to its panel and create an agent token.
Put the setup below in .mcp.json and the agent token in LINE_AGENT_SDK_TOKEN, then restart Claude Code.
Your AI tool gives you a link. Enter the Channel ID and Secret there; no long-lived token needed. No Official Account yet? Try the shared sandbox.
Chat from your test account and tune the instructions. When it's ready, approve answering every friend.
Setup
Replace <org> with your Agent Lab organization. The token stays in the environment; never write it into the file or paste it into the chat.
{
"mcpServers": {
"line-oa-mcp": {
"type": "http",
"url": "https://line-oa-mcp--<org>.hosting.agentlab.run/mcp",
"headers": { "Authorization": "Bearer ${LINE_AGENT_SDK_TOKEN}" }
}
}
}LINE_AGENT_SDK_TOKEN the agent token from the panel's Agent tokens page.line_* ten tools: connect, read progress, set the instructions, request going live, read messages, sandbox and more.Read https://agentlab.cresclab.com/line-agent-sdk.md and connect my LINE Official Account to AI. Answer only my test account for now. It's the front desk of my café: answer opening hours and menu questions; for bookings, ask for name, date and party size. Give me a secure link for anything I need to enter.FAQ