Skip to main content
Glama
naoto24kawa

Composer Package README MCP Server

by naoto24kawa
packagist-api.test.ts1.17 kB
import { expect, test, describe } from "vitest"; describe('PackagistApiClient', () => { test('should exist and be constructable', () => { const { PackagistApiClient } = require('../../dist/src/services/packagist-api.js'); expect(typeof PackagistApiClient).toBe('function'); const client = new PackagistApiClient(); expect(client).toBeDefined(); }); test('should have required methods', () => { const { PackagistApiClient } = require('../../dist/src/services/packagist-api.js'); const client = new PackagistApiClient(); expect(typeof client.checkPackageExists).toBe('function'); expect(typeof client.getPackageInfo).toBe('function'); expect(typeof client.getVersionInfo).toBe('function'); expect(typeof client.searchPackages).toBe('function'); expect(typeof client.getPackageStats).toBe('function'); expect(typeof client.getDownloadStats).toBe('function'); }); test('should create client with custom timeout', () => { const { PackagistApiClient } = require('../../dist/src/services/packagist-api.js'); const client = new PackagistApiClient(10000); expect(client).toBeDefined(); }); });

Latest Blog Posts

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/naoto24kawa/composer-package-readme-mcp-server'

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