Skip to content
Open
Changes from all commits
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
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -804,10 +804,10 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
try {
const { name, arguments: args } = request.params;

const apiKey = process.env.CLOUD_SERVICE
const apiKey = process.env.CLOUD_SERVICE==='ture'
? (request.params._meta?.apiKey as string)
: FIRECRAWL_API_KEY;
if (process.env.CLOUD_SERVICE && !apiKey) {
if (process.env.CLOUD_SERVICE==='ture' && !apiKey) {
throw new Error('No API key provided');
}

Expand Down