s-gw for LangChain
io.github.sgateway/s-gw
Keep credentials out of AI coding agents with local approvals, scoped injection, and audit trails.
client:LangChain
transport:stdio
runtime:npm
Install s-gw in LangChain
pip install langchain-mcp-adapters
from langchain_mcp_adapters.client import MultiServerMCPClient
client = MultiServerMCPClient({
"s-gw": {
"transport": "stdio",
"command": "npx",
"args": ["-y", "@s-gw/s-gw"],
}
})
tools = await client.get_tools()
get_tools() returns the server's tools as LangChain tools, ready for an agent. LangChain docs