Transporeon Company Settings MCP Server

Transporeon Company Settings MCP Server

Provides AI assistants with intelligent access to Transporeon's internal company settings API, enabling retrieval, search, and analysis of configuration settings across multiple environments with smart pagination and search capabilities.

Category
Visit Server

README

Transporeon Company Settings MCP Server

A Model Context Protocol (MCP) server that provides intelligent access to Transporeon's internal company settings API. This server enables AI assistants to retrieve, search, and analyze company configuration settings across different environments with smart pagination and search capabilities.

āš ļø Internal Use Only: This server is designed exclusively for internal Transporeon use and requires VPN access to internal network resources.

Features

  • šŸ” Smart Search: Find specific content within large configuration files with line numbers and context
  • šŸ“„ Line-Based Pagination: Navigate through large settings efficiently using line ranges
  • šŸŽÆ Multi-Environment Support: Access settings across Production, Integration, and Acceptance environments
  • šŸ” Secure Authentication: Bearer token authentication with automatic encoding/decoding
  • ⚔ Intelligent Processing: Automatic base64 decoding and XML formatting for readability
  • šŸ“Š Comprehensive Filtering: Filter by setting type, owner, and child objects

Installation

Prerequisites

  • Node.js 18 or higher
  • VPN access to Transporeon internal network
  • Valid API tokens for PD, AC, IN
  • Podman Desktop
  • Cursor IDE or any MCP-compatible client

Quick Startecure Containerized Installation (Recommended)

  1. Clone the repository

    git -c http.sslVerify=false clone https://github.com/larkinmaxim/mcp_customer_settings_http.git
    
  2. Run the secure setup script

    # If execution policy prevents running scripts, first enable it:
    Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser -Force
    
    # Navigate to project directory
    cd mcp_customer_settings_http
    
    # Run secure containerized setup
    .\Secure-Setup.ps1
    

    The secure setup script will:

    • āœ… Securely collect API tokens (with input masking)
    • āœ… Create Podman secrets (encrypted token storage)
    • āœ… Build hardened container (non-root, read-only filesystem)
    • āœ… Deploy with security best practices
    • āœ… Test deployment and token validation

    Available options:

    .\Secure-Setup.ps1              # Full secure setup
    .\Secure-Setup.ps1 -TokensOnly  # Rotate API tokens only
    .\Secure-Setup.ps1 -BuildOnly   # Build container only
    .\Secure-Setup.ps1 -DeployOnly  # Deploy existing container
    .\Secure-Setup.ps1 -Clean       # Clean then full setup
    

Manual Installation

  1. Install dependencies

    npm install
    
  2. Build the project

    npm run build
    
  3. Configure Cursor

    For containerized deployment (recommended):

    {
      "mcpServers": {
        "company-settings": {
          "url": "http://localhost:3001/mcp"
        }
      }
    }
    

Security Note: The containerized approach is strongly recommended as it keeps tokens secure in Podman secrets rather than in configuration files.

Usage

Once configured, the MCP server provides these tools to AI assistants:

List Company Settings

// Get all settings for a company with optional filtering
list_company_settings({ 
  companyId: 273471, 
  environment: "pd",
  type: "COMPANY" 
})

Get Specific Setting with Pagination

// Get lines 1667-1700 of a specific setting
get_company_setting({ 
  companyId: 273471,
  keyName: "tsmConfig",
  environment: "pd",
  offset: 1666,  // Start from line 1667 (0-based)
  limit: 34       // Get 34 lines (1667-1700)
})

Search Within Settings

// Find all occurrences of "otherTruckSize" with context
search_in_setting({ 
  companyId: 273471,
  keyName: "tsmConfig", 
  searchTerm: "otherTruckSize",
  contextLines: 3
})

How It Works

  1. Smart Authentication: Secure bearer token authentication with automatic validation
  2. Intelligent Decoding: Automatically detects and decodes base64-encoded settings
  3. Line-Based Navigation: Navigate large XML configurations using line numbers from search results
  4. Context-Aware Search: Find content with surrounding lines for better understanding

Configuration

Environments

  • pd - Production (default)
  • in - Integration
  • ac - Acceptance

Authentication

