Skip to main content
Glama

Tencent Cloud COS MCP Server

Official
by Tencent
utils.test.ts825 B
import { generateOutPutFileId, generateCode } from '../services/utils.js'; describe('utils.ts functions', () => { describe('generateOutPutFileId function', () => { it('should generate a valid output file ID', () => { const objectKey = 'example.txt'; const result = generateOutPutFileId(objectKey); expect(result).toContain('example'); expect(result).toMatch(/\d{8}_example/); // 日期格式验证 }); }); describe('generateCode function', () => { it('should generate a code of specified length', () => { const length = 8; const code = generateCode(length); expect(code).toHaveLength(length); }); it('should generate a secure random code', () => { const code = generateCode(6, true); expect(code).toMatch(/^[A-Za-z0-9]+$/); }); }); });

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Tencent/cos-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server