Skip to content

Commit 637df9e

Browse files
committed
fix lint
1 parent 4b9d97c commit 637df9e

File tree

4 files changed

+15
-15
lines changed

4 files changed

+15
-15
lines changed

packages/mcp-server/src/tools/parse-jobs/create-parse-jobs.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export const handler = async (client: LandingAIADE, args: Record<string, unknown
7070

7171
const processedBody = {
7272
...body,
73-
document: convertFilePathToStream(document)
73+
document: convertFilePathToStream(document),
7474
};
7575

7676
try {

packages/mcp-server/src/tools/parse-jobs/get-parse-jobs.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export const metadata: Metadata = {
1818
export const tool: Tool = {
1919
name: 'get_parse_jobs',
2020
description:
21-
'Get the status of an async parse job by job_id. Returns job status (pending/processing/completed/failed) and progress. If completed and ADE_OUTPUT_DIR is set, the full result will be saved to disk and you\'ll receive a preview.',
21+
"Get the status of an async parse job by job_id. Returns job status (pending/processing/completed/failed) and progress. If completed and ADE_OUTPUT_DIR is set, the full result will be saved to disk and you'll receive a preview.",
2222
inputSchema: {
2323
type: 'object',
2424
properties: {
@@ -42,15 +42,15 @@ export const handler = async (client: LandingAIADE, args: Record<string, unknown
4242
if (result.status === 'completed' && result.data) {
4343
const { saved_to } = saveResultIfNeeded({
4444
result,
45-
filename: `parse_job_${job_id}`
45+
filename: `parse_job_${job_id}`,
4646
});
4747

4848
// If saved to disk, return a preview
4949
if (saved_to) {
5050
const preview = createPreview(result);
5151
return asTextContentResult({
5252
preview,
53-
message: `Full result saved to ${saved_to}. Do not ask the LLM to read this file because it will incur a lot of tokens due to it being very large.`
53+
message: `Full result saved to ${saved_to}. Do not ask the LLM to read this file because it will incur a lot of tokens due to it being very large.`,
5454
});
5555
}
5656

packages/mcp-server/src/tools/top-level/extract-client.ts

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ export const tool: Tool = {
3434
markdown: {
3535
type: 'string',
3636
title: 'Markdown',
37-
description: 'Can be: (1) raw Markdown content as a string, (2) an absolute file path to a Markdown file (e.g., "/Users/name/Desktop/file.md"), or (3) an absolute file path to a JSON file with a "markdown" field or "data.markdown" field (like output from parse_client or get_parse_jobs). The handler will automatically detect the type and read the file accordingly.',
37+
description:
38+
'Can be: (1) raw Markdown content as a string, (2) an absolute file path to a Markdown file (e.g., "/Users/name/Desktop/file.md"), or (3) an absolute file path to a JSON file with a "markdown" field or "data.markdown" field (like output from parse_client or get_parse_jobs). The handler will automatically detect the type and read the file accordingly.',
3839
},
3940
markdown_url: {
4041
type: 'string',
@@ -101,30 +102,28 @@ export const handler = async (client: LandingAIADE, args: Record<string, unknown
101102
const processedBody = {
102103
...body,
103104
markdown: markdownContent,
104-
schema: typeof schema === 'object' ? JSON.stringify(schema) : schema
105+
schema: typeof schema === 'object' ? JSON.stringify(schema) : schema,
105106
};
106107

107108
try {
108109
const result = await client.extract(processedBody);
109-
const filename = isFilePath
110-
? path.basename(markdown, path.extname(markdown))
111-
: 'extract_result';
110+
const filename = isFilePath ? path.basename(markdown, path.extname(markdown)) : 'extract_result';
112111

113112
// Apply jq filter to the full result first
114113
const filteredResult = await maybeFilter(jq_filter, result);
115114

116115
// Save the full result to disk if ADE_OUTPUT_DIR is set
117116
const { saved_to } = saveResultIfNeeded({
118117
result,
119-
filename: `${filename}_${Date.now()}`
118+
filename: `${filename}_${Date.now()}`,
120119
});
121120

122121
// If saved to disk, return a preview of the filtered result
123122
if (saved_to) {
124123
const preview = createPreview(filteredResult);
125124
return asTextContentResult({
126125
preview,
127-
message: `Full result saved to ${saved_to}. Do not ask the LLM to read this file because it will incur a lot of tokens due to it being very large.`
126+
message: `Full result saved to ${saved_to}. Do not ask the LLM to read this file because it will incur a lot of tokens due to it being very large.`,
128127
});
129128
}
130129

packages/mcp-server/src/tools/top-level/parse-client.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,28 +65,29 @@ export const handler = async (client: LandingAIADE, args: Record<string, unknown
6565

6666
const processedBody = {
6767
...body,
68-
document: convertFilePathToStream(document)
68+
document: convertFilePathToStream(document),
6969
};
7070

7171
try {
7272
const result = await client.parse(processedBody);
73-
const filename = typeof document === 'string' ? path.basename(document, path.extname(document)) : 'parse_result';
73+
const filename =
74+
typeof document === 'string' ? path.basename(document, path.extname(document)) : 'parse_result';
7475

7576
// Apply jq filter to the full result first
7677
const filteredResult = await maybeFilter(jq_filter, result);
7778

7879
// Save the full result to disk if ADE_OUTPUT_DIR is set
7980
const { saved_to } = saveResultIfNeeded({
8081
result,
81-
filename: `${filename}_${Date.now()}`
82+
filename: `${filename}_${Date.now()}`,
8283
});
8384

8485
// If saved to disk, return a preview of the filtered result
8586
if (saved_to) {
8687
const preview = createPreview(filteredResult);
8788
return asTextContentResult({
8889
preview,
89-
message: `Full result saved to ${saved_to}. Do not ask the LLM to read this file because it will incur a lot of tokens due to it being very large.`
90+
message: `Full result saved to ${saved_to}. Do not ask the LLM to read this file because it will incur a lot of tokens due to it being very large.`,
9091
});
9192
}
9293

0 commit comments

Comments
 (0)