npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@missionsquad/mcp-msq

v0.2.1

Published

MCP server interface for the MissionSquad API

Readme

@missionsquad/mcp-msq

MCP server interface for the MissionSquad platform API (https://missionsquad.ai).

This server exposes MissionSquad account-scoped operations for models, agents, providers, vector stores, files, and core utilities via FastMCP tools.

Features

  • FastMCP stdio server (mcp-msq)
  • MissionSquad API key support via hidden tool arg (apiKey) or env fallback (MSQ_API_KEY)
  • MissionSquad base URL override via hidden tool arg (baseUrl) or env fallback (MSQ_BASE_URL)
  • Strict TypeScript and Zod-validated tool inputs
  • Multipart file upload support (POST /v1/files)
  • Bounded binary file-content retrieval (GET /v1/files/:id/content) with truncation metadata
  • Build/test CI and npm publish workflow

Verified API Coverage

Implemented from missionsquad-docs/api/index.md and the following reference pages:

  • chat-completions.md
  • embeddings.md
  • providers.md
  • models.md
  • agents.md
  • core-utilities.md
  • collections.md
  • vector-stores.md
  • files.md
  • convenience.md
  • endpoint-index.md

Current implementation intentionally excludes Webhooks endpoints because the reference only lists routes without request/response contracts.

Requirements

  • Node.js >=20
  • Yarn

Installation

yarn install
yarn build
yarn start

Run as CLI after install/publish:

mcp-msq

Configuration

Copy .env.example to .env.

| Variable | Required | Default | Description | |---|---|---|---| | MSQ_API_KEY | No | unset | MissionSquad API key fallback when hidden apiKey is not passed | | MSQ_BASE_URL | No | https://agents.missionsquad.ai/v1 | Base URL for v1 endpoints | | MSQ_HTTP_TIMEOUT_MS | No | 30000 | Request timeout in milliseconds | | MSQ_DEFAULT_FILE_CONTENT_MAX_BYTES | No | 1048576 | Default max bytes returned by msq_get_file_content |

Hidden Arguments

The following are intentionally not in tool schemas and should be passed as hidden extra args:

  • apiKey: MissionSquad API key for request authentication
  • baseUrl: Optional base URL override

Resolution order per request:

  1. Hidden extra arg
  2. Environment fallback

If no API key is available, the tool returns a user-facing error.

Tool Surface

Core OpenAI-Compatible

  • msq_list_models
  • msq_get_model_map
  • msq_chat_completions
  • msq_embeddings

Providers

  • msq_list_providers
  • msq_add_provider
  • msq_delete_provider

Models

  • msq_discover_provider_models
  • msq_add_model
  • msq_delete_model

Agents

  • msq_list_agents
  • msq_add_agent
  • msq_delete_agent

Core Utilities

  • msq_generate_prompt
  • msq_run_agent_workflow
  • msq_get_core_config
  • msq_scrape_url
  • msq_list_tools
  • msq_list_servers

Core Collections

  • msq_list_core_collections
  • msq_search_core_collection
  • msq_get_core_collection_diagnostics
  • msq_recover_core_collection

Vector Stores

  • msq_list_vector_stores
  • msq_create_vector_store
  • msq_get_vector_store
  • msq_delete_vector_store
  • msq_list_vector_store_files
  • msq_add_vector_store_file
  • msq_get_vector_store_file
  • msq_cancel_vector_store_session

Files

  • msq_list_files
  • msq_upload_file
  • msq_get_file
  • msq_delete_file
  • msq_get_file_content

Convenience

  • msq_list_user_collections
  • msq_get_vector_store_file_details

File Upload and Download Notes

msq_upload_file accepts:

  • filePath (required)
  • purpose (required)
  • relativePath (optional)
  • collectionName (optional)
  • filename (optional override)

msq_get_file_content returns:

  • contentType
  • contentLength
  • bytesRead
  • truncated
  • base64

If response content exceeds maxBytes (or MSQ_DEFAULT_FILE_CONTENT_MAX_BYTES), payload is truncated safely and reported via truncated: true.

Response Format

All tool handlers return deterministic JSON text strings. Parse text content on the client side if structured access is needed.

Usage Examples

JSON-RPC tools/call with hidden API key

{
  "method": "tools/call",
  "params": {
    "name": "msq_list_models",
    "arguments": {
      "apiKey": "msq-..."
    }
  }
}

JSON-RPC tools/call with body args

{
  "method": "tools/call",
  "params": {
    "name": "msq_chat_completions",
    "arguments": {
      "model": "my-gpt4",
      "messages": [
        { "role": "user", "content": "Hello" }
      ],
      "apiKey": "msq-..."
    }
  }
}

FastMCP-style client call

await client.callTool('msq_embeddings', {
  model: 'nomic-embed-text-v1.5',
  input: ['First sentence', 'Second sentence'],
  apiKey: 'msq-...',
})

Development

Scripts:

  • yarn build
  • yarn start
  • yarn dev
  • yarn inspect
  • yarn test
  • yarn test:coverage

CI/CD

  • .github/workflows/build.yaml: build + test on PR open/sync
  • .github/workflows/publish.yaml: build + test + publish on main push (markdown-only changes ignored)

License

MIT