---
url: /docs/api/mcp/functions/detectFormatFromPath.md
---
[**@kaiord/mcp**](../README.md)

***

[@kaiord/mcp](../README.md) / detectFormatFromPath

# Function: detectFormatFromPath()

> **detectFormatFromPath**(`filePath`): `"fit"` | `"tcx"` | `"zwo"` | `"gcn"` | `"krd"` | `null`

Defined in: [utils/detect-format-from-path.ts:6](https://github.com/pablo-albaladejo/kaiord/blob/3eacbe62ef72342d970523967cc5155b5935bb85/packages/mcp/src/utils/detect-format-from-path.ts#L6)

## Parameters

### filePath

`string`

## Returns

`"fit"` | `"tcx"` | `"zwo"` | `"gcn"` | `"krd"` | `null`
