Skip to main content
Glama

MCPunk

by jurasofish
from pathlib import Path from mcpunk.file_chunkers import WholeFileChunker def test_whole_file_chunker() -> None: source_code = "some\ncontent" chunks = WholeFileChunker(source_code, Path("test.txt")).chunk_file() assert len(chunks) == 1 chunk = chunks[0] assert chunk.category.value == "whole_file" assert chunk.name == "whole_file" assert chunk.line == 1 assert chunk.content == "some\ncontent" # Accepts any file assert WholeFileChunker.can_chunk("", Path("whatever.txt")) assert WholeFileChunker.can_chunk("", Path("test.xyz"))

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/jurasofish/mcpunk'

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