Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion .github/scripts/create-add-server-pr.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -716,7 +716,7 @@ function normalizeMetadataScalar(value) {

function extractEnvVars(value) {
const matches = value.match(/\b[A-Z][A-Z0-9_]{2,}\b/g) ?? [];
return unique(matches.filter((match) => /(KEY|TOKEN|SECRET|PASSWORD|ENDPOINT|URL)$/.test(match)));
return unique(matches.filter((match) => /^.+(?:KEY|TOKEN|SECRET|PASSWORD|ENDPOINT|URL)$/.test(match)));
}

function extractEndpoint(value) {
Expand Down
2 changes: 1 addition & 1 deletion .github/scripts/create-improve-metadata-pr.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,7 @@ function normalizeMetadataScalar(value) {

function extractEnvVars(value) {
const matches = value.match(/\b[A-Z][A-Z0-9_]{2,}\b/g) ?? [];
return unique(matches.filter((match) => /(KEY|TOKEN|SECRET|PASSWORD|ENDPOINT|URL)$/.test(match)));
return unique(matches.filter((match) => /^.+(?:KEY|TOKEN|SECRET|PASSWORD|ENDPOINT|URL)$/.test(match)));
}

function extractFirstUrl(value) {
Expand Down
2 changes: 1 addition & 1 deletion packages/catalog-builder/src/buildCatalog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ function extractInstallCommands(text: string): string[] {

function extractEnvVars(text: string): string[] {
const matches = text.match(/\b[A-Z][A-Z0-9_]{2,}\b/g) ?? [];
return unique(matches.filter((match) => /(KEY|TOKEN|SECRET|PASSWORD|ENDPOINT|URL)$/.test(match)));
return unique(matches.filter((match) => /^.+(?:KEY|TOKEN|SECRET|PASSWORD|ENDPOINT|URL)$/.test(match)));
}

function extractEndpoint(text: string): string | null {
Expand Down
2 changes: 1 addition & 1 deletion packages/catalog-builder/test/buildCatalog.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ describe("buildCatalogFromMarkdown", () => {
"## Experimental",
[
"- [Metadata MCP](https://example.com/metadata-mcp):",
"Run `npx metadata-mcp` with API_KEY for OAuth-enabled Claude usage.",
"Run `npx metadata-mcp` with API_KEY against any URL for OAuth-enabled Claude usage.",
"Includes 13 tools under MIT license.",
].join(" "),
].join("\n");
Expand Down
Loading