How do I create a file

Add MCP server to your AI tool

Allow AI tools and LLMs to interact with the API documentation portal through MCP.

MCP server URL

https://docs.pterocos.eu.org/mcp

Standard setup for AI tools providing an mcp.json file

mcp.json
{
  "Pterocos MCP server": {
    "url": "https://docs.pterocos.eu.org/mcp"
  }
}

Close
GET /create-file

To create a new file in Pterocos:

  1. Inside the code editor https://pterocos.eu.org/?page_id=15 after choosing the folder you want
  2. you'll find yourself at a area asks you to create a file
  3. Create [+ New File] there please select file name and the lang you want. (php or anything)
  4. Create file and done. open it and start coding
GET /create-file
curl \
 --request GET 'https://pterocos.eu.org/create-file'