linkbrief-mcp 0.4.1 → 0.4.2

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/README.ko.md CHANGED
@@ -1,4 +1,4 @@
1
- # linkbrief-mcp
1
+ # <img src="icon.png" width="40" align="top" alt=""> linkbrief-mcp
2
2
 
3
3
  [English](README.md) | **한국어**
4
4
 
@@ -29,10 +29,10 @@ linkbrief는 Claude, Codex, Cursor 등 MCP 에이전트용 서버입니다. 웹
29
29
  claude mcp add linkbrief -s user -- npx -y linkbrief-mcp
30
30
  ```
31
31
 
32
- Windows에서는 `npx` 대신 `cmd /c npx`:
32
+ Windows(PowerShell)에서는 `cmd /c npx`를 쓰고 `--`를 따옴표로 감싸세요:
33
33
 
34
34
  ```powershell
35
- claude mcp add linkbrief -s user -- cmd /c npx -y linkbrief-mcp
35
+ claude mcp add linkbrief -s user '--' cmd /c npx -y linkbrief-mcp
36
36
  ```
37
37
 
38
38
  Claude Code를 다시 열고 `/mcp`에서 `linkbrief`가 연결됐는지 확인한 뒤, 링크와 함께 부탁하면 끝입니다.
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # linkbrief-mcp
1
+ # <img src="icon.png" width="40" align="top" alt=""> linkbrief-mcp
2
2
 
3
3
  **English** | [한국어](README.ko.md)
4
4
 
@@ -29,10 +29,10 @@ Needs [Node.js](https://nodejs.org) 22.12+. For Claude Code:
29
29
  claude mcp add linkbrief -s user -- npx -y linkbrief-mcp
30
30
  ```
31
31
 
32
- On Windows, use `cmd /c npx` instead of `npx`:
32
+ On Windows (PowerShell), use `cmd /c npx` and quote the `--`:
33
33
 
34
34
  ```powershell
35
- claude mcp add linkbrief -s user -- cmd /c npx -y linkbrief-mcp
35
+ claude mcp add linkbrief -s user '--' cmd /c npx -y linkbrief-mcp
36
36
  ```
37
37
 
38
38
  Reopen Claude Code, type `/mcp` to see `linkbrief` connected, then paste a link and ask. That's it.
package/icon.png ADDED
Binary file
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "linkbrief-mcp",
3
3
  "mcpName": "io.github.KDDYYY/linkbrief-mcp",
4
- "version": "0.4.1",
4
+ "version": "0.4.2",
5
5
  "description": "MCP server that lets Claude, Codex and other agents read any link — web pages, PDFs, JavaScript pages — as clean Markdown from your own computer, with ~95% fewer tokens than raw HTML. Handles any language and legacy encodings.",
6
6
  "type": "module",
7
7
  "bin": {
@@ -14,7 +14,8 @@
14
14
  "browser.mjs",
15
15
  "office.mjs",
16
16
  "robots.mjs",
17
- "sites.mjs"
17
+ "sites.mjs",
18
+ "icon.png"
18
19
  ],
19
20
  "engines": {
20
21
  "node": ">=22.12"
package/tools.mjs CHANGED
@@ -1,13 +1,16 @@
1
1
  // MCP tool definitions. server.mjs connects them over stdio; tests use them over an in-memory transport.
2
+ import { readFileSync } from "node:fs";
2
3
  import { createRequire } from "node:module";
3
4
  import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
4
5
  import { z } from "zod";
5
6
  import { crawlSite, fetchText, find, outline, paginate, section } from "./page.mjs";
6
7
 
7
8
  const { version } = createRequire(import.meta.url)("./package.json");
9
+ // Data URI so clients can show the icon without fetching anything.
10
+ const icon = `data:image/png;base64,${readFileSync(new URL("./icon.png", import.meta.url)).toString("base64")}`;
8
11
 
9
12
  export function createServer() {
10
- const server = new McpServer({ name: "linkbrief", version });
13
+ const server = new McpServer({ name: "linkbrief", title: "linkbrief", version, websiteUrl: "https://github.com/KDDYYY/linkbrief-mcp", icons: [{ src: icon, mimeType: "image/png", sizes: ["512x512"] }] });
11
14
 
12
15
  server.registerTool(
13
16
  "fetch_page",