Skip to content

This release adds 2 notable features for engineering teams evaluating rollout.

Published 3mo MCP Developer Tools
✓ No known CVEs patched
Read the diff → Tool health → What is this tool? →

✓ No known CVEs patched in this version

Topics

ai-coding ast-parser claude-code code-analysis code-navigation codebase-indexer
+7 more
dependency-graph mcp mcp-server model-context-protocol python symbol-table typescript

Summary

AI summary

Added optional max_results and max_lines parameters to cap large responses in MCP tools.

Full changelog

What's New

Added optional max_results and max_lines parameters to all MCP tools that can produce large responses. This prevents unbounded results from blowing up token budgets in messaging-based AI agents (e.g. OpenClaw sends full conversation history every turn).

All parameters default to preserving current behavior — existing clients see no change.

Convention

  • 0 = unlimited (no truncation) — the default for all parameters except search_codebase which defaults to 100 (matching its previous hardcoded limit)
  • Any positive integer caps the result
  • Source truncation appends ... (truncated to N lines) when content is actually cut

Tools with max_results (list truncation)

| Tool | Default |
|------|---------|
| list_files | 0 (unlimited) |
| get_functions | 0 (unlimited) |
| get_classes | 0 (unlimited) |
| get_imports | 0 (unlimited) |
| get_dependencies | 0 (unlimited) |
| get_dependents | 0 (unlimited) |
| get_file_dependencies | 0 (unlimited) |
| get_file_dependents | 0 (unlimited) |
| search_codebase | 100 |

Tools with max_lines (source truncation)

| Tool | Default |
|------|---------|
| get_function_source | 0 (unlimited) |
| get_class_source | 0 (unlimited) |

Tools with max_direct / max_transitive (impact analysis)

| Tool | Default |
|------|---------|
| get_change_impact | both 0 (unlimited) |

Example Usage

{"name": "get_functions", "arguments": {"max_results": 20}}
{"name": "get_class_source", "arguments": {"name": "Engine", "max_lines": 50}}
{"name": "get_change_impact", "arguments": {"name": "helper", "max_direct": 5, "max_transitive": 10}}

Install

pip install mcp-codebase-index==0.2.0

Full Changelog: https://github.com/MikeRecognex/mcp-codebase-index/compare/v0.1.3...v0.2.0

Weekly OSS security release digest.

The CVE patches and breaking changes that affected production tools this week. One email, every Sunday.

No spam, unsubscribe anytime.

Share this release

Track MikeRecognex/mcp-codebase-index

Get notified when new releases ship.

Sign up free

About MikeRecognex/mcp-codebase-index

Structural codebase indexer exposing 17 query tools (functions, classes, imports, dependency graphs, change impact) via MCP. Zero dependencies.

All releases →

Beta — feedback welcome: [email protected]