Spaces:
Sleeping

batonai-coding-assistant[bot] commited on
Commit
dd62878
·
unverified ·
1 Parent(s): 1d1a01b

Implement Code Chunker MCP Server

Browse files

- Create an MCP server named 'Code Chunker Server' that provides functionality to chunk code into logical segments.
- Implement the `chunk_code` tool, which takes code, file extension, and token limit as inputs, processes the code using `CodeChunker`, and returns the resulting chunks as a dictionary.
- Add a resource `get_supported_file_types` to return a list of supported file extensions from `CodeParser`'s language extension map.

These changes enable users to efficiently chunk code based on token counts and provides a way to discover supported file types for the chunking process. The new server facilitates improved interactions with code and enhances UX for developers.

1 file changed +58
mcp_server.pyAdded+58