-
Notifications
You must be signed in to change notification settings - Fork 86
Closed
Description
MCP LINE Bot Server Issue Report
Problem Description
The push_text_message function in the LINE Bot MCP Server (@line/[email protected]) is failing with a validation error.
Error Details
- Error Message:
MCP error -32603: keyValidator._parse is not a function - Affected Function:
mcp__line-bot__push_text_message - MCP Server Version: @line/[email protected]
Environment
- Platform: Linux 6.8.0-1030-azure
- Working Directory: /workspaces/supabase-line-handson-series
- MCP Configuration: Properly configured in .mcp.json with valid tokens
Configuration
{
"mcpServers": {
"line-bot": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@line/line-bot-mcp-server@latest"
],
"env": {
"CHANNEL_ACCESS_TOKEN": "[REDACTED]",
"DESTINATION_USER_ID": "[REDACTED]"
}
}
}
}What Works
mcp__line-bot__get_message_quota- Returns correct quota information:{"limited":200,"totalUsage":6}- Direct LINE API calls work perfectly
- MCP server starts without errors
What Doesn't Work
mcp__line-bot__push_text_message- Fails with validation error- Cannot send messages through MCP interface
Reproduction Steps
- Configure LINE Bot MCP server with valid credentials
- Attempt to call
mcp__line-bot__push_text_message - Error occurs:
keyValidator._parse is not a function
Workaround
Direct LINE API calls work as expected:
curl -X POST 'https://api.line.me/v2/bot/message/push' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer [TOKEN]' \
-d '{
"to": "[USER_ID]",
"messages": [{"type": "text", "text": "Test message"}]
}'Expected Behavior
The push_text_message function should accept parameters and send messages via LINE Bot API without validation errors.
Impact
- Cannot use MCP interface for LINE message sending
- Forces fallback to direct API calls
- Breaks automation workflows that depend on MCP
Suggested Investigation
- Check parameter validation logic in the MCP server
- Verify keyValidator implementation
- Review function signature and parameter requirements
Metadata
Metadata
Assignees
Labels
No labels