mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-14 23:21:35 +00:00
fix: guard fuzzy-match against empty keywords, remove placeholder OAuth URLs for Shopify/Snowflake
This commit is contained in:
parent
e63b662161
commit
5f4ad441d0
2 changed files with 1 additions and 12 deletions
|
|
@ -190,12 +190,6 @@
|
|||
"description": "Products, orders, customers, and store management via Shopify Admin REST API (requires your store subdomain)",
|
||||
"icon_url": "https://cdn.simpleicons.org/shopify",
|
||||
"spec_url": "https://raw.githubusercontent.com/Shopify/shopify-api-specs/main/admin/rest/2023-10/openapi.json",
|
||||
"oauth": {
|
||||
"authorization_url": "https://your-store.myshopify.com/admin/oauth/authorize",
|
||||
"token_url": "https://your-store.myshopify.com/admin/oauth/access_token",
|
||||
"pkce": false,
|
||||
"docs_url": "https://shopify.dev/docs/apps/auth/get-access-tokens/authorization-code-grant"
|
||||
},
|
||||
"key_tools": [
|
||||
{ "name": "list_products", "description": "List products with variants, pricing, and inventory" },
|
||||
{ "name": "get_product", "description": "Get full product details including all variants" },
|
||||
|
|
@ -213,12 +207,6 @@
|
|||
"description": "Data warehouse queries, database operations, and analytics via the Snowflake SQL API",
|
||||
"icon_url": "https://cdn.simpleicons.org/snowflake",
|
||||
"spec_url": "https://raw.githubusercontent.com/snowflakedb/snowflake-rest-api-specs/refs/heads/main/specifications/sqlapi.yaml",
|
||||
"oauth": {
|
||||
"authorization_url": "https://your-account.snowflakecomputing.com/oauth/authorize",
|
||||
"token_url": "https://your-account.snowflakecomputing.com/oauth/token-request",
|
||||
"pkce": false,
|
||||
"docs_url": "https://docs.snowflake.com/en/user-guide/oauth-custom"
|
||||
},
|
||||
"key_tools": [
|
||||
{ "name": "execute_statement", "description": "Execute a SQL statement and get results" },
|
||||
{ "name": "fetch_results", "description": "Fetch paginated results from a running query" },
|
||||
|
|
|
|||
|
|
@ -169,6 +169,7 @@ const MCPToolConfiguration: React.FC<MCPToolConfigurationProps> = ({
|
|||
const result: typeof tools = [];
|
||||
for (const keyTool of keyTools) {
|
||||
const keywords = keyTool.name.split("_").map((k) => k.toLowerCase()).filter((k) => k.length > 1);
|
||||
if (keywords.length === 0) continue;
|
||||
const normalize = (s: string) => s.toLowerCase().replace(/[-_/]/g, " ");
|
||||
let match = tools.find((t) => {
|
||||
if (usedNames.has(t.name)) return false;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue