
Research
/Security News
Laravel Lang Compromised with RCE Backdoor Across 700+ Versions
Laravel Lang packages were compromised with an RCE backdoor across hundreds of versions, exposing cloud, CI/CD, and developer secrets.
crossroads-mcp
Advanced tools
> A lightweight, flexible router for MCP (Model Context Protocol) servers, inspired by Hono router and a chat with @threepointone.
A lightweight, flexible router for MCP (Model Context Protocol) servers, inspired by Hono router and a chat with @threepointone.
If you have a lot of MCP servers, this is for you. crossroads-mcp provides an elegant way to manage multiple MCP servers while using the AI SDK. Ensuring that only the server being used is running at any given time.
# Using pnpm
pnpm add crossroads-mcp
# Using npm
npm install crossroads-mcp
# Using yarn
yarn add crossroads-mcp
import { createMCPRouter } from "crossroads-mcp";
import { OpenAI } from "ai";
// Create a new MCP router
const router = createMCPRouter();
// Add MCP servers to the router
router.addServer({
name: "search-server",
description: "A server that provides search functionality",
command: "node",
args: ["./search-server.js"],
});
router.addServer({
name: "weather-server",
description: "A server that provides weather information",
command: "node",
args: ["./weather-server.js"],
});
const result = await router.generateText({
model: openai("gpt-4o"),
prompt:
router.systemPrompt() +
"Search for recent news about AI and tell me about the weather in New York",
maxSteps: 10,
});
console.log(result.text);
import { createMCPRouter } from "crossroads-mcp";
// Create a new MCP router
const router = createMCPRouter();
// Or initialize with predefined servers
const router = createMCPRouter({
servers: {
"my-server": {
name: "my-server",
description: "My MCP server",
command: "node",
args: ["./my-server.js"],
},
},
});
// Add a stdio MCP server
router.addServer({
name: "stdio-server",
description: "A server that runs locally",
command: "node",
args: ["./mcp-server.js"],
});
// Add a remote MCP server
router.addServer({
name: "remote-server",
description: "A server that runs remotely",
url: "https://example.com/mcp",
headers: {
Authorization: "Bearer token",
},
});
const result = await router.generateText({
model: "gpt-4o",
prompt: "Help me with my task",
systemPrompt: router.systemPrompt(),
maxSteps: 5,
onStepFinish: (step) => {
console.log("Step finished", step);
},
});
// Manually start a server
await router.startServer("my-server");
// Get all active tools from running servers
const tools = await router.getActiveTools();
// Stop all active servers
await router.stopActiveClients();
FAQs
> A lightweight, flexible router for MCP (Model Context Protocol) servers, inspired by Hono router and a chat with @threepointone.
The npm package crossroads-mcp receives a total of 4 weekly downloads. As such, crossroads-mcp popularity was classified as not popular.
We found that crossroads-mcp demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
/Security News
Laravel Lang packages were compromised with an RCE backdoor across hundreds of versions, exposing cloud, CI/CD, and developer secrets.

Security News
Socket found a malicious postinstall hook across 700+ GitHub repos, including PHP packages on Packagist and Node.js project repositories.

Security News
Vibe coding at scale is reshaping how packages are created, contributed, and selected across the software supply chain