Skip to content

keyValidator._parse Error in push_text_message Function #224

@4geru

Description

@4geru

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

  1. Configure LINE Bot MCP server with valid credentials
  2. Attempt to call mcp__line-bot__push_text_message
  3. 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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions