{"name":"io.github.sriinnu/kosha-discovery","slug":"sriinnu-kosha-discovery","title":"Kosha Model Discovery","description":"Tells your agent which model to use and what it costs, across 45 providers and local runtimes.","url":"https://mcp.market/server/sriinnu-kosha-discovery","rating":null,"grade":"B","score":83,"certified":false,"status":"active","category":"ai","tags":["ai"],"presence":{"score":37,"stars":3,"forks":0,"downloads_week":423,"last_push_at":"2026-09-19T17:00:04.000Z","license":"MIT"},"uptime":null,"claimed":false,"transport":"npm","callable_via_gateway":false,"default_price_micros":0,"repository":"https://github.com/sriinnu/kosha-discovery","website":"https://github.com/sriinnu/kosha-discovery","version":"1.6.2","remotes":[],"packages":[{"registryType":"npm","registryBaseUrl":"https://registry.npmjs.org","identifier":"@sriinnu/kosha-discovery","version":"1.6.2","transport":{"type":"stdio"},"environmentVariables":[{"description":"Anthropic API key. Optional — without it, Anthropic models are read from the public models.dev / LiteLLM catalogs instead of the live API.","isSecret":true,"name":"ANTHROPIC_API_KEY"},{"description":"OpenAI API key. Optional — falls back to the public catalogs when absent.","isSecret":true,"name":"OPENAI_API_KEY"},{"description":"Google AI Studio / Gemini API key. Optional.","isSecret":true,"name":"GOOGLE_API_KEY"},{"description":"OpenRouter key. Optional for discovery (unauthenticated requests are rate-limited), required to execute through OpenRouter.","isSecret":true,"name":"OPENROUTER_API_KEY"},{"description":"xAI (Grok) API key. Optional.","isSecret":true,"name":"XAI_API_KEY"},{"description":"TypeSafe System One (Jev) API key. Optional.","isSecret":true,"name":"TYPESAFE_API_KEY"},{"description":"Override the discovery cache TTL. Defaults to 24 hours.","name":"KOSHA_CACHE_TTL_HOURS"}]}],"tools":[{"name":"kosha_cheapest_model","description":"Find the cheapest AI model that meets your requirements. Returns ranked matches with per-million token pricing. Use this before routing a request to pick the most cost-effective option.","write_action":false,"price_micros":0,"input_schema":null},{"name":"kosha_context_strategy","description":"Advise on context management for a long-running conversation. Given a model and current token usage, returns ranked options (continue, enable prompt cache, compact + continue, switch to long-context tier, switch model, batch offload) with rough cost-per-turn math. Useful before deciding whether to summarize, swap models, or just keep going.","write_action":false,"price_micros":0,"input_schema":null},{"name":"kosha_model_detail","description":"Get full details for a specific model — pricing, capabilities, context window, tool dialect, structured output modes, status, and deprecation info.","write_action":false,"price_micros":0,"input_schema":null},{"name":"kosha_model_routes","description":"List all serving-layer routes for a model (direct provider, OpenRouter, Bedrock, Vertex, etc.) with pricing per route. Useful for finding the cheapest or most available path to a specific model.","write_action":false,"price_micros":0,"input_schema":null},{"name":"kosha_provider_health","description":"Get authentication and health status for all discovered providers. Shows which providers are active, which need credentials, and any recent discovery errors.","write_action":false,"price_micros":0,"input_schema":null},{"name":"kosha_query_models","description":"List AI models from the local kosha registry. Optionally filter by provider, mode, or capability tag. Returns id, provider, name, mode, context window, capabilities, and pricing.","write_action":false,"price_micros":0,"input_schema":null},{"name":"kosha_ranked_routes","description":"Rank chat-model routes by strategy: cheapest (price only), fastest (observed p95 latency), reliable (circuit-breaker state plus timeout / auth-error history), or balanced (weighted blend of all three). Providers whose breaker is open always sort last, so the result doubles as a failover order. Accepts the same filters as kosha_cheapest_model.","write_action":false,"price_micros":0,"input_schema":null},{"name":"kosha_resolve_alias","description":"Resolve a model alias or short name to its canonical ID and provider.","write_action":false,"price_micros":0,"input_schema":null}],"scan":{"score":83,"grade":"B","scanned_at":"2026-09-19T19:53:18.833Z","report":{"scannerVersion":"0.1.5","scannedAt":"2026-09-19T19:53:18.783Z","components":{"code":{"score":25,"max":25,"notes":["162 source files scanned"]},"reliability":{"score":-1,"max":20,"notes":["no gateway calls yet and no remote to probe"]},"poisoning":{"score":-1,"max":15,"notes":["tools not inspected (local package is not executed); not counted"]},"auth":{"score":6,"max":15,"notes":["static API keys via environment variables"]},"maintenance":{"score":15,"max":15,"notes":["last push 0 days ago"]},"identity":{"score":8,"max":10,"notes":["registry namespace matches repository owner","GitHub account older than a year"]}},"findings":[],"inputs":{"packages":[{"registryType":"npm","identifier":"@sriinnu/kosha-discovery","version":"1.6.2","found":true,"license":"MIT","hasInstallScripts":false,"dependencyCount":2,"publishedAt":"2026-09-19T16:59:29.728Z","repositoryUrl":"git+https://github.com/sriinnu/kosha-discovery.git","weeklyDownloads":423}],"repo":{"found":true,"owner":"sriinnu","repo":"kosha-discovery","archived":false,"pushedAt":"2026-09-19T17:00:04Z","stars":3,"forks":0,"openIssues":0,"ownerType":"User","ownerAvatarUrl":"https://avatars.githubusercontent.com/u/5410488?v=4","ownerCreatedAt":"2013-09-08T08:00:06Z","license":"MIT"},"icon":{"url":"https://avatars.githubusercontent.com/u/5410488?v=4&s=128","source":"registry","width":128,"height":128},"presence":{"stars":3,"forks":0,"downloadsWeek":423,"license":"MIT","lastPushAt":"2026-09-19T17:00:04.000Z","score":37}}}},"grade_history":[],"reviews":[]}