Skip to content

Frequently Asked Questions

General

What is Tenets?

Tenets is an intelligent code context platform that automatically finds, ranks, and aggregates relevant code for AI coding assistants. It works as a CLI tool, Python library, and MCP server.

What is MCP?

Model Context Protocol (MCP) is an open standard that allows AI assistants to interact with external tools and data sources. Tenets implements an MCP server so AI assistants like Claude and Cursor can directly access its functionality.

Is Tenets free?

Yes! Tenets is 100% free and open source under the MIT license. There are no usage limits, API costs, or premium tiers for the core functionality.

Does my code leave my machine?

No. All processing happens locally. Tenets never sends your code to external servers. This is a core design principle.


Installation

How do I install Tenets?

Bash
# Basic installation
pip install tenets

# With MCP server support
pip install tenets[mcp]

# Everything included
pip install tenets[all]

What Python versions are supported?

Tenets supports Python 3.9 through 3.13. We recommend Python 3.11 for best performance.

Do I need GPU for ML features?

No. ML features (semantic search, embeddings) work on CPU. GPU acceleration is optional and automatic if available.


MCP Server

How do I start the MCP server?

Bash
# Install with MCP support
pip install tenets[mcp]

# Start the server
tenets-mcp

How do I configure Claude Desktop?

Add to ~/Library/Application Support/Claude/claude_desktop_config.json:

JSON
{
  "mcpServers": {
    "tenets": {
      "command": "tenets-mcp"
    }
  }
}

See the full MCP documentation for more configuration options.

How do I configure Cursor?

In Cursor Settings → MCP Servers, add:

JSON
{
  "tenets": {
    "command": "tenets-mcp"
  }
}

What tools does the MCP server provide?

ToolPurpose
distillBuild optimized code context for a task
rank_filesPreview file relevance without fetching content
examineAnalyze codebase structure and complexity
chronicleAnalyze git history and patterns
momentumTrack development velocity
session_createCreate stateful development sessions
tenet_addAdd guiding principles for consistency

Usage

How does ranking work?

Tenets uses multi-factor ranking:

  1. BM25 scoring — Text relevance to your prompt
  2. Keyword extraction — Important terms from your query
  3. Import centrality — Files that many others depend on
  4. Git signals — Recently modified, frequently changed
  5. Path relevance — Filename/path matches query terms
  6. Complexity metrics — Weighted by code significance

What's the difference between modes?

ModeSpeedAccuracyUse Case
fast~1sGoodQuick exploration
balanced~3sBetterMost tasks (default)
thorough~10sBestComplex refactoring

How do I include/exclude files?

Bash
# Include only Python files
tenets distill "find auth" --include "*.py"

# Exclude tests and generated files
tenets distill "find auth" --exclude "test_*" --exclude "*.min.js"

What's a session?

Sessions let you: - Pin files for guaranteed inclusion in context - Track history across multiple prompts - Maintain state for long-running tasks

Bash
tenets session create auth-feature
tenets session pin auth/ --session auth-feature
tenets distill "implement OAuth" --session auth-feature

What are tenets (guiding principles)?

Tenets are rules injected into every context to prevent "drift" in AI responses:

Bash
tenets tenet add "Always validate user input before database queries" --priority high
tenets tenet add "Use type hints in all Python functions" --category style

Troubleshooting

"MCP dependencies not installed"

Run: pip install tenets[mcp]

"No files found"

  • Check your path is correct
  • Ensure files aren't in .gitignore
  • Try --include-tests if looking for test files

"Token limit exceeded"

  • Reduce --max-tokens
  • Use --mode fast for less content
  • Add --exclude patterns for large generated files

Server not connecting to IDE

  1. Verify installation: tenets-mcp --version
  2. Check config path is correct
  3. Restart the IDE after config changes
  4. Try absolute path to tenets-mcp binary

Contributing

How can I contribute?

  • Report bugs: GitHub Issues
  • Submit PRs: Fork, branch, and open a pull request
  • Improve docs: Documentation PRs are always welcome
  • Share feedback: Discord or email

Where's the roadmap?

See our Architecture Roadmap for planned features.


Still have questions?

Need enterprise support or custom development?

Contact manic.agency →