@aimf/mcp-server
v1.0.1
Published
AIMF MCP Gateway Server with NCP Protocol Support
Downloads
190
Maintainers
Readme
MCP Server
A Model Context Protocol (MCP) server built with TypeScript.
Overview
This is a starter MCP server that provides tools that can be used by AI applications like Claude Desktop, VS Code with GitHub Copilot, and other MCP-compatible clients.
Installation
npm installBuilding
npm run buildRunning
npm startOr run directly with Node:
node build/index.jsAvailable Tools
hello
Say hello to someone.
Parameters:
name(string): Name of the person to greet
echo
Echo back the provided message.
Parameters:
message(string): Message to echo back
Adding New Tools
To add new tools, edit src/index.ts and use the server.tool() method:
server.tool(
"tool-name",
"Tool description",
{
param1: z.string().describe("Parameter description"),
param2: z.number().optional().describe("Optional parameter"),
},
async ({ param1, param2 }) => {
// Your tool logic here
return {
content: [
{
type: "text",
text: "Result text",
},
],
};
}
);Configuration
VS Code
This server is configured to work with VS Code. See .vscode/mcp.json for the configuration.
Claude Desktop
Add to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json on macOS or %APPDATA%\Claude\claude_desktop_config.json on Windows):
{
"mcpServers": {
"mcp-server": {
"command": "node",
"args": ["path/to/mcp-server/build/index.js"]
}
}
}Development
For development with auto-rebuild:
npm run devLicense
ISC
