agentinit 1.0.0 → 1.1.0

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/CHANGELOG.md CHANGED
@@ -1,3 +1,28 @@
1
+ # [1.1.0](https://github.com/agentinit/agentinit/compare/v1.0.1...v1.1.0) (2025-09-19)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * resolve all TypeScript compilation errors ([6b8535e](https://github.com/agentinit/agentinit/commit/6b8535e89e5e701587199fce519bd4d449d186e3))
7
+ * tests fix, enhance gitignore ([47ae616](https://github.com/agentinit/agentinit/commit/47ae616559a144ae1c2025060cffeefde494baac))
8
+
9
+
10
+ ### Features
11
+
12
+ * add apply cmd ([c813d82](https://github.com/agentinit/agentinit/commit/c813d829aa0ef51029516f9e35af752efbb006e0))
13
+ * add DEBUG=1 flag to show all agents in detect command ([5b6527b](https://github.com/agentinit/agentinit/commit/5b6527bf0174f23be15a9795bb617e303283f5af))
14
+ * add MCP verification with token counting and DEBUG mode support ([b785530](https://github.com/agentinit/agentinit/commit/b78553073756719f40699591f2915190451fa285))
15
+ * add structured config file definitions and Cursor MDC support ([9af939c](https://github.com/agentinit/agentinit/commit/9af939c8102810d8f0a1d562fe5d561cf62af230))
16
+ * enhance MCP verification and project configuration ([8af8a09](https://github.com/agentinit/agentinit/commit/8af8a09a974c2f0f6075fda60e72c120517af13a))
17
+ * less commands ([f5b0795](https://github.com/agentinit/agentinit/commit/f5b07958f3296aa74e1d378d3e66fcf2146a6c00))
18
+
19
+ ## [1.0.1](https://github.com/agentinit/agentinit/compare/v1.0.0...v1.0.1) (2025-09-06)
20
+
21
+
22
+ ### Bug Fixes
23
+
24
+ * compact docs ([11709e8](https://github.com/agentinit/agentinit/commit/11709e8655d217178c1ab8943ab02247e0c36b4f))
25
+
1
26
  # 1.0.0 (2025-09-05)
2
27
 
3
28
 
package/README.md CHANGED
@@ -10,6 +10,7 @@ AgentInit transforms AI agent configuration from a fragmented, manual process in
10
10
  - **🔍 Smart Stack Detection**: Automatically detects project language, framework, and tools
11
11
  - **🔄 Bidirectional Sync**: Keep agent configurations in sync across Claude, Cursor, Windsurf, and more
12
12
  - **📦 MCP Management**: Interactive installation and management of Model Context Protocol tools
13
+ - **📋 Rules Templates**: Apply coding best practices with predefined rule templates (Git, testing, docs, linting)
13
14
  - **⚙️ Project Templates**: Pre-built templates for web apps, CLI tools, libraries, and more
14
15
  - **🎯 Stack-Aware Guidance**: Customized instructions based on your technology stack
15
16
 
@@ -20,9 +21,6 @@ AgentInit transforms AI agent configuration from a fragmented, manual process in
20
21
  ```bash
21
22
  # Install AgentInit globally
22
23
  npm install -g agentinit
23
-
24
- # Or use with Bun
25
- bun install -g agentinit
26
24
  ```
27
25
 
28
26
  ### Basic Usage
@@ -65,10 +63,14 @@ agentinit init --force # Overwrite existing configuration
65
63
  Detect current project stack and existing agent configurations.
66
64
 
67
65
  ```bash
68
- agentinit detect # Basic detection
66
+ agentinit detect # Basic detection (only shows found agents)
69
67
  agentinit detect --verbose # Detailed information
68
+ DEBUG=1 agentinit detect # Show all supported agents (found and not found)
70
69
  ```
71
70
 
71
+ **Environment Variables:**
72
+ - `DEBUG=1` - Shows all supported agents, including those not found in the project
73
+
72
74
  ### `agentinit sync`
73
75
 
74
76
  Sync agents.md with agent-specific configuration files.
@@ -90,6 +92,31 @@ agentinit mcp --search <query> # Search MCPs
90
92
  agentinit mcp --install <name> # Install specific MCP
91
93
  ```
92
94
 
95
+ ### `agentinit verify_mcp`
96
+
97
+ Verify MCP server installations and list their capabilities.
98
+
99
+ ```bash
100
+ agentinit verify_mcp --all # Verify all configured MCP servers
101
+ agentinit verify_mcp --mcp-name <name> # Verify specific MCP server
102
+ ```
103
+
104
+ **Examples:**
105
+ ```bash
106
+ # Verify all MCPs in project
107
+ agentinit verify_mcp --all
108
+
109
+ # Verify specific server
110
+ agentinit verify_mcp --mcp-name everything
111
+
112
+ # Test MCP configuration directly
113
+ agentinit verify_mcp --mcp-stdio everything "npx -y @modelcontextprotocol/server-everything"
114
+
115
+ agentinit verify_mcp --mcp-http
116
+ ```
117
+
118
+ Shows connection status, response time, and available tools/resources/prompts for each MCP server.
119
+
93
120
  ### `agentinit apply`
94
121
 
95
122
  Apply configurations including MCP server setup.
@@ -98,12 +125,13 @@ Apply configurations including MCP server setup.
98
125
 
99
126
 
100
127
  ```bash
101
- # Configure STDIO MCP with arguments
128
+ # Configure STDIO MCP with everything server (recommended example)
102
129
  npx agentinit apply \
103
- --mcp-stdio context7 "npx -y @upstash/context7-mcp" --args "--api-key=YOUR_API_KEY"
130
+ --mcp-stdio everything "npx -y @modelcontextprotocol/server-everything"
104
131
 
105
132
  # Configure multiple MCPs in one command
106
133
  npx agentinit apply \
134
+ --mcp-stdio everything "npx -y @modelcontextprotocol/server-everything" \
107
135
  --mcp-stdio supabase "npx -y @supabase/mcp-server-supabase@latest" \
108
136
  --args "--read-only --project-ref=<project-ref>" \
109
137
  --env "SUPABASE_ACCESS_TOKEN=<personal-access-token>" \
@@ -118,10 +146,47 @@ npx agentinit apply \
118
146
  npx agentinit apply \
119
147
  --mcp-stdio browserbase "docker run -i --rm ghcr.io/metorial/mcp-container--browserbase--mcp-server-browserbase--browserbase node cli.js" \
120
148
  --env "BROWSERBASE_API_KEY=browserbase-api-key"
149
+
150
+ # Verify MCPs immediately after configuration
151
+ npx agentinit apply --verify-mcp \
152
+ --mcp-stdio everything "npx -y @modelcontextprotocol/server-everything"
121
153
  ```
122
154
 
123
155
  This generates `.agentinit/agentinit.toml` with your MCP configurations.
124
156
 
157
+ **MCP Verification**: Use the `--verify-mcp` flag to test MCP servers immediately after configuration. This ensures servers are reachable and shows their available tools, resources, and prompts.
158
+
159
+ #### Rules Configuration
160
+
161
+ Apply coding rules and best practices to your AI agents using predefined templates or custom rules.
162
+
163
+ ```bash
164
+ # Apply rule templates (recommended combinations)
165
+ agentinit apply --rules git,write_tests,use_linter
166
+
167
+ # Mix templates with custom rules
168
+ agentinit apply --rules git,write_docs --rule-raw "Use TypeScript strict mode"
169
+
170
+ # Load rules from a file
171
+ agentinit apply --rules-file ./project-rules.md
172
+
173
+ # Apply globally to all projects using Claude
174
+ agentinit apply --global --agent claude --rules git,write_tests
175
+
176
+ # Combine with MCP configuration
177
+ agentinit apply --rules git,use_linter --mcp-stdio context7 "npx @context7/mcp"
178
+ ```
179
+
180
+ **Available Rule Templates:**
181
+ - `git` - Enforce Git workflows and commit standards
182
+ - `write_docs` - Require comprehensive documentation
183
+ - `use_git_worktrees` - Enable parallel development with worktrees
184
+ - `use_subagents` - Delegate work to specialized subagents
185
+ - `use_linter` - Enforce code quality and formatting
186
+ - `write_tests` - Implement test-driven development practices
187
+
188
+ **Token Tracking:** The apply command automatically tracks and displays token usage with color-coded output (🟢 Green ≤5k, 🟡 Yellow 5k-15k, 🔴 Red >15k) and git-style diffs to help manage AI context size. Example: `Rules: 101 tokens (-296)` shows rule tokens with change tracking.
189
+
125
190
  ## 🏗️ Project Structure
126
191
 
127
192
  AgentInit creates and manages these key files:
@@ -130,7 +195,10 @@ AgentInit creates and manages these key files:
130
195
  your-project/
131
196
  ├── agents.md # Universal agent configuration
132
197
  ├── CLAUDE.md # Claude-specific config (synced)
133
- ├── .cursorrules # Cursor-specific config (synced)
198
+ ├── .cursor/rules/ # Cursor rules (MDC files)
199
+ │ ├── 001_workspace.mdc
200
+ │ └── 002_frontend.mdc
201
+ ├── AGENTS.md # Simple agent instructions (alternative)
134
202
  └── .windsurfrules # Windsurf-specific config (synced)
135
203
  ```
136
204
 
@@ -171,7 +239,7 @@ This is a TypeScript project using Next.js...
171
239
  | Agent | Config File | Status |
172
240
  |-------|-------------|--------|
173
241
  | Claude | `CLAUDE.md` | ✅ |
174
- | Cursor | `.cursorrules` | ✅ |
242
+ | Cursor | `.cursor/rules/*.mdc` or `AGENTS.md` | ✅ |
175
243
  | Windsurf | `.windsurfrules` | ✅ |
176
244
  | Copilot | `.github/copilot.yml` | 🚧 |
177
245
  | Codeium | `.codeium/config.json` | 🚧 |
Binary file