Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/bin/mcp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import { SERVER_FEATURES, ServerFeature } from "../mcp/types";
import { markdownDocsOfTools } from "../mcp/tools/index.js";
import { markdownDocsOfPrompts } from "../mcp/prompts/index.js";
import { markdownDocsOfResources } from "../mcp/resources/index.js";
import { resolve } from "path";

const STARTUP_MESSAGE = `
Expand All @@ -21,13 +22,14 @@
}
`;

export async function mcp(): Promise<void> {

Check warning on line 25 in src/bin/mcp.ts

View workflow job for this annotation

GitHub Actions / lint (20)

Missing JSDoc comment
const { values } = parseArgs({
options: {
only: { type: "string", default: "" },
dir: { type: "string" },
"generate-tool-list": { type: "boolean", default: false },
"generate-prompt-list": { type: "boolean", default: false },
"generate-resource-list": { type: "boolean", default: false },
},
allowPositionals: true,
});
Expand All @@ -41,6 +43,10 @@
console.log(markdownDocsOfPrompts());
earlyExit = true;
}
if (values["generate-resource-list"]) {
console.log(markdownDocsOfResources());
earlyExit = true;
}
if (earlyExit) return;

process.env.IS_FIREBASE_MCP = "true";
Expand Down
Loading
Loading