autointent.server.mcp#

MCP Server for AutoIntent.

Attributes#

Classes#

Settings

Application settings loaded from environment variables.

PredictOutput

Output model for the predict tool.

PaginationParams

Params to perform pagination.

PaginationInfo

Information about data pages.

ClassesOutput

Output model for the classes tool.

DataSample

Single training sample.

TrainDataOutput

Output model for the train_data tool.

Functions#

get_settings()

Get or create settings instance.

load_pipeline()

Load the optimized pipeline from disk.

load_dataset()

Load the training dataset from the pipeline directory.

lifespan(_)

Lifespan manager for the MCP server.

predict(utterances)

Classify text utterances using the trained AutoIntent pipeline.

classes([page, page_size])

Get paginated list of all available classes/intents with their metadata.

train_data([page, page_size, class_filter])

Access training samples with pagination and filtering options.

main()

Main entry point for the MCP server.

Module Contents#

autointent.server.mcp.logger#
autointent.server.mcp.mcp#