tenets
Verified Safeby jddunn
Overview
Provides intelligent, token-optimized code context and automatically injects guiding principles to AI coding assistants for enhanced understanding and consistent interactions.
Installation
tenets-mcpEnvironment Variables
- TENETS_CONFIG_PATH
- TENETS_LOG_LEVEL
- TENETS_CACHE_DIR
- TENETS_MAX_TOKENS
- TENETS_DEBUG
- TENETS_QUIET
- TENETS_RANKING_ALGORITHM
- TENETS_RANKING_THRESHOLD
- TENETS_RANKING_TEXT_SIMILARITY_ALGORITHM
- TENETS_RANKING_USE_EMBEDDINGS
- TENETS_RANKING_WORKERS
- TENETS_SCANNER_MAX_FILE_SIZE
- TENETS_SCANNER_RESPECT_GITIGNORE
- TENETS_SCANNER_EXCLUDE_TESTS_BY_DEFAULT
- TENETS_OUTPUT_DEFAULT_FORMAT
- TENETS_OUTPUT_COPY_ON_DISTILL
- TENETS_OUTPUT_SHOW_TOKEN_USAGE
- TENETS_CACHE_ENABLED
- TENETS_CACHE_TTL_DAYS
- TENETS_GIT_ENABLED
- TENETS_GIT_HISTORY_LIMIT
- TENETS_TENET_AUTO_INSTILL
- TENETS_TENET_MAX_PER_CONTEXT
- TENETS_TENET_INJECTION_FREQUENCY
- TENETS_TENET_INJECTION_INTERVAL
- TENETS_TENET_SYSTEM_INSTRUCTION
- TENETS_TENET_SYSTEM_INSTRUCTION_ENABLED
- OPENAI_API_KEY
- ANTHROPIC_API_KEY
- OPENROUTER_API_KEY
- GOOGLE_ANALYTICS_ID
- TENETS_NO_COLOR
Security Notes
The core processing is 100% local, ensuring privacy by design. Optional external connections (e.g., for LLM summarization, issue fetching) are opt-in and explicitly documented regarding data sent. The VSCode extension uses `child_process.spawn` with `shell: true`, which can be a minor security risk if the executable path (`tenets-mcp`) were compromised or user-supplied in a malicious way. However, the path is either user-configured via settings or detected via `which` command, limiting direct arbitrary command injection from prompt input. The use of environment variables for API keys is good practice.
Similar Servers
mcp-server
Provides a Model Context Protocol (MCP) server for AI agents to search and retrieve curated documentation for the Strands Agents framework, facilitating AI coding assistance.
context-engine
Provides an agent-agnostic local context engine via Model Context Protocol (MCP) for coding agents, enabling semantic search, planning, code review, and prompt enhancement with AI integration.
codeweaver
A code intelligence platform that provides semantically rich, context-aware code search for AI agents, aimed at reducing cognitive load and token costs for coding tasks.
ultrascript-tools-mcp
An expert developer tool for comprehensive code analysis, semantic search, refactoring, code modification, and automated documentation. It leverages AI and specialized runtime environments (Node.js/Bun) for high performance, featuring deep Git integration for branch-aware indexing and merge conflict resolution across multiple programming languages.