Labsco
jasondsmith72 logo

ConnectWise API Gateway

โ˜… 18

from jasondsmith72

A comprehensive interface for interacting with the ConnectWise Manage API.

๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅโœ“ VerifiedAccount requiredAdvanced setup

ConnectWise API Gateway MCP Server

This Model Context Protocol (MCP) server provides a comprehensive interface for interacting with the ConnectWise Manage API. It simplifies API discovery, execution, and management for both developers and AI assistants.

Core Capabilities

  • API Discovery: Search for and explore ConnectWise API endpoints using keywords or natural language
  • Simplified API Execution: Execute API calls with friendly parameter handling and automatic error management
  • Fast Memory System: Save and retrieve frequently used API queries for more efficient workflows
  • Raw API Access: Send custom API requests with complete control over endpoints, methods, and parameters

Key Features

  • Database-Backed API Discovery: Uses a SQLite database built from the ConnectWise API definition JSON for fast, efficient endpoint lookups
  • Natural Language Search: Find relevant API endpoints using conversational descriptions of what you need
  • Categorized API Navigation: Browse API endpoints organized by functional categories
  • Detailed Documentation Access: View comprehensive information about API endpoints including parameters, schemas, and response formats
  • Adaptive Learning: The system learns which API calls are most valuable to you through usage tracking

Available Tools

The API Gateway MCP server provides several tools for working with the ConnectWise API:

API Discovery Tools

ToolDescription
search_api_endpointsSearch for API endpoints by query string
natural_language_api_searchFind endpoints using natural language descriptions
list_api_categoriesList all available API categories
get_category_endpointsList all endpoints in a specific category
get_api_endpoint_detailsGet detailed information about a specific endpoint

API Execution Tools

ToolDescription
execute_api_callExecute an API call with path, method, parameters, and data
send_raw_api_requestSend a raw API request in the format "METHOD /path [JSON body]"

Fast Memory Tools

ToolDescription
save_to_fast_memoryManually save an API query to Fast Memory
list_fast_memoryList all queries saved in Fast Memory
delete_from_fast_memoryDelete a specific query from Fast Memory
clear_fast_memoryClear all queries from Fast Memory

Understanding Fast Memory

The Fast Memory feature allows you to save and retrieve frequently used API queries, optimizing your workflow in several ways:

Benefits

  • Time Savings: Quickly execute complex API calls without remembering exact endpoints or parameters
  • Error Reduction: Reuse successful API calls to minimize potential errors
  • Adaptive Learning: The system learns which API calls are most valuable to you
  • Parameter Persistence: Parameters and request bodies are stored for future use

How It Works

  1. Automatic Learning: When you execute a successful API call, you're prompted to save it to Fast Memory
  2. Intelligent Retrieval: The next time you use the same API endpoint, the system checks Fast Memory first
  3. Parameter Reuse: If you don't provide parameters for a call, the system automatically uses those saved in Fast Memory
  4. Usage Tracking: The system tracks how often each query is used and prioritizes frequently used queries

Fast Memory Functionality

  • Automatic Parameter Suggestion: The system will suggest parameters from Fast Memory if none are provided
  • Usage Counter: Each time a query from Fast Memory is used, its usage count increases
  • Search Capability: Search through your saved queries by description or endpoint path
  • Prioritization: Queries are displayed in order of usage frequency, with most frequently used queries at the top

Managing Your Fast Memory

  • View Saved Queries: list_fast_memory()
  • Search Specific Queries: list_fast_memory("search term")
  • Delete a Query: delete_from_fast_memory(query_id)
  • Clear All Queries: clear_fast_memory()

Fast Memory Technical Details

The Fast Memory system is powered by a SQLite database (fast_memory_api.db) that stores:

  • Query paths and methods
  • Parameters and request bodies as JSON
  • Usage metrics and timestamps
  • User-friendly descriptions

The database structure includes:

  • id: Unique identifier for each saved query
  • description: User-provided description of what the query does
  • path: API endpoint path
  • method: HTTP method (GET, POST, PUT, etc.)
  • params: Query parameters in JSON format
  • data: Request body in JSON format
  • timestamp: When the query was last used
  • usage_count: How many times the query has been used