You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Enforce explicit repository path specification for MCP tools
This change improves reliability when Git-Iris is used through MCP clients:
- Add repository parameter validation across all MCP tools
- Update parameter description from optional to required
- Remove fallback to default repo in resolve_git_repo
- Add validation to ensure local paths exist and are git repos
- Update documentation with examples for both local and remote repos
- Add explanation of why repository parameter is required
This addresses reliability issues with clients like Cursor that don't
provide consistent project path information.
This allows you to use Git-Iris features directly from Claude, Cursor, VSCode, and other MCP-compatible tools. See [MCP.md](docs/MCP.md) for detailed documentation.
283
283
284
+
#### MCP Tool Parameters
285
+
286
+
All MCP tools **require** the `repository` parameter, which must be a local project path or a remote repository URL. This is necessary because some clients (like Cursor) do not reliably provide the project root.
> Due to limitations in some MCP clients, the server cannot reliably infer the project root or repository path. To ensure Git-Iris always operates on the correct repository, you must explicitly specify the `repository` parameter for every tool call. This eliminates ambiguity and ensures your commands are always precise and predictable.
311
+
284
312
### Interactive Commit Process
285
313
286
314
The interactive CLI allows you to refine and perfect your commit messages:
Due to limitations in some MCP clients (such as Cursor and others), the server cannot reliably infer the project root or repository path. To ensure Git-Iris always operates on the correct repository, you must explicitly specify the `repository` parameter for every tool call. This can be either a local filesystem path (for local projects) or a remote repository URL (for remote operations). This eliminates ambiguity and ensures your commands are always precise and predictable.
0 commit comments