kam-mcp-server

Bamo-alt/kam-mcp-server

3.1

If you are the rightful owner of kam-mcp-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

Kam-MCP-Server is a Model Context Protocol server built using the mcp-framework, designed to facilitate the integration and management of various tools and resources within a server environment.

kam-mcp-server

Kam-MCP-Server

A Model Context Protocol (MCP) server built with mcp-framework.

Quick Start

# Install dependencies
npm install

# Build the project
npm run build

Project Structure

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

Publishing to npm

  1. 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
  2. Build and test locally:

    yarn build
    npm link
    kam-mcp-server  # Test your CLI locally
    
  3. Login to npm (create account if necessary):

    npm login
    
  4. Publish your package:

    npm publish
    

After publishing, users can add it to their claude desktop client (read below) or run it with npx

Using with Claude Desktop

After Publishing

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"]
    }
  }
}

Building and Testing

  1. Make changes to your tools
  2. Run yarn build to compile
  3. The server will automatically load your tools on startup