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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mseep_mcp_server_tos-0.1.0.tar.gz.
File metadata
- Download URL: mseep_mcp_server_tos-0.1.0.tar.gz
- Upload date:
- Size: 32.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e1a7a317d64ff9e1b38f95c849a17bd9fcc07a988d1889434e926966da00fe6d
|
|
| MD5 |
373e264baf182ac05a0f37784830079d
|
|
| BLAKE2b-256 |
61579366b8f6eeec8da63c8557733c4429ab277f43ccdab807d4f9fec8bba6cb
|
File details
Details for the file mseep_mcp_server_tos-0.1.0-py3-none-any.whl.
File metadata
- Download URL: mseep_mcp_server_tos-0.1.0-py3-none-any.whl
- Upload date:
- Size: 9.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6c7165355208bb28c9bf983cd78eed4caecc5bff7e2883edf3c8dc52e934eca2
|
|
| MD5 |
e7db99955ea97d1d8cbb3edb7d453147
|
|
| BLAKE2b-256 |
869b48fb349e18bb751aab70d77f28c5a7329f25ece9ba6a417f9c110f539bb3
|