Skip to content

Commit 0203da9

Browse files
committed
adjust global variable
1 parent faaab7a commit 0203da9

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

.mcp/server.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"command": "npx",
55
"args": ["api-docs-mcp"],
66
"env": {
7-
"MCP_API_SOURCES": "[{\"name\":\"GitHub\",\"type\":\"gql\",\"url\":\"https://docs.github.com/public/fpt/schema.docs.graphql\"}]"
7+
"API_SOURCES": "[{\"name\":\"GitHub\",\"type\":\"gql\",\"url\":\"https://docs.github.com/public/fpt/schema.docs.graphql\"}]"
88
}
99
}
1010
}

src/utils/config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import { SchemaSource } from "src/utils/source";
22

33
export const loadConfig = (): { sources: SchemaSource[] } => {
44
try {
5-
return { sources: JSON.parse(process.env.MCP_API_SOURCES as string) };
5+
return { sources: JSON.parse(process.env.API_SOURCES as string) };
66
} catch (error) {
7-
throw new Error(`Failed to parse MCP_API_SOURCES: ${error}`);
7+
throw new Error(`Failed to parse API_SOURCES: ${error}`);
88
}
99
}

0 commit comments

Comments
 (0)