@triedotdev/mcp 1.0.39 → 1.0.41

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,8 +1,8 @@
1
1
  # Trie
2
2
 
3
- **Customizable Parallel Agents for AI Code Review**
3
+ **A central registry for agents that follow you from Cursor to CI/CD and everything in between.**
4
4
 
5
- Specialized agents scan your code for security, privacy, compliance, and bugs—all running in parallel with intelligent caching and real-time streaming.
5
+ Download the Trie workspace: https://www.trie.dev
6
6
 
7
7
  ## Why Trie
8
8
 
@@ -12,6 +12,8 @@ The last mile of shipping is where things break—not because your code doesn't
12
12
 
13
13
  ## What's New (latest updates)
14
14
 
15
+ - **Project Info Registry**: Store important project context in `.trie/PROJECT.md` that travels with you across Claude Code, Cursor, GitHub Actions, and CLI. Define your project description, tech stack, conventions, architecture, and custom AI instructions—all in one place.
16
+
15
17
  - **Accessibility Agent (v2.0)**: Comprehensive WCAG 2.1 AA compliance. Detects icon-only buttons, touch targets, skipped headings, positive tabIndex, ARIA validation, color-only indicators, and 20+ more checks with WCAG criterion references.
16
18
 
17
19
  - **Health Score Triaging**: Your health score (0-100) now actively controls what agents run. Below 50%? All agents run automatically. Agents that found issues before get boosted priority in future scans.
