We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/oborchers/mcp-server-pacman'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
CLAUDE.md•1.55 KiB
# CLAUDE.md
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
## Build/Lint/Test Commands
- Run tests: `uv run pytest -xvs tests/`
- Run provider tests: `uv run pytest -xvs tests/providers/`
- Run integration tests: `uv run pytest -xvs tests/integration/`
- Run specific test file: `uv run pytest -xvs tests/providers/test_pypi.py`
- Run a single test: `uv run pytest -xvs tests/providers/test_pypi.py::TestPyPIFunctions::test_search_pypi_success`
- Check formatting: `uv run ruff format --check .`
- Format code: `uv run ruff format .`
- Lint code: `uv run ruff check .`
- Lint and fix: `uv run ruff check --fix .`
- Run server: `uv run python -m src.mcp_server_pacman`
- Run with debug logging: `uv run python -m src.mcp_server_pacman --debug`
## Code Style
- Follow PEP 8 guidelines
- Use type annotations and Pydantic for data validation
- Use async/await for asynchronous operations
- Imports order: standard library, third-party, local
- Exception handling: use custom McpError with appropriate error codes
- Use loguru for logging with appropriate levels
- Use descriptive error messages with context
- Use f-strings for string formatting
- Test code with unittest framework and async helpers
## Project Structure
- Place models in `src/mcp_server_pacman/models/`
- Provider API functions go in `src/mcp_server_pacman/providers/`
- Utility functions go in `src/mcp_server_pacman/utils/`
- Tests mirror the source directory structure
- Integration tests go in `tests/integration/`
- Keep HTTP client code in provider modules