Class: Chatwerk::Mcp

Inherits:
Object
  • Object
show all
Defined in:
lib/chatwerk/mcp.rb

Overview

MCP Server setup

Class Method Summary collapse

Class Method Details

.nameObject



21
22
23
# File 'lib/chatwerk/mcp.rb', line 21

def self.name
  'chatwerk'
end

.serverObject



6
7
8
9
10
11
12
13
14
15
16
17
18
19
# File 'lib/chatwerk/mcp.rb', line 6

def self.server
  # Set up the server with all tools
  MCP::Server.new(
    name: name,
    version: Chatwerk::VERSION,
    tools: [
      Tools::PrintEnvTool,
      Tools::PackagesTool,
      Tools::PackageTool,
      Tools::PackageTodosTool,
      Tools::PackageViolationsTool
    ]
  )
end