Skip to main content
Glama

Local Project Sync

by Cytrogen

search_code_content

Search project code for specific content using keywords or regex, with options to filter file types, set case sensitivity, and include context lines.

Instructions

在项目代码中搜索指定内容,支持正则表达式

Input Schema

NameRequiredDescriptionDefault
caseSensitiveNo是否区分大小写
contextLinesNo返回匹配行前后的上下文行数
fileTypesNo文件类型过滤,如 ['.ts', '.tsx', '.js']
maxResultsNo最大结果数量
queryYes搜索关键词或正则表达式
useRegexNo是否启用正则表达式模式

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "caseSensitive": { "default": false, "description": "是否区分大小写", "type": "boolean" }, "contextLines": { "default": 0, "description": "返回匹配行前后的上下文行数", "type": "number" }, "fileTypes": { "description": "文件类型过滤,如 ['.ts', '.tsx', '.js']", "items": { "type": "string" }, "type": "array" }, "maxResults": { "default": 50, "description": "最大结果数量", "type": "number" }, "query": { "description": "搜索关键词或正则表达式", "type": "string" }, "useRegex": { "default": false, "description": "是否启用正则表达式模式", "type": "boolean" } }, "required": [ "query" ], "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/Cytrogen/local-project-sync'

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