@t2000/mcp 0.22.24 → 0.22.26
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/dist/bin.js +3 -11
- package/dist/bin.js.map +1 -1
- package/dist/index.js +3 -11
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -245,11 +245,10 @@ IMPORTANT: When the user asks to do something that matches an MPP service, ALWAY
|
|
|
245
245
|
- Image generation (fal.ai, Stability AI, DALL-E) \u2014 returns actual images
|
|
246
246
|
- Weather, maps, crypto prices, stock data, forex rates (ExchangeRate)
|
|
247
247
|
- Translation (DeepL, Google Translate)
|
|
248
|
-
- Email, physical mail,
|
|
248
|
+
- Email, physical mail, print-on-demand
|
|
249
249
|
- Code execution, web scraping, screenshots, PDFs, QR codes
|
|
250
250
|
- Transcription, text-to-speech, sound effects (ElevenLabs)
|
|
251
251
|
- Security scanning (VirusTotal), URL shortening (Short.io), push notifications (Pushover)
|
|
252
|
-
- Gift cards with email delivery (Reloadly) \u2014 ask user for country and email, then browse products and order
|
|
253
252
|
|
|
254
253
|
Call t2000_services first to discover the right endpoint, then t2000_pay to execute.`,
|
|
255
254
|
{},
|
|
@@ -788,7 +787,6 @@ Common examples:
|
|
|
788
787
|
- Stock quote: POST https://mpp.t2000.ai/alphavantage/v1/quote {"symbol":"AAPL"}
|
|
789
788
|
- Code exec: POST https://mpp.t2000.ai/judge0/v1/submissions {"source_code":"print(42)","language_id":71}
|
|
790
789
|
- Postcard: POST https://mpp.t2000.ai/lob/v1/postcards {"to":{...},"from":{...},"front":"...","back":"..."}
|
|
791
|
-
- Gift card: POST https://mpp.t2000.ai/reloadly/v1/order {"productId":12345,"unitPrice":25,"countryCode":"US","recipientEmail":"user@email.com"}
|
|
792
790
|
- Flights: POST https://mpp.t2000.ai/serpapi/v1/flights {"departure_id":"LAX","arrival_id":"NRT","outbound_date":"2026-05-01","type":"2"}
|
|
793
791
|
- URL shorten: POST https://mpp.t2000.ai/shortio/v1/shorten {"url":"https://example.com"}
|
|
794
792
|
- Security scan: POST https://mpp.t2000.ai/virustotal/v1/scan {"url":"https://suspicious-site.com"}
|
|
@@ -797,19 +795,13 @@ Common examples:
|
|
|
797
795
|
- Mistral: POST https://mpp.t2000.ai/mistral/v1/chat/completions {"model":"mistral-large-latest","messages":[{"role":"user","content":"Hello"}]}
|
|
798
796
|
- Cohere: POST https://mpp.t2000.ai/cohere/v1/chat {"model":"command-r-plus","message":"Hello"}
|
|
799
797
|
|
|
800
|
-
|
|
801
|
-
- Ask the user for their country and email if not already known in the conversation.
|
|
802
|
-
- First browse: POST /reloadly/v1/products {"countryCode":"AU"} to find the right productId for their country.
|
|
803
|
-
- Then order: POST /reloadly/v1/order {"productId":XXXX,"unitPrice":25,"countryCode":"AU","recipientEmail":"user@email.com"}
|
|
804
|
-
- Reloadly emails the gift card with a "Redeem Now" button.
|
|
805
|
-
- Redemption links: Amazon https://www.amazon.com/gc/redeem?claimCode={code}, Google Play https://play.google.com/redeem?code={code}, others show code + redeemInstruction.concise.
|
|
806
|
-
- Set maxPrice higher for gift cards (e.g. $50 for a $25 card to cover 5% markup).`,
|
|
798
|
+
`,
|
|
807
799
|
{
|
|
808
800
|
url: z.string().describe("Full URL of the MPP service endpoint (use t2000_services to discover available URLs)"),
|
|
809
801
|
method: z.enum(["GET", "POST", "PUT", "DELETE"]).default("POST").describe("HTTP method (most services use POST)"),
|
|
810
802
|
body: z.string().optional().describe("JSON request body (required for POST endpoints)"),
|
|
811
803
|
headers: z.record(z.string()).optional().describe("Additional HTTP headers"),
|
|
812
|
-
maxPrice: z.number().default(1).describe("Max USD to pay (default: $1.00). Set higher for
|
|
804
|
+
maxPrice: z.number().default(1).describe("Max USD to pay (default: $1.00). Set higher for commerce services.")
|
|
813
805
|
},
|
|
814
806
|
async ({ url, method, body, headers, maxPrice }) => {
|
|
815
807
|
try {
|