@fszontagh I'm starting work on this issue now! I'll identify and remove the tools that fetch entire file contents to prevent large files from filling up the context. This includes get_contents and get_raw_content tools, while keeping the get_tree tool which only provides file metadata.
@fszontagh I'm starting work on this issue now! I'll identify and remove the tools that fetch entire file contents to prevent large files from filling up the context. This includes `get_contents` and `get_raw_content` tools, while keeping the `get_tree` tool which only provides file metadata.
I've successfully removed the tools that fetch entire file contents to prevent large files from filling up the context.
Changes Made:
Removed Tools:
get_contents - Previously allowed fetching file or directory contents
get_raw_content - Previously allowed fetching raw file content
Code Changes:
src/server.ts: Removed tool definitions, Zod schemas, and case handlers
src/gogs-client.ts: Removed getContents() and getRawContent() methods
README.md: Removed documentation for deleted tools
CLAUDE.md: Updated MCP Tool Categories to reflect removal
What Remains:
The get_tree tool is still available, which provides repository structure and file metadata without retrieving full file contents. This allows you to browse the repository structure without the risk of filling up the context with large files.
Commit:
Changes have been committed and pushed with reference to issue #19.
Commit: c900ac1 - "fix: remove get_contents and get_raw_content tools to prevent context overflow #19"
✅ **Work completed!**
I've successfully removed the tools that fetch entire file contents to prevent large files from filling up the context.
## Changes Made:
### Removed Tools:
- `get_contents` - Previously allowed fetching file or directory contents
- `get_raw_content` - Previously allowed fetching raw file content
### Code Changes:
1. **src/server.ts**: Removed tool definitions, Zod schemas, and case handlers
2. **src/gogs-client.ts**: Removed `getContents()` and `getRawContent()` methods
3. **README.md**: Removed documentation for deleted tools
4. **CLAUDE.md**: Updated MCP Tool Categories to reflect removal
### What Remains:
The `get_tree` tool is still available, which provides repository structure and file metadata without retrieving full file contents. This allows you to browse the repository structure without the risk of filling up the context with large files.
## Commit:
Changes have been committed and pushed with reference to issue #19.
Commit: `c900ac1` - "fix: remove get_contents and get_raw_content tools to prevent context overflow #19"
Remove the tools which can get the entire content of a file, because large files will fill up the context which not necessary
@fszontagh I'm starting work on this issue now! I'll identify and remove the tools that fetch entire file contents to prevent large files from filling up the context. This includes
get_contentsandget_raw_contenttools, while keeping theget_treetool which only provides file metadata.✅ Work completed!
I've successfully removed the tools that fetch entire file contents to prevent large files from filling up the context.
Changes Made:
Removed Tools:
get_contents- Previously allowed fetching file or directory contentsget_raw_content- Previously allowed fetching raw file contentCode Changes:
getContents()andgetRawContent()methodsWhat Remains:
The
get_treetool is still available, which provides repository structure and file metadata without retrieving full file contents. This allows you to browse the repository structure without the risk of filling up the context with large files.Commit:
Changes have been committed and pushed with reference to issue #19.
Commit:
c900ac1- "fix: remove get_contents and get_raw_content tools to prevent context overflow #19"