@cowliss/mcp
The Cowliss admin API as MCP tools: the server behind cow mcp and the hosted
MCP URL (https://api.cowliss.com/mcp). Install it to run that server on a
transport of your own.
Most people never install this package: npx @cowliss/cli mcp runs it over
stdio, and the hosted URL needs nothing installed at all. See
Working with agents.
Install
npm install @cowliss/mcp @modelcontextprotocol/sdk
Use it
import { createContractMcpServer } from "@cowliss/mcp";
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
const server = createContractMcpServer({
client: {
baseUrl: "https://api.cowliss.com",
auth: () => process.env.COW_TOKEN ?? null,
},
name: "cow-mcp",
version: "1.0.0",
// "full" is every admin tool; "remote" the everyday subset the hosted URL serves.
surface: "full",
});
await server.connect(new StdioServerTransport());
client.auth returns the bearer the API accepts: a cow login token, a
pipeline key, or the OAuth access token a hosted client holds. Every tool call
is an ordinary API request, so the caller's role and limits apply unchanged.