EXT-MCP
🧩 Extendable MCP Framework
ext-mcp introduces two core concepts: middleware and .
Power your agent
पब्लिशर की अपनी कमांड। PlugMCP एंडपॉइंट नहीं।
Host a copy with our keys and logs.
npx -y [email protected]Claude Code में लोकल कमांड के लिए इंस्टॉल लिंक नहीं है। नीचे दी गई कमांड कॉपी करें और टर्मिनल में चलाएँ।
claude mcp add ext-mcp -- npx -y ext-mcp@1.0.2टर्मिनल में चलाएँ।
{ "mcpServers": { "ext-mcp": { "command": "npx", "args": [ "-y", "[email protected]" ] } }}claude_desktop_config.json
रिमोट URL या आपकी मशीन पर कमांड? दोनों इंस्टॉल में क्या अंतर है
PlugMCP पर चलाएँ
A new server you create. It is not this listing's official endpoint. Use the publisher install when you want their URL and their credentials.
लॉन्चmods ┌─────────────────────────┐
│ LLM Request │
└─────────────────────────┘
↓
╔═════════════╗
║ middleware1 ║
╚═════════════╝
↓
╔═════════════╗
║ middleware2 ║
╚═════════════╝
↓
╔═══════════════════════════╗
║ mods ║
║ ┌─────┐ ┌─────┐ ┌─────┐ ║
║ │mod1 │ │mod2 │ │mod3 │ ║
║ └─────┘ └─────┘ └─────┘ ║
╚═══════════════════════════╝
↓
╔═════════════╗
║ middleware2 ║
╚═════════════╝
↓
╔═════════════╗
║ middleware1 ║
╚═════════════╝
🌰 See the complete example in the demo directory
npm i ext-mcp
import path from "path";
import XMCP from "ext-mcp";
import errorHandler from "./middlewares/error-handler";
import sayGoodbye from "./mods/say-goodbye";
const app = new XMCP({
name: "my-mcp",
version: "0.0.1",
});
// 🖇️ Middleware
app.use(path.join(__dirname, "./middlewares/logger")); // file path
app.use(errorHandler); // function
app.use(require.resolve('@foo/mcp-middleware-logger')); // npm/workspace package
// 🧩 Mods
app.installMod(path.join(__dirname, "./mods/say-hello")); // file path
app.installMod(sayGoodbye); // function
app.installMod(require.resolve('@foo/mcp-mod-demo')); // npm/workspace package
// Start the service. Currently only stdio mode is supported
app.start();
Example: implement a logger middleware that injects
logIdandloggerinto the context
import { type Middleware } from "ext-mcp";
export interface LoggerContext {
logId: string;
logger: {
info: (message: string) => void;
error: (message: string) => void;
};
}
const middleware: Middleware<LoggerContext> = async (context, next) => {
context.logId = `foo-log-id`;
context.logger = createLogger(context.logId);
context.logger.info(`mcp started: ${context.actionName}`);
const res = await next();
context.logger.info(`mcp finished: ${context.actionName}`);
return res;
};
export default middleware;
import type { Mod, Tool } from "ext-mcp";
import { z } from "zod/v3";
const sayHello: Tool<{ name: z.ZodString }> = {
name: "say-hello",
config: {
title: "Say hello",
description: "Used for MCP mod demo",
inputSchema: { name: z.string().describe("user's name") },
},
handler: (context) => {
const { name } = context.args;
return {
content: [
{
type: "text",
text: `Hello, ${name}!`,
},
],
};
},
};
const demoMod: Mod = {
name: "demo-mod",
version: "0.0.1",
description: "Demo mod",
tools: [sayHello],
};
export default demoMod;
# Install dependencies
npm install
# Build
npm run build
# Test
npm test
# Start the inspector. @see https://github.com/modelcontextprotocol/inspector
npx @modelcontextprotocol/inspector
After the inspector starts, paste the absolute path to demo/run.sh into the Command field to begin debugging.
This repository includes configuration for several IDEs to view the demo directly:
{ "mcpServers": { "ext-mcp": { "command": "npx", "args": [ "-y", "[email protected]" ] } }}टूल
अभी टूल सूची नहीं है। रिमोट सर्वर को पहले हेल्थ चेक के बाद सूची मिलती है।
FAQ
इस पेज पर Cursor, Claude Desktop, Claude Code या VS Code के लिए stdio कॉन्फ़िग कॉपी करें। यह पब्लिशर का इंस्टॉल इस्तेमाल करता है, PlugMCP प्रॉक्सी नहीं।
इस रिकॉर्ड में कोई ज़रूरी एनवायरनमेंट वेरिएबल दर्ज नहीं है।
Ext stdio पर लोकल चलता है।
पिछली जाँच 2026-11-16 को हुई। Extendable MCP Framework