Skip to main content

Teamcenter Gateway (T4EA) API Reference MCP Server

Project description

t4ea-mcp

MCP server that provides Teamcenter Gateway for Enterprise Applications (T4EA) API documentation to AI assistants. It enables AI coding tools like Claude, Cursor, and Windsurf to look up ITK functions, validate Tcl scripts, and navigate T4EA documentation accurately.

Why

AI assistants frequently hallucinate function names and parameters when writing Teamcenter/T4EA code. This MCP server gives them access to the actual API reference, a function allowlist, and a script linter — drastically reducing errors in generated Tcl/ITK code.

Installation

From PyPI

pip install t4ea-mcp

From source

git clone https://github.com/aldokruger/teamcenter-gateway-mcp.git
cd teamcenter-gateway-mcp
uv sync

Requirements: Python 3.10+

Quick Start

Run locally (stdio)

# Installed from PyPI
t4ea-mcp

# From source
uv run python -m t4ea_mcp

Run as HTTP server

t4ea-mcp --http --port 8000

Use the hosted version

A public instance is available at:

https://t4ea-mcp.fly.dev/mcp

Connecting to Your AI Client

Claude Desktop

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "t4ea": {
      "command": "t4ea-mcp"
    }
  }
}

Or use the remote server:

{
  "mcpServers": {
    "t4ea": {
      "url": "https://t4ea-mcp.fly.dev/mcp"
    }
  }
}

Claude Code

claude mcp add t4ea -- t4ea-mcp

Or remote:

claude mcp add t4ea --transport http https://t4ea-mcp.fly.dev/mcp

Cursor / Windsurf / VS Code

Add to your MCP settings (.cursor/mcp.json, etc.):

{
  "mcpServers": {
    "t4ea": {
      "command": "t4ea-mcp"
    }
  }
}

Tools

The server provides 9 tools:

Tool Purpose
resolve_topic Start here — routes natural language queries to the right docs
search_docs Grep for exact strings across all documentation
get_doc Read a specific documentation file (supports pagination)
get_section Extract a section by markdown header
list_docs List all available documentation files
get_functions List valid T4EA/ITK functions by group
validate_function Check if a function name exists in the allowlist
get_manifest Get the LLM routing guide
lint_script Lint Tcl/ITK scripts for errors and style issues

Recommended Workflow

  1. resolve_topic("create item revision") — find relevant docs
  2. get_functions("ITEM") — list valid ITEM functions
  3. get_doc("modules/itk/item.md") — read the full reference
  4. validate_function("ITEM_create_item") — verify before using
  5. lint_script(your_code) — validate the generated script

Linter Rules

The lint_script tool checks for:

Rule Severity Description
E001 Error Missing package require for used namespaces
E002 Error Deprecated function usage
E004 Error Removed/unsupported function usage
E005 Error Function not found in the T4EA allowlist (likely hallucinated)
W001 Warning Missing ITK_ok check after ITK calls
W002 Warning Missing ITK::isITK_ok guard pattern

Documentation Coverage

The server bundles comprehensive T4EA reference documentation:

  • 42 ITK modules — AOM, BOM, ITEM, EPM, AM, POM, and more
  • 23 utility modules — base64, SQL, SOAP, HTML/XML, encryption, etc.
  • 100+ namespaces — pipeline, configuration, OAuth2, monitoring, pl4x, and more
  • 7 class references — PipelineStep, StepParameter types, Function
  • Function allowlist — JSON index of all valid T4EA/ITK function names

Deployment

Fly.io

fly deploy

The included Dockerfile and fly.toml are preconfigured for Fly.io deployment with auto-suspend and health checks.

Docker

docker build -t t4ea-mcp .
docker run -p 8080:8080 t4ea-mcp

Development

# Run in development
uv run python -m t4ea_mcp

# Run HTTP mode for testing
uv run python -m t4ea_mcp --http --port 8000

# Bump version
uvx bump-my-version bump patch

# Build and publish
uv build && uvx twine upload dist/*

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

t4ea_mcp-0.1.0.tar.gz (382.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

t4ea_mcp-0.1.0-py3-none-any.whl (502.5 kB view details)

Uploaded Python 3

File details

Details for the file t4ea_mcp-0.1.0.tar.gz.

File metadata

  • Download URL: t4ea_mcp-0.1.0.tar.gz
  • Upload date:
  • Size: 382.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for t4ea_mcp-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c1de598183b6347b422b740441b81ce0fc28a33e56c31e8027ec41b12fd118c9
MD5 6a58dadf8d2a8ea27370f00c8b325604
BLAKE2b-256 641324d30306d1758e6a89c7f0817162ec64d2a62ac6d533e361aa3213c42496

See more details on using hashes here.

File details

Details for the file t4ea_mcp-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: t4ea_mcp-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 502.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for t4ea_mcp-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e88e3fee2b2c4fc7ef940a7ecb56221c145268a9c95eed9e47d9306f0b327560
MD5 b2f2b4fc000f572874ca009b7ac7247f
BLAKE2b-256 24646732ceedfe502cf5c0775d1ea49c910964db49e73fb3003132d940e9dbe6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page