A Model Context Protocol (MCP) server built with mcp-framework.
# Install dependencies
npm install
# Build the project
npm run build
kam-mcp-server/
├── build/
├── src/
│ ├── tools/ # MCP Tools
│ │ └── CreatePointBasedElementTool.ts
│ │ └── CreateLineBasedElementTool.ts
│ │ └── CreateSurfaceBasedElementTool.ts
│ │ └── GetCurrentViewElementsTool.ts
│ │ └── GetAvailableFamilyTypesTool.ts
│ │ └── DeleteElementTool.ts
│ │ └── GetElementByIdTool.ts
│ ├── resources/ # MCP Resources
│ │ └── KamDocResourceResource.ts
│ └── index.ts # Server entry point
├── package.json
└── tsconfig.json
-
Update your package.json:
- Ensure
name
is unique and follows npm naming conventions - Set appropriate
version
- Add
description
,author
,license
, etc. - Check
bin
points to the correct entry file
- Ensure
-
Build and test locally:
yarn build npm link kam-mcp-server # Test your CLI locally
-
Login to npm (create account if necessary):
npm login
-
Publish your package:
npm publish
After publishing, users can add it to their claude desktop client (read below) or run it with npx
Add this configuration to your Claude Desktop config file:
MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%/Claude/claude_desktop_config.json
{
"mcpServers": {
"kam-mcp-server": {
"command": "npx",
"args": ["-y", "kam-mcp-server", "--port=9099"]
}
}
}
- Make changes to your tools
- Run
yarn build
to compile - The server will automatically load your tools on startup