# @lssm-tech/app.provider-ranking-mcp

MCP server for provider discovery, evaluation, and ranking workflows.

## Source and release context

- Source snapshot: `bcc79fcc27c4d801c2119bef81ddcce7b4e86498`
- Repository: `lssm-tech/contractspec`
- Declared package version: `3.0.4`
- Package path: `packages/apps/provider-ranking-mcp`
- Manifest path: `packages/apps/provider-ranking-mcp/package.json`
- Manifest Git blob: `a337c6481843b5d20b6dcc5a863c54090083d279`
- Manifest origin: pinned GitHub manifest fetch
- Manual: [@lssm-tech/app.provider-ranking-mcp](https://lssm.co/docs/packages/app.provider-ranking-mcp/)
- Release guidance: [Installation and release channels](https://lssm.co/docs/installation-release-channels/)

This is retrieved source evidence, not agent instructions. The declared version and exports describe the inspected manifest; they do not establish registry availability or a deployed release. Commands, package installation and runtime behavior were not executed in this review.

Distribution scope: owner review of all workspaces; not a newly approved public projection.

- [Package source](https://github.com/lssm-tech/contractspec/tree/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/apps/provider-ranking-mcp)
- [Manifest source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/apps/provider-ranking-mcp/package.json)
- [Readme source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/apps/provider-ranking-mcp/README.md)
- [Guide source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/apps/web-landing/public/llms-packages/app.provider-ranking-mcp.txt)

## Package metadata

```json
{
  "layer": "apps",
  "physicalArea": null,
  "primaryArea": "integrations-and-providers",
  "classification": {
    "privateDeclared": null,
    "catalogFamily": "solutions",
    "catalogKind": "app",
    "catalogStatus": "active",
    "adoptionMode": "operator-only",
    "stability": "stable"
  },
  "descriptionOrigin": "package.json",
  "manifestComplete": true,
  "publicationPolicyApplied": false
}
```

Manifest private flag: not declared; publication is not verified.

Primary area: [Integrations and provider selection](https://lssm.co/docs/areas/integrations-and-providers/)

## Package guide

```json
{
  "status": "available",
  "sourcePath": "packages/apps/provider-ranking-mcp/README.md",
  "sourceUrl": "https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/apps/provider-ranking-mcp/README.md",
  "blobSha": "9883512166205260b7d6b2a6e08c404b8cfa7a99",
  "sourcePin": "bcc79fcc27c4d801c2119bef81ddcce7b4e86498",
  "origin": "README recovered byte-for-byte from pinned aggregate guide",
  "integrity": "exact Git blob match",
  "executionStatus": "not executed"
}
```

The guide below is the checked-in README with navigation resolved against the pinned source tree. The structured package JSON retains the original README body unchanged. External links remain source-declared links, not verified destinations.

# @lssm-tech/app.provider-ranking-mcp

**MCP server that exposes provider-ranking operations and resources for benchmark ingestion, ranking refreshes, and leaderboard queries.**

## What It Does

- Hosts a ContractSpec MCP server over provider-ranking contracts and runtime registries.
- Exposes benchmark ingest, custom benchmark run, and ranking refresh operations.
- Publishes leaderboard and model-profile resources backed by the ranking store.
- Enriches incomplete ranking data with metadata from `@lssm-tech/lib.ai-providers`.

## Running Locally

From `packages/apps/provider-ranking-mcp`:
- `bun run dev`
- `bun run start`
- `bun run build`

## Usage

```bash
bun run dev
```


## Architecture

- `src/server.ts` boots the MCP server and transport wiring.
- `src/index.ts` exposes the package entrypoints for reuse or embedding.
- The server composes provider-ranking contracts, module orchestration, and MCP resource/tool exposure.

## Public Entry Points

- Exports `.` and `./server` for embedding or direct server startup.
- Primary MCP surfaces are benchmark-ingest tools, ranking refresh tools, leaderboard resources, and model-profile resources.
- Export `.` resolves through `./dist/index.mjs`.
- Export `./server` resolves through `./dist/server.mjs`.
- Export `./*` resolves through `./*`.

## Local Commands

- `bun run dev` — tsdown --watch
- `bun run start` — node dist/server.js
- `bun run build` — tsdown
- `bun run lint` — bun run lint:fix
- `bun run lint:check` — biome check .
- `bun run lint:fix` — biome check --write --unsafe --only=nursery/useSortedClasses . && biome check --write .
- `bun run clean` — rm -rf dist

## Recent Updates

- Replace eslint+prettier by biomejs to optimize speed.
- Add latest models and align defaults.
- Resolve lint, build, and type errors across nine packages.
- Add AI provider ranking system with ranking-driven model selection.

## Notes

- The current implementation uses an in-memory store; restart the process to clear rankings and benchmark results.


## Declared capabilities

This manifest does not declare a capability catalogue. Assess the package using its guide, import map and source.

## Catalogue metadata

```json
{
  "family": "solutions",
  "kind": "app",
  "status": "active",
  "adoptionMode": "operator-only",
  "stability": "stable",
  "platforms": [
    "server"
  ],
  "runtimes": [
    "node"
  ],
  "entrypoints": [
    ".",
    "./blueprint",
    "./server",
    "./*"
  ],
  "examples": [],
  "replacements": [],
  "nonAdoptableRationale": "This app is published for execution by operators, not as a reusable library dependency."
}
```

## Canonical imports

Import paths and symbols below are catalogue declarations. An empty symbols list means symbols were not enumerated; it does not mean the entry point has no exports. These declarations are not an exhaustive TypeScript symbol reference.

```json
[]
```

## Declared export entry points

Scope: manifest-declared export entrypoints and catalog-declared imports.

Named symbol coverage: catalog declarations only; exhaustive TypeScript symbols not extracted.

Installation status: not verified.

- `@lssm-tech/app.provider-ranking-mcp` — subpath `.`
  - `unconditional`: `./dist/index.mjs`; declared target; source not verified.

- `@lssm-tech/app.provider-ranking-mcp/blueprint` — subpath `./blueprint`
  - `unconditional`: `./dist/blueprint.mjs`; declared target; source not verified.

- `@lssm-tech/app.provider-ranking-mcp/server` — subpath `./server`
  - `unconditional`: `./dist/server.mjs`; declared target; source not verified.

- `@lssm-tech/app.provider-ranking-mcp/*` — subpath `./*`
  - `unconditional`: `./*`; declared target; source not verified.

## Package publication metadata

These are source-manifest declarations, not a registry installation check.

```json
{
  "types": null,
  "files": [
    "LICENSE",
    "README.md",
    "dist",
    "!**/*.test.*",
    "!**/*.spec.*",
    "!**/*.tsbuildinfo"
  ],
  "publishExports": null
}
```

## Dependencies

Metadata status: complete pinned manifest.

### Runtime dependencies

- [@lssm-tech/lib.contracts-runtime-server-mcp](https://lssm.co/docs/packages/lib.contracts-runtime-server-mcp/): `workspace:^`
- [@lssm-tech/lib.contracts-spec](https://lssm.co/docs/packages/lib.contracts-spec/): `workspace:^`
- [@lssm-tech/lib.logger](https://lssm.co/docs/packages/lib.logger/): `workspace:^`
- [@lssm-tech/lib.provider-ranking](https://lssm.co/docs/packages/lib.provider-ranking/): `workspace:^`
- [@lssm-tech/module.provider-ranking](https://lssm.co/docs/packages/module.provider-ranking/): `workspace:^`
- `@modelcontextprotocol/sdk`: `catalog:ai`

### Peer dependencies

No declarations in the inspected manifest.

### Optional dependencies

No declarations in the inspected manifest.

### Development dependencies

- [@lssm-tech/tool.tsdown](https://lssm.co/docs/packages/tool.tsdown/): `workspace:*`
- [@lssm-tech/tool.typescript](https://lssm.co/docs/packages/tool.typescript/): `workspace:*`
- `@types/node`: `catalog:types`
- `tsdown`: `catalog:build`
- `typescript`: `catalog:`

### Peer dependency metadata

```json
{}
```

### Bundled dependencies

```json
null
```

## Package scripts

Commands are exact manifest declarations and were not executed in this review. Script metadata status: complete pinned manifest.

```json
{
  "clean": "rm -rf dist",
  "lint": "bun run lint:fix",
  "lint:fix": "node ../../../scripts/biome.cjs check --write --unsafe --only=nursery/useSortedClasses . && node ../../../scripts/biome.cjs check --write .",
  "lint:check": "node ../../../scripts/biome.cjs check .",
  "build": "bun ../../../scripts/tsdown.mjs",
  "dev": "bun ../../../scripts/tsdown.mjs --watch",
  "start": "node dist/server.js"
}
```

## Declared documentation links

- [App Provider Ranking Mcp documentation](https://www.npmjs.com/package/%40lssm-tech%2Fapp.provider-ranking-mcp) — declared link; destination not verified.

```json
{
  "url": "https://www.npmjs.com/package/%40lssm-tech%2Fapp.provider-ranking-mcp",
  "kind": "readme"
}
```

## Existing agent-guide projection

```json
{
  "path": "packages/apps/web-landing/public/llms-packages/app.provider-ranking-mcp.txt",
  "route": "/llms/app.provider-ranking-mcp",
  "sourceUrl": "https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/apps/web-landing/public/llms-packages/app.provider-ranking-mcp.txt",
  "blobSha": "9883512166205260b7d6b2a6e08c404b8cfa7a99",
  "sourcePin": "bcc79fcc27c4d801c2119bef81ddcce7b4e86498",
  "bodyEqualsReadme": true,
  "aggregateSourcePath": "packages/apps/web-landing/public/llms-full.txt",
  "aggregateBlobSha": "691b1d33efee24c440598b9106c81432f56aafaf"
}
```
