Skip to main content
Glama

Placid MCP Server

placid-file-structure.md4.72 kB
# Placid MCP Server File Structure ``` placid-mcp-server/ ├── package.json # Project configuration (for TypeScript) ├── pyproject.toml # Project configuration (for Python) ├── tsconfig.json # TypeScript configuration ├── .env.example # Example environment variables ├── .gitignore ├── README.md # Project documentation ├── src/ # Source code directory │ ├── index.ts # Main entry point (TypeScript) │ ├── server.py # Main entry point (Python) │ ├── config/ # Configuration management │ │ ├── config.ts # Configuration setup │ │ └── constants.ts # Constant values │ ├── core/ # Core server functionality │ │ ├── server.ts # Server initialization │ │ └── types.ts # Type definitions │ ├── services/ # External service integrations │ │ └── placid/ # Placid API integration │ │ ├── client.ts # Placid API client │ │ ├── types.ts # Placid API types │ │ └── utils.ts # Helper functions │ ├── tools/ # MCP tool implementations │ │ ├── index.ts # Tool exports │ │ ├── list_templates/ # List templates tool │ │ │ ├── index.ts # Tool implementation │ │ │ ├── schema.ts # Input/output schemas │ │ │ └── types.ts # Type definitions │ │ └── generate_creative/ # Generate creative tool │ │ ├── index.ts # Tool implementation │ │ ├── schema.ts # Input/output schemas │ │ └── types.ts # Type definitions │ └── utils/ # Shared utilities │ ├── errors.ts # Error handling │ ├── validation.ts # Input validation │ └── logging.ts # Logging utilities ├── tests/ # Test directory │ ├── unit/ # Unit tests │ │ ├── tools/ # Tool tests │ │ └── services/ # Service tests │ └── integration/ # Integration tests └── docs/ # Additional documentation ├── SETUP.md # Setup instructions ├── API.md # API documentation └── DEVELOPMENT.md # Development guidelines ``` ## Key File Descriptions ### Root Files - `package.json` / `pyproject.toml`: Project configuration and dependencies - `.env.example`: Template for required environment variables (PLACID_API_TOKEN) - `README.md`: Project overview, setup instructions, and usage examples ### Source Code (`src/`) #### Entry Points - `index.ts` / `server.py`: Main server initialization and setup - `config/`: Configuration management including environment variables #### Core Implementation - `core/server`: Server setup and initialization - `core/types`: Shared type definitions #### Services - `services/placid/client`: Placid API client implementation - `services/placid/types`: Placid API type definitions - `services/placid/utils`: Helper functions for API interaction #### Tools Each tool directory contains: - Implementation file (`index.ts`) - Schema definitions (`schema.ts`) - Type definitions (`types.ts`) #### Utilities - `utils/errors`: Error handling and custom error classes - `utils/validation`: Input validation functions - `utils/logging`: Logging configuration and utilities ### Tests (`tests/`) - Unit tests for individual components - Integration tests for end-to-end functionality - Test utilities and helpers ### Documentation (`docs/`) - Detailed setup instructions - API documentation - Development guidelines ## Implementation Notes ### Core Files to Implement First 1. Environment configuration 2. Placid API client 3. Basic server setup 4. Tool implementations ### Configuration Priority 1. API authentication 2. Error handling 3. Logging setup 4. Input validation ### Security Considerations - Secure token storage - Input validation - Error handling - Rate limiting ### Testing Strategy 1. Unit tests for tools 2. Integration tests with Placid API 3. Error handling tests 4. Performance tests ## Next Steps 1. Set up project structure 2. Implement configuration management 3. Create Placid API client 4. Implement tools one at a time 5. Add tests 6. Add documentation Would you like me to proceed with implementing any specific part of this structure?

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/felores/placid-mcp-server'

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