@flyingrobots/bijou-mcp 4.1.0 → 4.2.0
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flyingrobots/bijou-mcp",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.2.0",
|
|
4
4
|
"description": "MCP server exposing Bijou terminal components as rendering tools.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"zod": "^3.24.0"
|
|
33
33
|
},
|
|
34
34
|
"peerDependencies": {
|
|
35
|
-
"@flyingrobots/bijou": "4.
|
|
35
|
+
"@flyingrobots/bijou": "4.2.0"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@types/node": "^22.0.0",
|
package/dist/tools/markdown.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"markdown.d.ts","sourceRoot":"","sources":["../../src/tools/markdown.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAUpD,eAAO,MAAM,YAAY,EAAE,gBAW1B,CAAC"}
|
package/dist/tools/markdown.js
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { markdown } from '@flyingrobots/bijou';
|
|
3
|
-
import { mcpContext } from '../context.js';
|
|
4
|
-
const inputShape = {
|
|
5
|
-
source: z.string().describe('Raw markdown source text.'),
|
|
6
|
-
width: z.number().optional().describe('Wrap width in columns (default 80).'),
|
|
7
|
-
terminalWidth: z.number().optional().describe('Terminal width override (default 80).'),
|
|
8
|
-
};
|
|
9
|
-
const inputSchema = z.object(inputShape);
|
|
10
|
-
export const markdownTool = {
|
|
11
|
-
name: 'bijou_markdown',
|
|
12
|
-
description: 'Render markdown for terminal display with headings, lists, code blocks, bold, italic, links, blockquotes, and horizontal rules. Returns plain-text with Unicode formatting.',
|
|
13
|
-
inputSchema: inputShape,
|
|
14
|
-
handler: async (args) => {
|
|
15
|
-
const input = inputSchema.parse(args);
|
|
16
|
-
const tw = input.terminalWidth ?? input.width ?? 80;
|
|
17
|
-
const ctx = mcpContext(tw);
|
|
18
|
-
const result = markdown(input.source, { width: input.width, ctx });
|
|
19
|
-
return { content: [{ type: 'text', text: result }] };
|
|
20
|
-
},
|
|
21
|
-
};
|
|
22
|
-
//# sourceMappingURL=markdown.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"markdown.js","sourceRoot":"","sources":["../../src/tools/markdown.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAG3C,MAAM,UAAU,GAAG;IACjB,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,2BAA2B,CAAC;IACxD,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,qCAAqC,CAAC;IAC5E,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,uCAAuC,CAAC;CACvF,CAAC;AAEF,MAAM,WAAW,GAAG,CAAC,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;AAEzC,MAAM,CAAC,MAAM,YAAY,GAAqB;IAC5C,IAAI,EAAE,gBAAgB;IACtB,WAAW,EAAE,6KAA6K;IAC1L,WAAW,EAAE,UAAU;IACvB,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE;QACtB,MAAM,KAAK,GAAG,WAAW,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QACtC,MAAM,EAAE,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