Petra Security for LangChain
io.github.wyre-ai/petra-mcp
Read-only Petra Security MCP: M365 compromise incidents, failed attacks, posture, tenants, usage.
client:LangChain
transport:stdio
runtime:oci
Install Petra Security in LangChain
pip install langchain-mcp-adapters
from langchain_mcp_adapters.client import MultiServerMCPClient
client = MultiServerMCPClient({
"petra-mcp": {
"transport": "stdio",
"command": "docker",
"args": ["run", "-i", "--rm", "ghcr.io/wyre-ai/petra-mcp:v1.0.1"],
}
})
tools = await client.get_tools()
get_tools() returns the server's tools as LangChain tools, ready for an agent. LangChain docs