Constant Field Values

io.meeds.*

  • io.meeds.mcp.server.tool.SpaceSearchMcpTool
    Modifier and Type
    Constant Field
    Value
    public static final int
    300
    public static final int
    50
    public static final String
    "A query is required: give a word of the space name or description, without a \'~\' before it"
  • io.meeds.mcp.server.tool.UploadMcpTool
    Modifier and Type
    Constant Field
    Value
    public static final long
    200L
    public static final String
    "If curl cannot reach the platform (for example a proxy answering 403 to the connection) or no shell is available, the file cannot be sent by link from this environment: a small file can still be passed inline to a tool that takes it, as image_base64 for the image tools or as base64 for a document, at the cost of every byte going through the conversation."
    public static final String
    "Run curl_command in a shell on the machine that holds the file, with <path-to-file> replaced by the file\'s path. It answers {\"status\":\"uploaded\",\"size\":N} once the file is received. Then pass upload_id to the tool that should receive the file, which consumes it: any tool that takes an upload_id, such as an image tool (set_my_avatar, set_my_banner, set_space_avatar, set_space_banner, create_activity_with_image, attach_image_to_activity, create_activity_comment_with_image, attach_image_to_comment) or an add-on\'s file tool (a document, a note cover, an article illustration). The link works once, within a few minutes (expires_in_seconds is the platform default validity), and only on the server that issued it: send it with curl_command as given, whose cookie, on a cluster, routes it to that server. HTTP 401: the link expired or was already used; 409: the upload_id is taken; 413: the file is larger than the declared size; in each case call start_upload again. 400: the request is not one multipart file or the platform refused the file; 411: the request had no Content-Length (send the file with -F as given). get_upload tells where an upload stands."
    public static final String
    "<path-to-file>"
    public static final String
    "/portal/upload?action=upload&uploadId="
  • io.meeds.mcp.server.tool.util.McpToolPluginUtils
    Modifier and Type
    Constant Field
    Value
    public static final int
    100
  • io.meeds.mcp.server.tool.util.UploadToolUtils
    Modifier and Type
    Constant Field
    Value
    public static final long
    10485760L
    public static final long
    15728640L
    public static final String
    "Provide exactly one image source: attachment_object_id, image_url, upload_id (a file sent with start_upload) or image_base64."
    public static final String
    "No upload with this upload_id is held on this server for you: it may have expired, already been used by a tool, or been sent to another server node. Call start_upload again, run its curl command, then pass the new upload_id."