@locus-technologies/langchain-mcp-m2m
v0.1.0
Published
LangChain-compatible MCP client with OAuth 2.0 Client Credentials (M2M) flow support
Readme
@locus-technologies/langchain-mcp-m2m
LangChain MCP client with OAuth 2.0 Client Credentials (M2M) support.
Install
npm install @locus-technologies/langchain-mcp-m2mUsage
import { MCPClientCredentials } from '@locus-technologies/langchain-mcp-m2m';
const client = new MCPClientCredentials({
mcpServers: {
'server': {
url: 'http://localhost:3301/mcp',
auth: {
clientId: 'your-client-id',
clientSecret: 'your-client-secret'
}
}
}
});
await client.initializeConnections();
const tools = await client.getTools();Full documentation: https://github.com/LocusTechnologies/langchain-mcp-m2m
License
MIT
