Model Context Protocol server for Teamwork.com integration with Large Language Models
๐ Are you a Teamwork.com user wanting to connect AI tools to your Teamwork.com
site right now? Jump straight to the
This MCP (Model Context Protocol) server enables seamless integration between Large Language Models and Teamwork.com. It provides a standardized interface for LLMs to interact with Teamwork.com projects, allowing AI agents to perform various project management operations.
Model Context Protocol (MCP) is an open protocol that standardizes how applications provide context to LLMs. This server describes all the actions available in Teamwork.com (tools) in a way that LLMs can understand and execute through AI agents.
- Multiple Transport Modes: HTTP and STDIO interfaces for different deployment scenarios
- Secure Authentication: Bearer token and OAuth2 integration with Teamwork.com
- Tool Framework: Extensible toolset architecture for adding new capabilities
- Production Ready: Comprehensive logging, monitoring, and observability
- Read-Only Mode: Optional restriction to read-only operations for safety
See the auto-generated
This project provides three different ways to interact with the Teamwork.com MCP server:
Production-ready HTTP server for cloud deployments and multi-client support.
๐
Quick start:
TW_MCP_SERVER_ADDRESS=:8080 go run cmd/mcp-http/main.goDirect STDIO interface for desktop applications and development environments.
๐
Quick start:
TW_MCP_BEARER_TOKEN=your-token go run cmd/mcp-stdio/main.goCommand-line tool for testing and debugging MCP server functionality.
๐
Quick start:
go run cmd/mcp-http-cli/main.go -mcp-url=https://mcp.example.com list-tools- Go 1.26 or later
- Valid Teamwork.com API credentials (bearer token or OAuth2 setup)
# Run all tests
go test ./...
# Run specific package tests
go test ./internal/twprojects/For debugging purposes, use the MCP Inspector tool:
NODE_EXTRA_CA_CERTS=letsencrypt-stg-root-x1.pem npx @modelcontextprotocol/inspector node build/index.jsImportant
Note: The NODE_EXTRA_CA_CERTS environment variable is required when
using OAuth2 authentication with the Let's Encrypt certification authority.
Download the certificate here.
โโโ cmd/
โ โโโ mcp-http/ # HTTP server implementation
โ โโโ mcp-stdio/ # STDIO server implementation
โ โโโ mcp-http-cli/ # CLI tool for testing via HTTP
โ โโโ mcp-test/ # Walks tool handlers against a real site
โ โโโ mcp-tokens/ # Token-cost report for the tool surface
โ โโโ docs-gen/ # Generates docs/tool-reference.md
โโโ pkg/ # Importable by other MCP servers built on this one
โ โโโ auth/ # Authentication helpers (bearer & OAuth2 token handling)
โ โโโ cli/ # -toolsets flag parsing
โ โโโ config/ # Configuration management (env, flags), MCP server setup
โ โโโ helpers/ # Shared utility functions (errors, link helpers, tool parsing)
โ โโโ request/ # HTTP request primitives / Teamwork API wiring
โ โโโ testutil/ # Product-neutral test mocks
โ โโโ toolsets/ # Tool framework and registration logic
โ โโโ twctx/ # Per-request values derived from the bearer token
โโโ internal/ # This server's own tools, not importable elsewhere
โ โโโ twprojects/ # Teamwork project/domain tools (tasks, tags, timers, etc.)
โ โโโ twdesk/ # Teamwork Desk tools (tickets, customers, etc.)
โ โโโ twspaces/ # Teamwork Spaces tools (spaces, pages, etc.)
โ โโโ twchat/ # Teamwork Chat tools (conversations, messages)
โโโ examples/ # Usage & integration examples (LangChain Node/Python)
โโโ docs/usage/ # End-user setup & connection guide
โโโ Makefile # Common developer tasks
โโโ Dockerfile # Container build configuration
โโโ CODE_OF_CONDUCT.md # Community guidelines
โโโ CONTRIBUTING.md # Contribution guide
โโโ SECURITY.md # Security policy