We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/helixml/kodit'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
// Package enrichment provides task handlers for enrichment operations.
package enrichment
// TruncateDiff truncates a diff to a reasonable length for LLM processing.
func TruncateDiff(diff string, maxLength int) string {
if len(diff) <= maxLength {
return diff
}
truncationNotice := "\n\n[diff truncated due to size]"
cutoff := max(maxLength-len(truncationNotice), 0)
return diff[:cutoff] + truncationNotice
}
// MaxDiffLength is the maximum characters for a commit diff (~25k tokens).
const MaxDiffLength = 100_000