@line-harness/mcp-server 0.6.4 → 0.6.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -111,14 +111,14 @@ function truncate(str, max) {
111
111
  function registerSendMessage(server2) {
112
112
  server2.tool(
113
113
  "send_message",
114
- "Send a text or flex message to a specific friend. Use messageType 'flex' for rich card layouts.",
114
+ "Send a text, image, or flex message to a specific friend. Use messageType 'image' for standalone image messages, 'flex' for rich card layouts.",
115
115
  {
116
116
  friendId: z.string().describe("The friend's ID to send the message to"),
117
117
  content: z.string().describe(
118
- "Message content. For text: plain string. For flex: JSON string of LINE Flex Message."
118
+ "Message content. For text: plain string. For image: JSON string with originalContentUrl and previewImageUrl (both HTTPS URLs). For flex: JSON string of LINE Flex Message."
119
119
  ),
120
- messageType: z.enum(["text", "flex"]).default("text").describe(
121
- "Message type: 'text' for plain text, 'flex' for Flex Message JSON"
120
+ messageType: z.enum(["text", "image", "flex"]).default("text").describe(
121
+ "Message type: 'text' for plain text, 'image' for standalone image, 'flex' for Flex Message JSON"
122
122
  ),
123
123
  altText: z.string().optional().describe(
124
124
  "Custom notification preview text for Flex Messages (shown on lock screen). If omitted, auto-extracted from Flex content."
package/package.json CHANGED
@@ -1,22 +1,22 @@
1
1
  {
2
2
  "name": "@line-harness/mcp-server",
3
- "version": "0.6.4",
3
+ "version": "0.6.6",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "line-harness-mcp": "./dist/index.js"
7
7
  },
8
8
  "main": "./dist/index.js",
9
- "scripts": {
10
- "build": "tsup",
11
- "dev": "tsup --watch"
12
- },
13
9
  "dependencies": {
14
- "@line-harness/sdk": "^0.2.3",
15
10
  "@modelcontextprotocol/sdk": "^1.12.1",
16
- "zod": "^3.24.4"
11
+ "zod": "^3.24.4",
12
+ "@line-harness/sdk": "0.2.3"
17
13
  },
18
14
  "devDependencies": {
19
15
  "tsup": "^8.4.0",
20
16
  "typescript": "^5.9.3"
17
+ },
18
+ "scripts": {
19
+ "build": "tsup",
20
+ "dev": "tsup --watch"
21
21
  }
22
- }
22
+ }
@@ -6,19 +6,19 @@ import { autoTrackUrls } from "./auto-track-urls.js";
6
6
  export function registerSendMessage(server: McpServer): void {
7
7
  server.tool(
8
8
  "send_message",
9
- "Send a text or flex message to a specific friend. Use messageType 'flex' for rich card layouts.",
9
+ "Send a text, image, or flex message to a specific friend. Use messageType 'image' for standalone image messages, 'flex' for rich card layouts.",
10
10
  {
11
11
  friendId: z.string().describe("The friend's ID to send the message to"),
12
12
  content: z
13
13
  .string()
14
14
  .describe(
15
- "Message content. For text: plain string. For flex: JSON string of LINE Flex Message.",
15
+ "Message content. For text: plain string. For image: JSON string with originalContentUrl and previewImageUrl (both HTTPS URLs). For flex: JSON string of LINE Flex Message.",
16
16
  ),
17
17
  messageType: z
18
- .enum(["text", "flex"])
18
+ .enum(["text", "image", "flex"])
19
19
  .default("text")
20
20
  .describe(
21
- "Message type: 'text' for plain text, 'flex' for Flex Message JSON",
21
+ "Message type: 'text' for plain text, 'image' for standalone image, 'flex' for Flex Message JSON",
22
22
  ),
23
23
  altText: z
24
24
  .string()