@mytheo-my/portfolio 1.0.11 → 1.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.
- package/cli.js +1 -1
- package/package.json +1 -1
package/cli.js
CHANGED
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
- It automatically handles authentication with the MYTHEO API
|
|
33
33
|
- Returns all products regardless of user criteria
|
|
34
34
|
- Present the products to the user in a clear, readable format
|
|
35
|
-
- Highlight key information: productid, productname, proddescp, and returnrate`,inputSchema:{access_token:Ke.z.string().optional()}},async()=>{try{if(!this.config.API_KEY||this.config.API_KEY!==Xs)return{content:[{type:"text",text:JSON.stringify({error:"Unauthorized",message:"Invalid or missing API key. Please provide a valid API_KEY."},null,2)}]};let a=await mt.getAvailableProducts();return{content:[{type:"text",text:JSON.stringify({success:!0,total_products:a.length,products:a},null,2)}]}}catch(a){let i=a instanceof Error?a.message:"Unknown error occurred";return{content:[{type:"text",text:JSON.stringify({error:"Failed to fetch products",message:i},null,2)}]}}}),this.server.registerTool("create_portfolio_account",{title:"Create Portfolio Account",description:`Create a new portfolio account based on the selected product.
|
|
35
|
+
- Highlight key information: productid, productname, proddescp, and returnrate`,inputSchema:{access_token:Ke.z.string().nullable().optional()}},async()=>{try{if(!this.config.API_KEY||this.config.API_KEY!==Xs)return{content:[{type:"text",text:JSON.stringify({error:"Unauthorized",message:"Invalid or missing API key. Please provide a valid API_KEY."},null,2)}]};let a=await mt.getAvailableProducts();return{content:[{type:"text",text:JSON.stringify({success:!0,total_products:a.length,products:a},null,2)}]}}catch(a){let i=a instanceof Error?a.message:"Unknown error occurred";return{content:[{type:"text",text:JSON.stringify({error:"Failed to fetch products",message:i},null,2)}]}}}),this.server.registerTool("create_portfolio_account",{title:"Create Portfolio Account",description:`Create a new portfolio account based on the selected product.
|
|
36
36
|
|
|
37
37
|
## What this tool does:
|
|
38
38
|
- Creates a portfolio account with MYTHEO based on user's product selection
|