Skip to main content

Add your description here

Project description

Sample TOS Model Context Protocol Server

An MCP server implementation for retrieving data from TOS.

Features

Tools

  • list_buckets
    • Returns a list of all buckets owned by the authenticated sender of the request
  • list_objects
    • Returns some or all (up to 1,000) of the objects in a bucket with each request
  • get_object
    • Retrieves an object from volcengine TOS. In the GetObject request, specify the full key name for the object. General purpose buckets - Both the virtual-hosted-style requests and the path-style requests are supported

Configuration

The server requires the following environment variables to be set:

  • VOLC_ACCESSKEY: Required, The access key for the VolcEngine.
  • VOLC_SECRETKEY: Required, The secret key for the VolcEngine.
  • REGION: Required, The region for the TOS service.
  • TOS_ENDPOINT: Required, The endpoint for the TOS service.
  • SECURITY_TOKEN: Optional, The security token for the credential.
  • TOS_BUCKETS: Optional, If you want to use a specific bucket, you need to set this.

You can set these environment variables in your shell.

MCP Settings Configuration

To add this server to your MCP configuration, add the following to your MCP settings file:

{
  "mcpServers": {
    "tos-mcp-server": {
      "command": "uv",
      "args": [
        "--directory",
        "/ABSOLUTE/PATH/TO/PARENT/FOLDER/src/mcp_server_tos",
        "run",
        "main.py"
      ]
    }
  }
}

or

{
    "mcpServers": {
        "tls": {
            "command": "uvx",
            "args": [
                "--from",
                "git+https://github.com/volcengine/ai-app-lab#subdirectory=mcp/server/mcp_server_tos",
                "mcp-server-tos"
            ],
            "env": {
                "VOLC_ACCESSKEY": "your ak",
                "VOLC_SECRETKEY": "your sk",
                "REGION": "tos region",
                "TOS_ENDPOINT": "tos endpoint",
                "SECURITY_TOKEN": "your security token",
                "TOS_BUCKET": "your specific bucket"
            }
        }
    }
}

Usage

Running the Server

# Run the server with stdio transport (default)
tos-mcp-server

License

This library is licensed under the MIT-0 License. See the LICENSE file.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mseep_mcp_server_tos-0.1.1.tar.gz (2.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mseep_mcp_server_tos-0.1.1-py3-none-any.whl (2.5 kB view details)

Uploaded Python 3

File details

Details for the file mseep_mcp_server_tos-0.1.1.tar.gz.

File metadata

  • Download URL: mseep_mcp_server_tos-0.1.1.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.12

File hashes

Hashes for mseep_mcp_server_tos-0.1.1.tar.gz
Algorithm Hash digest
SHA256 8c681cfe9d37b32b17af0b96a3c96e6592569f1dd0823a9c04a2f840ef8c5661
MD5 f2608e0a27348097d773cb0473d99c70
BLAKE2b-256 034d67b4e8f35afab9c9d926cbbfb39c10287e0a7d5ded029de0e5b9b550c126

See more details on using hashes here.

File details

Details for the file mseep_mcp_server_tos-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for mseep_mcp_server_tos-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 44de8462f0275cfa16a5b513165e855ff2b3076adcc019720701c00da1d667a8
MD5 be52e5bd4d38e339b7751043f6d7aa43
BLAKE2b-256 46f7d8ab1816f0e13ef4a23f3723429e3bbd00859aedaf3ce796b4fbfcab7ac1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page