This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import asyncio | |
import json | |
import logging | |
import os | |
import re | |
from contextlib import AsyncExitStack | |
import yaml | |
from dotenv import load_dotenv | |
from mcp import ClientSession, StdioServerParameters, Tool | |
from mcp.client.stdio import stdio_client |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function flipArgs(func) { | |
return function () { | |
reversedArgs = Object.values(arguments).reverse(); | |
func(...reversedArgs); | |
}; | |
} | |
const flipped = flipArgs(function () { | |
console.log(arguments); | |
}); |