Skip to content

Commit f7f87e9

Browse files
Merge pull request #249 from firecrawl/noaa/standardize-ellipsis
fix: standardize ellipsis in Firecrawl API key documentation and erro…
2 parents fb1cbc9 + 768bc3e commit f7f87e9

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/index.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ dotenv.config({ debug: false, quiet: true });
1212

1313
interface SessionData {
1414
/**
15-
* FC API key (`fc-`) or OAuth access token (`fco_`) sent as
16-
* `Authorization: Bearer ` to the Firecrawl API.
15+
* FC API key (`fc-...`) or OAuth access token (`fco_...`) sent as
16+
* `Authorization: Bearer ...` to the Firecrawl API.
1717
*/
1818
firecrawlApiKey?: string;
1919
[key: string]: unknown;
@@ -268,7 +268,7 @@ const server = new FastMCP<SessionData>({
268268
if (process.env.CLOUD_SERVICE === 'true') {
269269
if (!headerCred) {
270270
throw new Error(
271-
'Firecrawl credentials required: OAuth access token (Authorization: Bearer fco_) or API key (x-firecrawl-api-key)'
271+
'Firecrawl credentials required: OAuth access token (Authorization: Bearer fco_...) or API key (x-firecrawl-api-key)'
272272
);
273273
}
274274
return { firecrawlApiKey: headerCred };
@@ -291,7 +291,7 @@ const server = new FastMCP<SessionData>({
291291
292292
if (httpStreaming && !credential && !process.env.FIRECRAWL_API_URL) {
293293
console.error(
294-
'HTTP MCP transport requires FIRECRAWL_API_URL and/or credentials (OAuth: Authorization Bearer fco_, or FIRECRAWL_API_KEY / FIRECRAWL_OAUTH_TOKEN)'
294+
'HTTP MCP transport requires FIRECRAWL_API_URL and/or credentials (OAuth: Authorization Bearer fco_..., or FIRECRAWL_API_KEY / FIRECRAWL_OAUTH_TOKEN)'
295295
);
296296
process.exit(1);
297297
}

0 commit comments

Comments
 (0)