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
访问服务器

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

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选