The MCP server requires separate tokens for each environment:

  • TP_SETTINGS_TOKEN_PD - Production environment token
  • TP_SETTINGS_TOKEN_IN - Integration environment token
  • TP_SETTINGS_TOKEN_AC - Acceptance environment token

All three environment tokens must be provided for the server to function properly.

Token Rotation

For routine token maintenance, use the secure token rotation feature:

# Rotate all API tokens without rebuilding container
.\Secure-Setup.ps1 -TokensOnly

This will prompt for new tokens and update them securely without interrupting service for longer than a container restart.

Development

# Run TypeScript compiler in watch mode
npm run dev

# Start the server directly
npm start

Project Structure

mcp_customer_settings_http/
ā”œā”€ā”€ src/
│   ā”œā”€ā”€ index.ts          # MCP server wiring and request handlers
│   ā”œā”€ā”€ handlers.ts       # Tool implementations  
│   ā”œā”€ā”€ settingsClient.ts # API client and business logic
│   ā”œā”€ā”€ toolSchemas.ts    # Tool schemas exposed to MCP
│   ā”œā”€ā”€ config.ts         # Configuration management
│   ā”œā”€ā”€ constants.ts      # Application constants
│   └── types.ts          # TypeScript interfaces
ā”œā”€ā”€ dist/                 # Compiled JavaScript (generated)
ā”œā”€ā”€ Documentation/        # Project documentation
ā”œā”€ā”€ package.json
ā”œā”€ā”€ tsconfig.json
└── README.md

Scripts

  • npm run build - Compile TypeScript to JavaScript
  • npm start - Run the compiled server
  • npm run dev - Development mode with watch
  • npm run clean - Remove compiled files

āš ļø Important Notes

Security & Access Control

  • VPN Required: This server only works within the Transporeon internal network
  • Bearer Token: Secure API token authentication required
  • Internal Use: Designed exclusively for Transporeon employees and authorized personnel
  • Network Isolation: API endpoints are not accessible from the public internet

API Limitations

  • Internal API only - not guaranteed to be stable
  • May have incompatible changes without notice
  • Rate limiting may apply

Performance Tips

  • Use line-based pagination for large settings (limit + offset)
  • Search first to find relevant line numbers, then use pagination to get specific ranges
  • Line numbers from search results can be used directly with pagination offset

Troubleshooting

Connection Issues

  • Verify VPN connection is active
  • Check if you can access Transporeon admin dashboard
  • Try different environments (pd, in, ac)

Authentication Errors

For containerized deployment:

# Check if tokens are properly configured in secrets
podman secret ls | findstr tp_token

# Test tokens manually
podman exec transporeon-mcp node -e "const { verifyEnvironmentTokens } = require('./dist/handlers.js'); verifyEnvironmentTokens().then(console.log).catch(console.error);"

# Rotate tokens if needed
.\Secure-Setup.ps1 -TokensOnly

For manual installation:

  • Ensure all three environment token variables are set: TP_SETTINGS_TOKEN_PD, TP_SETTINGS_TOKEN_IN, TP_SETTINGS_TOKEN_AC
  • Verify tokens have necessary permissions for respective environments
  • Check token expiration with system administrators

Token Management Issues

Token Rotation Errors:

# If container is not running, start it first
podman ps --filter name=transporeon-mcp
podman start transporeon-mcp  # if not running

# Then rotate tokens
.\Secure-Setup.ps1 -TokensOnly

Container Issues:

# Check container logs
podman logs transporeon-mcp --tail 50

# Restart container
podman restart transporeon-mcp

# Full redeployment if needed
.\Secure-Setup.ps1 -Clean

No Results

  • Verify company ID is correct
  • Check if setting exists in the specified environment
  • Ensure correct setting key name format

Performance Issues

  • Use pagination for large settings (limit < 50 lines recommended)
  • Search for specific content instead of retrieving entire settings
  • Consider using different environments if one is slow

Support

  • API Issues: Contact the Company Settings API maintainer
  • Network Access: Contact Transporeon IT for VPN access and network configuration
  • Token Management: Contact system administrators for API token issues
  • MCP Issues: Check the main project documentation or development team

License

MIT

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured