Python MCP Template 0.1.0

A template for creating MCP-compliant FastAPI services.


Endpoints

POST /new/endpoint/

New Endpoint

Request body

application/json

{
    "name": "string"
}

This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.

Schema of the request body

{
    "properties": {
        "name": {
            "type": "string",
            "title": "Name",
            "description": "The name to include in the message.",
            "examples": [
                "developer"
            ]
        }
    },
    "type": "object",
    "required": [
        "name"
    ],
    "title": "NewEndpointRequest"
}

Response 200 OK

application/json

{
    "message": "string"
}

This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.

Schema of the response body

{
    "properties": {
        "message": {
            "type": "string",
            "title": "Message",
            "description": "A welcome message.",
            "examples": [
                "Hello, world!"
            ]
        }
    },
    "type": "object",
    "required": [
        "message"
    ],
    "title": "NewEndpointResponse"
}

Response 422 Unprocessable Entity

application/json

{
    "detail": [
        {
            "loc": [
                null
            ],
            "msg": "string",
            "type": "string"
        }
    ]
}

This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.

Schema of the response body

{
    "properties": {
        "detail": {
            "items": {
                "$ref": "#/components/schemas/ValidationError"
            },
            "type": "array",
            "title": "Detail"
        }
    },
    "type": "object",
    "title": "HTTPValidationError"
}

Schemas

HTTPValidationError

Name Type
detail Array<ValidationError>

NewEndpointRequest

Name Type
name string

NewEndpointResponse

Name Type
message string

ValidationError

Name Type
loc Array<>
msg string
type string