Skip to main content
Glama

mcp-server-tree-sitter

by wrale
MIT License
33
  • Apple
  • Linux

find_similar_code

Identify and retrieve code snippets similar to a given input within a specified project using language and similarity thresholds.

Instructions

Find similar code to a snippet.

Args: project: Project name snippet: Code snippet to find language: Language of the snippet threshold: Similarity threshold (0.0-1.0) max_results: Maximum number of results Returns: List of similar code locations

Input Schema

NameRequiredDescriptionDefault
languageNo
max_resultsNo
projectYes
snippetYes
thresholdNo

Input Schema (JSON Schema)

{ "properties": { "language": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Language" }, "max_results": { "default": 10, "title": "Max Results", "type": "integer" }, "project": { "title": "Project", "type": "string" }, "snippet": { "title": "Snippet", "type": "string" }, "threshold": { "default": 0.8, "title": "Threshold", "type": "number" } }, "required": [ "project", "snippet" ], "title": "find_similar_codeArguments", "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/wrale/mcp-server-tree-sitter'

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