libmuscle.mcp.server module¶
- class libmuscle.mcp.server.Server(instance_id: Reference, post_office: PostOffice)[source]¶
Bases:
object
A server that accepts MCP connections.
This is a base class for MCP Servers. An MCP Server accepts connections over some lower-level communication protocol, and processes message requests by sending the requested message.
Create a Server.
- Parameters
instance_id – Id of the instance we’re a server for.
post_office – A PostOffice to obtain data from.