Skip to content

Commit 9978883

Browse files
maxl0rdschnecle
authored andcommitted
Fix format
1 parent 3e4c6f7 commit 9978883

File tree

7 files changed

+9
-15
lines changed

7 files changed

+9
-15
lines changed

src/crashlytics/filters.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@ import { FirebaseError } from "../error";
33

44
export const ApplicationIdSchema = z
55
.string()
6-
.describe(
7-
"Firebase App Id. Leave blank if unknown to receive instructions for finding it.",
8-
);
6+
.describe("Firebase App Id. Leave blank if unknown to receive instructions for finding it.");
97

108
export const IssueIdSchema = z.string().describe("Crashlytics issue id, as hexidecimal uuid");
119

@@ -113,7 +111,7 @@ export function validateEventFilters(filter: EventFilter = {}): EventFilter {
113111
if (!!filter.intervalStartTime && !filter.intervalEndTime) {
114112
// interval.end_time is required if interval.start_time is set but the agent likes to forget it
115113
filter.intervalEndTime = new Date().toISOString();
116-
}
114+
}
117115
const ninetyDaysAgo = new Date(Date.now() - 90 * 24 * 60 * 60 * 1000);
118116
if (filter.intervalStartTime && new Date(filter.intervalStartTime) < ninetyDaysAgo) {
119117
throw new FirebaseError("intervalStartTime must be less than 90 days in the past");

src/crashlytics/reports.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@ export async function getReport(
8080
filter: EventFilter,
8181
pageSize = DEFAULT_PAGE_SIZE,
8282
): Promise<Report> {
83-
8483
if (!reportName) {
8584
throw new FirebaseError("Invalid Crashlytics report " + reportName);
8685
}

src/mcp/prompts/crashlytics/connect.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ You will assist developers in investigating and resolving mobile application iss
3636
**Obtain the Firebase App ID.**
3737
If an App ID is not readily available, consult this guide for selection: [Firebase App Id Guide](firebase://guides/app_id).
3838
39-
${ connectResourceContent }
39+
${connectResourceContent}
4040
`.trim(),
4141
},
4242
},

src/mcp/tools/crashlytics/events.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ export const list_events = tool(
140140
if (!appId) {
141141
result.isError = true;
142142
result.content.push({ type: "text", text: "Must specify 'appId' parameter" });
143-
result.content.push({ type: "text", text: forceAppIdGuide});
143+
result.content.push({ type: "text", text: forceAppIdGuide });
144144
}
145145
if (!filter || (!filter.issueId && !filter.issueVariantId)) {
146146
result.isError = true;
@@ -190,7 +190,7 @@ export const batch_get_events = tool(
190190
if (!appId) {
191191
result.isError = true;
192192
result.content.push({ type: "text", text: "Must specify 'appId' parameter." });
193-
result.content.push({ type: "text", text: forceAppIdGuide});
193+
result.content.push({ type: "text", text: forceAppIdGuide });
194194
}
195195
if (!names || names.length === 0) {
196196
result.isError = true;

src/mcp/tools/crashlytics/index.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@ import type { ServerTool } from "../../tool";
22
import { create_note, list_notes, delete_note } from "./notes";
33
import { get_issue, update_issue } from "./issues";
44
import { list_events, batch_get_events } from "./events";
5-
import {
6-
get_report,
7-
} from "./reports";
5+
import { get_report } from "./reports";
86

97
export const crashlyticsTools: ServerTool[] = [
108
create_note,

src/mcp/tools/crashlytics/issues.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export const get_issue = tool(
3030
if (!appId) {
3131
result.isError = true;
3232
result.content.push({ type: "text", text: "Must specify 'appId' parameter" });
33-
result.content.push({ type: "text", text: forceAppIdGuide});
33+
result.content.push({ type: "text", text: forceAppIdGuide });
3434
}
3535
if (!issueId) {
3636
result.isError = true;
@@ -70,7 +70,7 @@ export const update_issue = tool(
7070
if (!appId) {
7171
result.isError = true;
7272
result.content.push({ type: "text", text: "Must specify 'appId' parameter" });
73-
result.content.push({ type: "text", text: forceAppIdGuide});
73+
result.content.push({ type: "text", text: forceAppIdGuide });
7474
}
7575
if (!issueId) {
7676
result.isError = true;

src/mcp/tools/crashlytics/reports.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import { CallToolResult } from "@modelcontextprotocol/sdk/types.js";
22
import { dump, DumpOptions } from "js-yaml";
33
import { EventFilter, validateEventFilters } from "../../../crashlytics/filters";
44
import {
5-
CrashlyticsReport,
65
getReport,
76
ReportInputSchema,
87
simplifyReport,
@@ -63,7 +62,7 @@ export const get_report = tool(
6362
if (!appId) {
6463
result.isError = true;
6564
result.content.push({ type: "text", text: "Must specify 'appId' parameter" });
66-
result.content.push({ type: "text", text: forceAppIdGuide});
65+
result.content.push({ type: "text", text: forceAppIdGuide });
6766
}
6867
try {
6968
filter = validateEventFilters(filter || {});

0 commit comments

Comments
 (0)