@lovelybunch/mcp 1.0.76-alpha.2 → 1.0.76-alpha.4

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": "@lovelybunch/mcp",
3
- "version": "1.0.76-alpha.2",
3
+ "version": "1.0.76-alpha.4",
4
4
  "description": "MCP tools for Coconut",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",
@@ -14,8 +14,8 @@
14
14
  "test:ui": "vitest --ui"
15
15
  },
16
16
  "dependencies": {
17
- "@lovelybunch/core": "^1.0.76-alpha.2",
18
- "@lovelybunch/types": "^1.0.76-alpha.2",
17
+ "@lovelybunch/core": "^1.0.76-alpha.4",
18
+ "@lovelybunch/types": "^1.0.76-alpha.4",
19
19
  "hono": "^4.0.0"
20
20
  },
21
21
  "devDependencies": {
@@ -1,53 +0,0 @@
1
- /**
2
- * Fetch Tool - Enables the AI to retrieve content from URLs
3
- *
4
- * Security considerations:
5
- * - Only HTTP/HTTPS protocols allowed
6
- * - Blocks private/internal IP ranges
7
- * - Response size limited to prevent memory issues
8
- * - Timeout to prevent hanging requests
9
- */
10
- export declare const fetchTool: {
11
- name: string;
12
- description: string;
13
- parameters: {
14
- type: string;
15
- properties: {
16
- url: {
17
- type: string;
18
- description: string;
19
- };
20
- method: {
21
- type: string;
22
- enum: string[];
23
- description: string;
24
- };
25
- headers: {
26
- type: string;
27
- description: string;
28
- additionalProperties: {
29
- type: string;
30
- };
31
- };
32
- body: {
33
- type: string;
34
- description: string;
35
- };
36
- };
37
- required: string[];
38
- };
39
- };
40
- export declare const FETCH_CONFIG: {
41
- MAX_RESPONSE_SIZE: number;
42
- TIMEOUT_MS: number;
43
- BLOCKED_HOSTNAMES: string[];
44
- BLOCKED_IP_PREFIXES: string[];
45
- };
46
- /**
47
- * Validate that a URL is safe to fetch
48
- */
49
- export declare function validateFetchUrl(url: string): {
50
- valid: boolean;
51
- error?: string;
52
- };
53
- //# sourceMappingURL=fetch-tool.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"fetch-tool.d.ts","sourceRoot":"","sources":["../src/fetch-tool.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2BrB,CAAA;AAGD,eAAO,MAAM,YAAY;;;;;CAoBxB,CAAA;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,MAAM,GAAG;IAAE,KAAK,EAAE,OAAO,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,CA0BhF"}
@@ -1,87 +0,0 @@
1
- /**
2
- * Fetch Tool - Enables the AI to retrieve content from URLs
3
- *
4
- * Security considerations:
5
- * - Only HTTP/HTTPS protocols allowed
6
- * - Blocks private/internal IP ranges
7
- * - Response size limited to prevent memory issues
8
- * - Timeout to prevent hanging requests
9
- */
10
- export const fetchTool = {
11
- name: 'fetch_url',
12
- description: 'Fetch content from a URL. Use this to retrieve web pages, API responses, documentation, or any publicly accessible content. Returns the text/HTML/JSON content from the URL.',
13
- parameters: {
14
- type: 'object',
15
- properties: {
16
- url: {
17
- type: 'string',
18
- description: 'The URL to fetch (must be http:// or https://)'
19
- },
20
- method: {
21
- type: 'string',
22
- enum: ['GET', 'POST'],
23
- description: 'HTTP method to use. Defaults to GET.'
24
- },
25
- headers: {
26
- type: 'object',
27
- description: 'Optional HTTP headers to include in the request',
28
- additionalProperties: { type: 'string' }
29
- },
30
- body: {
31
- type: 'string',
32
- description: 'Optional request body for POST requests'
33
- }
34
- },
35
- required: ['url']
36
- }
37
- };
38
- // Configuration constants
39
- export const FETCH_CONFIG = {
40
- MAX_RESPONSE_SIZE: 100000, // 100KB max response
41
- TIMEOUT_MS: 30000, // 30 second timeout
42
- BLOCKED_HOSTNAMES: [
43
- 'localhost',
44
- '127.0.0.1',
45
- '0.0.0.0',
46
- '::1'
47
- ],
48
- BLOCKED_IP_PREFIXES: [
49
- '10.', // Private class A
50
- '172.16.', '172.17.', '172.18.', '172.19.', // Private class B
51
- '172.20.', '172.21.', '172.22.', '172.23.',
52
- '172.24.', '172.25.', '172.26.', '172.27.',
53
- '172.28.', '172.29.', '172.30.', '172.31.',
54
- '192.168.', // Private class C
55
- '169.254.', // Link-local
56
- 'fc00:', 'fd00:', // IPv6 private
57
- 'fe80:' // IPv6 link-local
58
- ]
59
- };
60
- /**
61
- * Validate that a URL is safe to fetch
62
- */
63
- export function validateFetchUrl(url) {
64
- try {
65
- const parsed = new URL(url);
66
- // Only allow HTTP/HTTPS
67
- if (!['http:', 'https:'].includes(parsed.protocol)) {
68
- return { valid: false, error: `Protocol '${parsed.protocol}' not allowed. Only http:// and https:// are supported.` };
69
- }
70
- // Block localhost and loopback
71
- const hostname = parsed.hostname.toLowerCase();
72
- if (FETCH_CONFIG.BLOCKED_HOSTNAMES.includes(hostname)) {
73
- return { valid: false, error: 'Requests to localhost/loopback addresses are not allowed.' };
74
- }
75
- // Block private IP ranges
76
- for (const prefix of FETCH_CONFIG.BLOCKED_IP_PREFIXES) {
77
- if (hostname.startsWith(prefix)) {
78
- return { valid: false, error: 'Requests to private/internal IP addresses are not allowed.' };
79
- }
80
- }
81
- return { valid: true };
82
- }
83
- catch (err) {
84
- return { valid: false, error: `Invalid URL: ${err instanceof Error ? err.message : 'parse error'}` };
85
- }
86
- }
87
- //# sourceMappingURL=fetch-tool.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"fetch-tool.js","sourceRoot":"","sources":["../src/fetch-tool.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,MAAM,CAAC,MAAM,SAAS,GAAG;IACvB,IAAI,EAAE,WAAW;IACjB,WAAW,EAAE,8KAA8K;IAC3L,UAAU,EAAE;QACV,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,GAAG,EAAE;gBACH,IAAI,EAAE,QAAQ;gBACd,WAAW,EAA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EAAE,CAAC;YACnD,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,aAAa,MAAM,CAAC,QAAQ,yDAAyD,EAAE,CAAA;QACvH,CAAC;QAED,+BAA+B;QAC/B,MAAM,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC,WAAW,EAAE,CAAA;QAC9C,IAAI,YAAY,CAAC,iBAAiB,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE,CAAC;YACtD,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,2DAA2D,EAAE,CAAA;QAC7F,CAAC;QAED,0BAA0B;QAC1B,KAAK,MAAM,MAAM,IAAI,YAAY,CAAC,mBAAmB,EAAE,CAAC;YACtD,IAAI,QAAQ,CAAC,UAAU,CAAC,MAAM,CAAC,EAAE,CAAC;gBAChC,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,4DAA4D,EAAE,CAAA;YAC9F,CAAC;QACH,CAAC;QAED,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,CAAA;IACxB,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACb,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,gBAAgB,GAAG,YAAY,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,aAAa,EAAE,EAAE,CAAA;IACtG,CAAC;AACH,CAAC"}
@@ -1,26 +0,0 @@
1
- import type { ChangeProposal } from '@lovelybunch/types';
2
- export interface MCPTool {
3
- name: string;
4
- description: string;
5
- parameters: {
6
- type: 'object';
7
- properties: Record<string, any>;
8
- required?: string[];
9
- additionalProperties?: boolean;
10
- };
11
- }
12
- export interface MCPToolCall {
13
- name: string;
14
- arguments: Record<string, any>;
15
- }
16
- export declare const listProposalsTool: MCPTool;
17
- export declare const proposalsTool: MCPTool;
18
- /**
19
- * Read-only version of the proposals tool for AI assistant.
20
- * Only exposes list and get operations - no create/update/delete.
21
- * Creating proposals should be done by coding agents (Claude Code, Cursor, etc.) or via the UI.
22
- */
23
- export declare const proposalsReadOnlyTool: MCPTool;
24
- export declare function validateProposalData(data: any): Partial<ChangeProposal>;
25
- export declare function createToolCall(operation: string, args: any): MCPToolCall;
26
- //# sourceMappingURL=proposals-tool.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"proposals-tool.d.ts","sourceRoot":"","sources":["../src/proposals-tool.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAA;AAExD,MAAM,WAAW,OAAO;IACtB,IAAI,EAAE,MAAM,CAAA;IACZ,WAAW,EAAE,MAAM,CAAA;IACnB,UAAU,EAAE;QACV,IAAI,EAAE,QAAQ,CAAA;QACd,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;QAC/B,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAA;QACnB,oBAAoB,CAAC,EAAE,OAAO,CAAA;KAC/B,CAAA;CACF;AAED,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAA;IACZ,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;CAC/B;AAED,eAAO,MAAM,iBAAiB,EAAE,OAiC/B,CAAA;AAED,eAAO,MAAM,aAAa,EAAE,OA8J3B,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,EAAE,OA+CnC,CAAA;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,GAAG,GAAG,OAAO,CAAC,cAAc,CAAC,CAkBvE;AAED,wBAAgB,cAAc,CAAC,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,GAAG,WAAW,CAQxE"}
@@ -1,286 +0,0 @@
1
- export const listProposalsTool = {
2
- name: "list_proposals",
3
- description: "List all change proposals with metadata only (title, ID, status, priority, tags)",
4
- parameters: {
5
- type: "object",
6
- properties: {
7
- filters: {
8
- type: "object",
9
- description: "Optional filters for the proposal list",
10
- properties: {
11
- status: {
12
- type: "string",
13
- enum: ["draft", "proposed", "in-review", "code-complete", "approved", "merged", "rejected"],
14
- description: "Filter by proposal status"
15
- },
16
- priority: {
17
- type: "string",
18
- enum: ["low", "medium", "high", "critical"],
19
- description: "Filter by priority level"
20
- },
21
- tags: {
22
- type: "array",
23
- items: { type: "string" },
24
- description: "Filter by tags"
25
- },
26
- search: {
27
- type: "string",
28
- description: "Search query for proposal content"
29
- }
30
- }
31
- }
32
- }
33
- }
34
- };
35
- export const proposalsTool = {
36
- name: "change_proposals",
37
- description: "Manage change proposals - create, read, update, delete proposals. IMPORTANT: When searching for proposals by topic or keyword, always use filters.search to filter results server-side. The returned count reflects filtered results.",
38
- parameters: {
39
- type: "object",
40
- properties: {
41
- operation: {
42
- type: "string",
43
- enum: ["list", "get", "create", "update", "delete"],
44
- description: "The operation to perform on proposals"
45
- },
46
- id: {
47
- type: "string",
48
- description: "Proposal ID (required for get, update, delete operations)"
49
- },
50
- filters: {
51
- type: "object",
52
- description: "Filters for list operation. Use search to find proposals by keyword - results are filtered server-side for accuracy.",
53
- properties: {
54
- status: {
55
- type: "string",
56
- enum: ["draft", "proposed", "in-review", "code-complete", "approved", "merged", "rejected"],
57
- description: "Filter by proposal status"
58
- },
59
- author: {
60
- type: "string",
61
- description: "Filter by author name or email"
62
- },
63
- priority: {
64
- type: "string",
65
- enum: ["low", "medium", "high", "critical"],
66
- description: "Filter by priority level"
67
- },
68
- tags: {
69
- type: "array",
70
- items: { type: "string" },
71
- description: "Filter by tags"
72
- },
73
- search: {
74
- type: "string",
75
- description: "Search query to filter proposals by intent, content, author, or tags. Always use this when looking for proposals about a specific topic."
76
- }
77
- }
78
- },
79
- proposal: {
80
- type: "object",
81
- description: "Proposal data for create/update operations",
82
- properties: {
83
- intent: {
84
- type: "string",
85
- description: "Brief description of what the proposal aims to achieve"
86
- },
87
- content: {
88
- type: "string",
89
- description: "Detailed content of the proposal"
90
- },
91
- author: {
92
- type: "object",
93
- description: "Author information",
94
- properties: {
95
- id: { type: "string" },
96
- name: { type: "string" },
97
- email: { type: "string" },
98
- role: { type: "string" },
99
- type: { type: "string", enum: ["human", "agent"] }
100
- }
101
- },
102
- planSteps: {
103
- type: "array",
104
- description: "Implementation plan steps. Each item may be a string (description) or an object with fields.",
105
- items: {
106
- oneOf: [
107
- { type: "string", description: "Step description" },
108
- {
109
- type: "object",
110
- properties: {
111
- id: { type: "string", description: "Step identifier (optional)" },
112
- description: { type: "string", description: "Human-readable step description" },
113
- status: { type: "string", enum: ["pending", "in-progress", "completed", "failed"], description: "Execution status" },
114
- command: { type: "string", description: "Optional command to execute" },
115
- expectedOutcome: { type: "string", description: "Expected outcome of the step" }
116
- },
117
- required: ["description"]
118
- }
119
- ]
120
- }
121
- },
122
- evidence: {
123
- type: "array",
124
- items: { type: "string" },
125
- description: "Supporting evidence"
126
- },
127
- policies: {
128
- type: "array",
129
- items: { type: "string" },
130
- description: "Related policies"
131
- },
132
- featureFlags: {
133
- type: "array",
134
- items: { type: "string" },
135
- description: "Feature flags needed"
136
- },
137
- experiments: {
138
- type: "array",
139
- items: { type: "string" },
140
- description: "A/B tests or experiments"
141
- },
142
- telemetryContracts: {
143
- type: "array",
144
- items: { type: "string" },
145
- description: "Telemetry contracts"
146
- },
147
- releasePlan: {
148
- type: "object",
149
- description: "Release strategy",
150
- properties: {
151
- strategy: {
152
- type: "string",
153
- enum: ["immediate", "gradual", "scheduled", "gated"]
154
- }
155
- }
156
- },
157
- status: {
158
- type: "string",
159
- enum: ["draft", "proposed", "in-review", "code-complete", "approved", "merged", "rejected"],
160
- description: "Current status of the proposal"
161
- },
162
- metadata: {
163
- type: "object",
164
- description: "Additional metadata",
165
- properties: {
166
- tags: {
167
- type: "array",
168
- items: { type: "string" },
169
- description: "Tags for categorization"
170
- },
171
- priority: {
172
- type: "string",
173
- enum: ["low", "medium", "high", "critical"],
174
- description: "Priority level"
175
- },
176
- reviewers: {
177
- type: "array",
178
- items: { type: "string" },
179
- description: "List of reviewers"
180
- }
181
- }
182
- },
183
- productSpecRef: {
184
- type: "string",
185
- description: "Reference to related product specification"
186
- }
187
- },
188
- required: ["intent", "content"]
189
- }
190
- },
191
- required: ["operation"]
192
- }
193
- };
194
- /**
195
- * Read-only version of the proposals tool for AI assistant.
196
- * Only exposes list and get operations - no create/update/delete.
197
- * Creating proposals should be done by coding agents (Claude Code, Cursor, etc.) or via the UI.
198
- */
199
- export const proposalsReadOnlyTool = {
200
- name: "change_proposals",
201
- description: "READ-ONLY: Search and read change proposals. You can ONLY use 'list' and 'get' operations. You CANNOT create, update, or delete proposals — that should be done by coding agents (Claude Code, Cursor, etc.) which have broader codebase context, or via the Proposals UI.",
202
- parameters: {
203
- type: "object",
204
- properties: {
205
- operation: {
206
- type: "string",
207
- enum: ["list", "get"],
208
- description: "ONLY 'list' or 'get' are allowed. 'list' to search/browse proposals, 'get' to retrieve a specific proposal by ID"
209
- },
210
- id: {
211
- type: "string",
212
- description: "Proposal ID (required for get operation)"
213
- },
214
- filters: {
215
- type: "object",
216
- description: "Filters for list operation. Use search to find proposals by keyword.",
217
- properties: {
218
- status: {
219
- type: "string",
220
- enum: ["draft", "proposed", "in-review", "code-complete", "approved", "merged", "rejected"],
221
- description: "Filter by proposal status"
222
- },
223
- author: {
224
- type: "string",
225
- description: "Filter by author name or email"
226
- },
227
- priority: {
228
- type: "string",
229
- enum: ["low", "medium", "high", "critical"],
230
- description: "Filter by priority level"
231
- },
232
- tags: {
233
- type: "array",
234
- items: { type: "string" },
235
- description: "Filter by tags"
236
- },
237
- search: {
238
- type: "string",
239
- description: "Search query to filter proposals by intent, content, author, or tags"
240
- }
241
- }
242
- }
243
- },
244
- required: ["operation"]
245
- }
246
- };
247
- export function validateProposalData(data) {
248
- const proposal = {};
249
- if (data.intent)
250
- proposal.intent = data.intent;
251
- if (data.content)
252
- proposal.content = data.content;
253
- if (data.author)
254
- proposal.author = data.author;
255
- if (data.planSteps)
256
- proposal.planSteps = data.planSteps;
257
- if (data.evidence)
258
- proposal.evidence = data.evidence;
259
- if (data.policies)
260
- proposal.policies = data.policies;
261
- if (data.featureFlags)
262
- proposal.featureFlags = data.featureFlags;
263
- if (data.experiments)
264
- proposal.experiments = data.experiments;
265
- if (data.telemetryContracts)
266
- proposal.telemetryContracts = data.telemetryContracts;
267
- if (data.releasePlan)
268
- proposal.releasePlan = data.releasePlan;
269
- if (data.status)
270
- proposal.status = data.status;
271
- if (data.metadata)
272
- proposal.metadata = data.metadata;
273
- if (data.productSpecRef)
274
- proposal.productSpecRef = data.productSpecRef;
275
- return proposal;
276
- }
277
- export function createToolCall(operation, args) {
278
- return {
279
- name: "change_proposals",
280
- arguments: {
281
- operation,
282
- ...args
283
- }
284
- };
285
- }
286
- //# sourceMappingURL=proposals-tool.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"proposals-tool.js","sourceRoot":"","sources":["../src/proposals-tool.ts"],"names":[],"mappings":"AAkBA,MAAM,CAAC,MAAM,iBAAiB,GAAY;IACxC,IAAI,EAAE,gBAAgB;IACtB,WAAW,EAAE,kFAAkF;IAC/F,UAAU,EAAE;QACV,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,OAAO,EAAE;gBACP,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,wCAAwC;gBACrD,UAAU,EAAE;oBACV,MAAM,EAAE;wBACN,IAAI,EAAE,QAAQ;wBACd,IAAI,EAAE,CAAC,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,eAAe,EAAE,UAAU,EAAE,QAAQ,EAAE,UAAU,CAAC;wBAC3F,WAAW,EAAE,2BAA2B;qBACzC;oBACD,QAAQ,EAAE;wBACR,IAAI,EAAE,QAAQ;wBACd,IAAI,EAAE,CAAC,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,UAAU,CAAC;wBAC3C,WAAW,EAAE,0BAA0B;qBACxC;oBACD,IAAI,EAAE;wBACJ,IAAI,EAAE,OAAO;wBACb,KAAK,EAAE,EAAE,IA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G,IAAI,CAAC,QAAQ,CAAA;IACpD,IAAI,IAAI,CAAC,YAAY;QAAE,QAAQ,CAAC,YAAY,GAAG,IAAI,CAAC,YAAY,CAAA;IAChE,IAAI,IAAI,CAAC,WAAW;QAAE,QAAQ,CAAC,WAAW,GAAG,IAAI,CAAC,WAAW,CAAA;IAC7D,IAAI,IAAI,CAAC,kBAAkB;QAAE,QAAQ,CAAC,kBAAkB,GAAG,IAAI,CAAC,kBAAkB,CAAA;IAClF,IAAI,IAAI,CAAC,WAAW;QAAE,QAAQ,CAAC,WAAW,GAAG,IAAI,CAAC,WAAW,CAAA;IAC7D,IAAI,IAAI,CAAC,MAAM;QAAE,QAAQ,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAA;IAC9C,IAAI,IAAI,CAAC,QAAQ;QAAE,QAAQ,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAA;IACpD,IAAI,IAAI,CAAC,cAAc;QAAE,QAAQ,CAAC,cAAc,GAAG,IAAI,CAAC,cAAc,CAAA;IAEtE,OAAO,QAAQ,CAAA;AACjB,CAAC;AAED,MAAM,UAAU,cAAc,CAAC,SAAiB,EAAE,IAAS;IACzD,OAAO;QACL,IAAI,EAAE,kBAAkB;QACxB,SAAS,EAAE;YACT,SAAS;YACT,GAAG,IAAI;SACR;KACF,CAAA;AACH,CAAC"}
@@ -1,7 +0,0 @@
1
- import type { MCPTool } from './proposals-tool.js';
2
- /**
3
- * Tool for fetching and extracting readable content from web URLs.
4
- * This is a read-only tool that retrieves web page content for context.
5
- */
6
- export declare const urlReaderTool: MCPTool;
7
- //# sourceMappingURL=url-reader-tool.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"url-reader-tool.d.ts","sourceRoot":"","sources":["../src/url-reader-tool.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAElD;;;GAGG;AACH,eAAO,MAAM,aAAa,EAAE,OAkB3B,CAAA"}
@@ -1,24 +0,0 @@
1
- /**
2
- * Tool for fetching and extracting readable content from web URLs.
3
- * This is a read-only tool that retrieves web page content for context.
4
- */
5
- export const urlReaderTool = {
6
- name: 'read_url',
7
- description: `Fetch and extract readable content from a web URL. Use this when a user shares a URL and wants you to read, summarize, or analyze its content. Returns the page title, main text content, and excerpt.
8
-
9
- IMPORTANT:
10
- - Only use this for publicly accessible web pages
11
- - Content is automatically cleaned and truncated for context limits
12
- - Some sites may block automated access`,
13
- inputSchema: {
14
- type: 'object',
15
- properties: {
16
- url: {
17
- type: 'string',
18
- description: 'The full URL to fetch (must start with http:// or https://)'
19
- }
20
- },
21
- required: ['url']
22
- }
23
- };
24
- //# sourceMappingURL=url-reader-tool.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"url-reader-tool.js","sourceRoot":"","sources":["../src/url-reader-tool.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,MAAM,CAAC,MAAM,aAAa,GAAY;IACpC,IAAI,EAAE,UAAU;IAChB,WAAW,EAAE;;;;;wCAKyB;IACtC,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,GAAG,EAAE;gBACH,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,6DAA6D;aAC3E;SACF;QACD,QAAQ,EAAE,CAAC,KAAK,CAAC;KAClB;CACF,CAAA"}