Skip to main content
Glama

MCPunk

by jurasofish

find_matching_chunks_in_file

Locate specific content within a file by identifying matching chunks. Use this tool to search for references to functions, definitions, or other patterns, especially after narrowing down files with related tools. Supports large chunks split into parts.

Instructions

Step 2: Find the actual matching chunks in a specific file.

Required after find_files_by_chunk_content or list_all_files_in_project to see matches, as those tools only show files, not their contents. This can be used for things like: - Finding all chunks in a file that make reference to a specific function (e.g. find_matching_chunks_in_file(..., ["my_funk"]) - Finding a chunk where a specific function is defined (e.g. find_matching_chunks_in_file(..., ["def my_funk"]) Some chunks are split into multiple parts, because they are too large. This will look like 'chunkx_part1', 'chunkx_part2', ...

Input Schema

NameRequiredDescriptionDefault
filter_YesMatch if any of these strings appear. Match all if None/null. Single empty string or empty list will match all.
project_nameYes
rel_pathYesRelative to project root

Input Schema (JSON Schema)

{ "properties": { "filter_": { "anyOf": [ { "type": "string" }, { "items": { "type": "string" }, "type": "array" }, { "type": "null" } ], "description": "Match if any of these strings appear. Match all if None/null. Single empty string or empty list will match all.", "title": "Filter" }, "project_name": { "title": "Project Name", "type": "string" }, "rel_path": { "description": "Relative to project root", "format": "path", "title": "Rel Path", "type": "string" } }, "required": [ "project_name", "rel_path", "filter_" ], "title": "find_matching_chunks_in_fileArguments", "type": "object" }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/jurasofish/mcpunk'

If you have feedback or need assistance with the MCP directory API, please join our Discord server