@@ -36,6 +38,7 @@ The last mile of shipping is where things break—not because your code doesn't
36
38
  - [Design Engineer (v2.0)](#design-engineer-v20)
37
39
  - [Special Agents](#special-agents)
38
40
  - [Custom Agents](#custom-agents)
41
+ - [Project Info Registry](#project-info-registry)
39
42
  - [AI-Enhanced Mode](#ai-enhanced-mode)
40
43
  - [CI/CD Integration](#cicd-integration)
41
44
  - [VS Code Extension](#vs-code-extension)
@@ -386,6 +389,7 @@ These tools are available when using Trie via MCP (Cursor, Claude Code, etc.).
386
389
  | `trie_watch` | Watch mode—automatically scan files as you code |
387
390
  | `trie_fix` | Generate fix recommendations for detected issues |
388
391
  | `trie_explain` | Explain code, issues, or changes in plain language |
392
+ | `trie_project` | View and manage project info (.trie/PROJECT.md) |
389
393
 
390
394
  ### Custom Agent Tools
391
395
 
@@ -943,6 +947,141 @@ Custom agents are stored in `.trie/agents/` in your project directory.
943
947
 
944
948
  ---
945
949
 
950
+ ## Project Info Registry
951
+
952
+ Store important project-specific information in `.trie/PROJECT.md` that's automatically available to all AI tools.
953
+
954
+ ### Why Project Info?
955
+
956
+ When you work across multiple tools (Cursor, Claude Code, GitHub Actions, CLI), context gets lost. The Project Info Registry solves this by providing a single source of truth for:
957
+
958
+ - Project description and purpose
959
+ - Technology stack and frameworks
960
+ - Architecture decisions and patterns
961
+ - Coding conventions and style guidelines
962
+ - Environment info (URLs, API endpoints)
963
+ - Team ownership and contacts
964
+ - Compliance requirements
965
+ - Custom instructions for AI assistants
966
+
967
+ ### Create PROJECT.md
968
+
969
+ **Using CLI:**
970
+ ```bash
971
+ trie-agent project init
972
+ ```
973
+
974
+ **Using MCP (Cursor/Claude Code):**
975
+ ```
976
+ trie_project action="init"
977
+ ```
978
+
979
+ This creates a template at `.trie/PROJECT.md` with sections ready to fill in.
980
+
981
+ ### View Project Info
982
+
983
+ **CLI:**
984
+ ```bash
985
+ trie-agent project
986
+ ```
987
+
988
+ **MCP:**
989
+ ```
990
+ trie_project action="view"
991
+ ```
992
+
993
+ **MCP Resource:**
994
+ ```
995
+ Read trie://project
996
+ ```
997
+
998
+ ### Update Sections
999
+
1000
+ **MCP:**
1001
+ ```
1002
+ trie_project action="update" section="Technology Stack" content="- **Language:** TypeScript\n- **Framework:** Next.js 14\n- **Database:** PostgreSQL"
1003
+ ```
1004
+
1005
+ ### How It Works
1006
+
1007
+ ```
1008
+ your-project/
1009
+ ├── .trie/
1010
+ │ └── PROJECT.md ← Your project context
1011
+ ├── src/
1012
+ └── package.json
1013
+ ```
1014
+
1015
+ The PROJECT.md file is:
1016
+ - **Committed to git** — context travels with your code
1017
+ - **Available via `trie://project`** — AI tools can read it directly
1018
+ - **Integrated into `trie://context`** — included in overall project context
1019
+ - **Per-project** — each project has its own file
1020
+
1021
+ ### Template Sections
1022
+
1023
+ | Section | What to Include |
1024
+ |---------|-----------------|
1025
+ | **Project Overview** | What does this project do? Who is it for? |
1026
+ | **Technology Stack** | Languages, frameworks, databases, cloud services |
1027
+ | **Architecture** | Key patterns, system design, important decisions |
1028
+ | **Coding Conventions** | Style rules, naming conventions, patterns to follow |
1029
+ | **Environment** | Dev/staging/prod URLs, API endpoints |
1030
+ | **Team** | Who owns what, contact info |
1031
+ | **Compliance** | GDPR, SOC2, HIPAA requirements |
1032
+ | **AI Instructions** | Special instructions for AI assistants |
1033
+
1034
+ ### Example PROJECT.md
1035
+
1036
+ ```markdown
1037
+ ## Project Overview
1038
+
1039
+ E-commerce platform for sustainable products.
1040
+ Focus on fast checkout and mobile-first UX.
1041
+
1042
+ ## Technology Stack
1043
+
1044
+ - **Language:** TypeScript
1045
+ - **Framework:** Next.js 14 (App Router)
1046
+ - **Database:** PostgreSQL with Prisma ORM
1047
+ - **Hosting:** Vercel + Supabase
1048
+
1049
+ ## Architecture
1050
+
1051
+ - Server Components by default, Client Components only when needed
1052
+ - tRPC for type-safe API calls
1053
+ - Zustand for client state
1054
+
1055
+ ## Coding Conventions
1056
+
1057
+ - Use `pnpm` for package management
1058
+ - Prefer named exports over default exports
1059
+ - Use Tailwind CSS, no inline styles
1060
+ - Tests required for payment-related code
1061
+
1062
+ ## AI Instructions
1063
+
1064
+ When working on this project:
1065
+ 1. Always use Server Components unless client interactivity is needed
1066
+ 2. Check for accessibility issues (we target WCAG AA)
1067
+ 3. Payment code must be reviewed by security agent before commit
1068
+ ```
1069
+
1070
+ ### Multi-Project Support
1071
+
1072
+ Each project has its own `.trie/PROJECT.md`:
1073
+
1074
+ ```
1075
+ ~/projects/
1076
+ ├── project-a/.trie/PROJECT.md ← Project A's context
1077
+ ├── project-b/.trie/PROJECT.md ← Project B's context
1078
+ └── project-c/.trie/PROJECT.md ← Project C's context
1079
+ ```
1080
+
1081
+ When you open Project A in Cursor, it reads Project A's context. Switch to Project B, and it reads Project B's context. No configuration needed.
1082
+
1083
+ ---
1084
+
946
1085
  ## AI-Enhanced Mode
947
1086
 
948
1087
  Trie works in two modes:
@@ -1091,14 +1230,16 @@ Trie auto-detects your project root by looking for `package.json`, `.git`, `Carg
1091
1230
  <summary>MCP Resources (click to expand)</summary>
1092
1231
 
1093
1232
  ```
1094
- trie://context # AGENTS.md content (read this first)
1233
+ trie://context # Combined context (PROJECT.md + scan results)
1234
+ trie://project # User-defined project info (PROJECT.md)
1095
1235
  trie://context/state # Detailed JSON state
1096
1236
  trie://agents # Available agents
1097
1237
  trie://config # Current configuration
1098
1238
  ```
1099
1239
 
1100
1240
  Files stored:
1101
- - `.trie/AGENTS.md` - Human-readable context
1241
+ - `.trie/PROJECT.md` - User-defined project context (description, stack, conventions, AI instructions)
1242
+ - `.trie/AGENTS.md` - Auto-generated scan context
1102
1243
  - `.trie/state.json` - Machine-readable state for programmatic access
1103
1244
 
1104
1245
  </details>
@@ -1,3 +1,7 @@
1
+ import {
2
+ loadProjectInfo,
3
+ projectInfoExists
4
+ } from "./chunk-Q4RVENDE.js";
1
5
  import {
2
6
  CustomAgent,
3
7
  getAgentRegistry
@@ -974,8 +978,19 @@ _Run a scan to identify hot files._
974
978
  }
975
979
  async function getContextForAI() {
976
980
  const state = await loadContextState();
977
- const lines = [
978
- "## Trie Context Summary",
981
+ const workDir = getWorkingDirectory(void 0, true);
982
+ const lines = [];
983
+ if (projectInfoExists(workDir)) {
984
+ const projectInfo = await loadProjectInfo(workDir);
985
+ if (projectInfo) {
986
+ lines.push(projectInfo);
987
+ lines.push("");
988
+ lines.push("---");
989
+ lines.push("");
990
+ }
991
+ }
992
+ lines.push(
993
+ "## Trie Scan Context",
979
994
  "",
980
995
  `**Health Score:** ${state.healthScore}%`,
981
996
  `**Last Scan:** ${state.lastScan ? new Date(state.lastScan.timestamp).toLocaleString() : "Never"}`,
@@ -983,7 +998,7 @@ async function getContextForAI() {
983
998
  "**Active Priorities:**",
984
999
  ...state.activePriorities.map((p) => `- ${p}`),
985
1000
  ""
986
- ];
1001
+ );
987
1002
  if (state.lastScan) {
988
1003
  lines.push(
989
1004
  "**Recent Issues:**",
@@ -6912,4 +6927,4 @@ export {
6912
6927
  getContextForAI,
6913
6928
  TrieScanTool
6914
6929
  };
6915
- //# sourceMappingURL=chunk-HG5AWUH7.js.map
6930
+ //# sourceMappingURL=chunk-G2GNVUMP.js.map