TDS MCP Server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@TDS MCP Server search TDS for high-priority LEARNING comments about payment API"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
TDS MCP Server
A Model Context Protocol (MCP) server for the Temporal Documentation System (TDS). This server enables AI assistants to interact with TDS projects, providing access to guides, anchors, and patterns.
Features
TDS Resource Access: Browse and read TDS guides, anchors, and patterns
Advanced Multi-layer Search: Search across all TDS layers with filtering, relevance scoring, and multiple sort options
Smart Context Awareness: Get relevant TDS knowledge for current work context
Enhanced Comment Promotion: Promote LEARNING comments to anchors with automatic cleanup
Intelligent Health Reports: Generate actionable reports with high-value learning detection and pattern candidates
Multi-line Comment Support: Extract full context from multi-line TDS comments
Configurable Setup: Customize behavior with
.tdsrc.jsonconfiguration fileMulti-language Support: Works with JavaScript, TypeScript, Python, Go, Java, C++, C, Rust, Ruby, and PHP
Related MCP server: My First MCP
Installation
Navigate to the TDS MCP server directory:
cd tds-mcpInstall dependencies:
npm installBuild the server:
npm run build
Usage
Development Mode
Run the server in development mode with hot reloading:
npm run devProduction Mode
Build and run the server:
npm run build
npm startMCP Client Configuration
To use this server with an MCP client (like Claude Desktop), add the following configuration:
Claude Desktop Configuration
Add to your Claude Desktop configuration file:
{
"mcpServers": {
"tds": {
"command": "node",
"args": ["/path/to/tds-mcp/build/index.js"],
"env": {}
}
}
}TDS Project Structure
The server expects the following TDS project structure:
your-project/
├── anchors/
│ ├── domain/
│ ├── integrations/
│ └── lessons-learned/
├── patterns/
│ ├── error-handling/
│ ├── integrations/
│ └── testing/
└── src/
└── [your code files with TDS comments]TDS Comment Format
The server recognizes these TDS comment types:
JavaScript/TypeScript
// TODO: Known issues needing attention
// HACK: Temporary workarounds with context
// NOTE: Important context for future changes
// LEARNING: Fresh discoveries and insights
// FIXME: Bugs requiring immediate attentionPython
# TODO: Known issues needing attention
# HACK: Temporary workarounds with context
# NOTE: Important context for future changes
# LEARNING: Fresh discoveries and insights
# FIXME: Bugs requiring immediate attentionGo
// TODO: Known issues needing attention
// HACK: Temporary workarounds with context
// NOTE: Important context for future changes
// LEARNING: Fresh discoveries and insights
// FIXME: Bugs requiring immediate attentionAvailable Tools
tds_search
Search across all TDS layers with advanced filtering and relevance scoring.
Parameters:
query(required): Search query stringlayer(optional): Layer to search in (guides,anchors,patterns, orall)comment_type(optional): Filter by comment type (TODO,HACK,NOTE,LEARNING,FIXME, orall)priority(optional): Filter by priority level (high,normal, orall)sort_by(optional): Sort results by (relevance,date, orpriority)
Example:
{
"tool": "tds_search",
"arguments": {
"query": "payment API",
"layer": "all",
"comment_type": "LEARNING",
"priority": "high",
"sort_by": "relevance"
}
}tds_report
Generate a TDS health report showing usage statistics.
Parameters:
detailed(optional): Include detailed analysis (default: false)
Example:
{
"tool": "tds_report",
"arguments": {
"detailed": true
}
}tds_promote
Promote a LEARNING comment to an anchor document with automatic cleanup.
Parameters:
file(required): Source file pathline(required): Line number of the LEARNING commenttitle(required): Title for the new anchorcategory(optional): Anchor category (domain,integrations,lessons-learned)
Example:
{
"tool": "tds_promote",
"arguments": {
"file": "src/payment.js",
"line": 45,
"title": "Payment API Timezone Requirements",
"category": "integrations"
}
}tds_get_context
Get relevant TDS knowledge for current work context.
Parameters:
file_path(optional): Current file path for contexttopic(optional): Topic or keyword to find relevant knowledge abouttype(optional): Type of context to retrieve (all,anchors,patterns,learnings)
Example:
{
"tool": "tds_get_context",
"arguments": {
"file_path": "src/payment.js",
"topic": "API authentication",
"type": "all"
}
}Configuration
The server can be customized using a .tdsrc.json configuration file in your project root:
{
"anchorCategories": [
"domain",
"integrations",
"lessons-learned",
"security",
"performance"
],
"patternCategories": [
"error-handling",
"integrations",
"testing",
"security"
],
"includePatterns": {
"guides": [
"**/*.{js,ts,py,go,java,cpp,c,rs,rb,php}",
"**/*.{jsx,tsx,vue,svelte}"
],
"anchors": [
"anchors/**/*.md",
"docs/anchors/**/*.md"
],
"patterns": [
"patterns/**/*.md",
"docs/patterns/**/*.md"
]
},
"excludePatterns": [
"node_modules/**",
"build/**",
"dist/**",
".git/**"
],
"commentTypes": [
"TODO",
"HACK",
"NOTE",
"LEARNING",
"FIXME",
"WARNING"
],
"highPriorityKeywords": [
"critical",
"important",
"security",
"performance",
"cost",
"hours"
]
}See .tdsrc.example.json for a full example configuration.
Resources
The server provides access to TDS resources through URIs:
Guides Layer (Comments)
URI:
tds://guides/{file_path}Format: JSON array of TDS comments
Example:
tds://guides/src/payment.js
Anchors Layer (Documents)
URI:
tds://anchors/{file_path}Format: Markdown content
Example:
tds://anchors/integrations/payment-api.md
Patterns Layer (Documents)
URI:
tds://patterns/{file_path}Format: Markdown content
Example:
tds://patterns/error-handling/retry-patterns.md
Development
Project Structure
tds-mcp/
├── src/
│ └── index.ts # Main server implementation
├── build/ # Compiled output
├── package.json # Dependencies and scripts
├── tsconfig.json # TypeScript configuration
└── README.md # This fileScripts
npm run build- Compile TypeScript to JavaScriptnpm run dev- Run in development mode with hot reloadingnpm start- Run the compiled server
Adding New Tools
To add new TDS tools:
Add the tool definition to the
ListToolsRequestSchemahandlerAdd the tool implementation to the
CallToolRequestSchemahandlerCreate the implementation function
Example:
// In ListToolsRequestSchema handler
{
name: 'tds_new_tool',
description: 'Description of the new tool',
inputSchema: {
type: 'object',
properties: {
// Define parameters
}
}
}
// In CallToolRequestSchema handler
case 'tds_new_tool':
return await handleNewTool(args.param1, args.param2);
// Implementation function
async function handleNewTool(param1: string, param2: string) {
// Implementation
return {
content: [
{
type: 'text',
text: 'Tool result'
}
]
};
}Troubleshooting
Common Issues
Server won't start: Check that all dependencies are installed with
npm installNo TDS comments found: Ensure your code files contain properly formatted TDS comments
Anchors not found: Check that the
anchors/directory exists and contains markdown filesPatterns not found: Check that the
patterns/directory exists and contains markdown files
Debug Mode
Run the server with debug output:
DEBUG=* npm run devLogs
The server logs to stderr, so you can redirect output:
npm start 2> tds-mcp.logLicense
MIT License - see LICENSE file for details.
Contributing
Fork the repository
Create a feature branch
Make your changes
Add tests if applicable
Submit a pull request
Support
For issues and questions:
Check the TDS documentation
Review the troubleshooting guide
Open an issue in the project repository
Available Tools
4 toolstds_get_contextC
Get relevant TDS knowledge for current work context
Inputs: type, topic, file_path.
tds_promoteC
Promote a LEARNING comment to an anchor
Inputs: file (required), line (required), title (required), category.
tds_reportC
Generate TDS health report
Inputs: detailed.
tds_searchC
Search across all TDS layers (guides, anchors, patterns)
Inputs: query (required), layer, sort_by, priority, +1 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 4 tools
tds_search and tds_get_context overlap conceptually, since both retrieve TDS knowledge, and their boundary depends on whether the agent supplies a query or a work context. tds_report and tds_promote are clearly distinct, but the search/context pair may cause misselection.
All tools use a consistent tds_ prefix, and most follow a simple tds_verb pattern. tds_get_context introduces a verb_noun form, which is a minor deviation but still readable and predictable.
Four tools is a focused, well-scoped surface for a knowledge-retrieval and promotion server. Each tool has a plausible distinct role, though the set is slightly thin for the apparent breadth of TDS layers.
The surface covers search, context retrieval, reporting, and promotion, but lacks lifecycle operations for guides, anchors, and patterns such as create, update, delete, or list. Agents cannot manage the underlying knowledge base beyond promoting a learning comment.
Maintenance
Related MCP Connectors
Tailor Platform for AI assistants: search, list and read the platform documentation.
Versioned documentation registry and semantic search for AI tools and coding assistants.
Find, write, publish and check pages and API references in your DeveloperHub docs from an AI client
Search and query nTop's knowledge base and engineering guides from AI applications.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to search and retrieve information from Teleport documentation using a vector database. It provides a tool for semantic vector search over pre-populated embeddings of Teleport pages and examples to assist with technical queries.1MIT
- FlicenseNot gradedqualityCmaintenanceEnables AI clients to browse, read, update, and search a document store through tools, resources, and prompts, including summarizing and comparing documents via URI-addressable resources and reusable prompt templates.-
- FlicenseNot gradedqualityAmaintenanceEnables AI assistants to discover and invoke tools for saving and retrieving code snippets, generating style guides and wiki documentation, and orchestrating multi-agent documentation workflows with semantic search.-
- FlicenseNot gradedqualityAmaintenanceEnables AI assistants to discover and invoke tools for saving and retrieving code snippets, generating language-specific style guides and deep wiki documentation, and orchestrating multi-agent documentation workflows backed by semantic vector search.-