@tiangong-lca/mcp-server 0.0.11 → 0.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -15,6 +15,5 @@ export function initializeServer(bearerKey, xApiKey) {
|
|
|
15
15
|
}
|
|
16
16
|
export function getServer(bearerKey) {
|
|
17
17
|
const tokenType = bearerKey ? getTokenType(bearerKey) : '';
|
|
18
|
-
console.log('Token type:', tokenType);
|
|
19
18
|
return initializeServer(tokenType !== 'supabase' ? undefined : bearerKey, tokenType !== 'supabase' ? bearerKey : undefined);
|
|
20
19
|
}
|
|
@@ -6,13 +6,6 @@ const input_schema = {
|
|
|
6
6
|
};
|
|
7
7
|
async function searchFlows({ query }, bearerKey, xApiKey) {
|
|
8
8
|
const url = `${supabase_base_url}/functions/v1/flow_hybrid_search`;
|
|
9
|
-
const headers = {
|
|
10
|
-
'Content-Type': 'application/json',
|
|
11
|
-
Authorization: `Bearer ${bearerKey || supabase_anon_key}`,
|
|
12
|
-
...(xApiKey && { 'x-api-key': xApiKey }),
|
|
13
|
-
'x-region': x_region,
|
|
14
|
-
};
|
|
15
|
-
console.error('Headers:', headers);
|
|
16
9
|
try {
|
|
17
10
|
const response = await fetch(url, {
|
|
18
11
|
method: 'POST',
|