# Ollama + Skyvern — Pipedream Connect

> Connect a user's Ollama and Skyvern accounts and expose tools for both apps directly in your product or your agent.

- Apps: Ollama (`ollama`) + Skyvern (`skyvern`)
- This page (HTML): https://pipedream.com/apps/ollama/integrations/skyvern
- One `external_user_id` owns both connected accounts, and each account stays independently revocable.

## One session, both toolsets (recommended)

- Endpoint: `https://remote.mcp.pipedream.net/v3`
- Headers: `Authorization: Bearer <token>` · `x-pd-project-id` · `x-pd-environment` · `x-pd-external-user-id` · `x-pd-app-slug: ollama,skyvern`
- `x-pd-app-slug` takes a comma-separated list, so `ollama,skyvern` is one session on one transport. Both toolsets arrive from a single `listTools()`, and a tool is called exactly as it would be in a single-app session.

```ts
import { Client } from "@modelcontextprotocol/sdk/client/index.js"
import { StreamableHTTPClientTransport } from "@modelcontextprotocol/sdk/client/streamableHttp.js"
import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const accessToken = await pd.rawAccessToken

const transport = new StreamableHTTPClientTransport(
  new URL("https://remote.mcp.pipedream.net/v3"),
  {
    requestInit: {
      headers: {
        Authorization: `Bearer ${accessToken}`,
        "x-pd-project-id": process.env.PIPEDREAM_PROJECT_ID!,
        "x-pd-environment": "production",
        "x-pd-external-user-id": "{external_user_id}", // any stable ID for this user in your system
        "x-pd-app-slug": "ollama,skyvern",
      },
    },
  },
)

const mcp = new Client({ name: "my-agent", version: "1.0.0" })
await mcp.connect(transport)

const { tools } = await mcp.listTools()

// One list, both toolsets: Ollama and Skyvern tools arrive
// together, each keyed by its own app's slug.

// e.g. run Copy Model:
const result = await mcp.callTool({
  name: "ollama-copy-model",
  arguments: {
    source: "Model Name",
    destination: "New Model Name",
  },
})
```

Docs: [MCP guide](https://pipedream.com/docs/connect/mcp/developers.md)

## Both apps from your backend

```ts
import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const externalUserId = "{external_user_id}" // any stable ID for this user in your system

const [ollamaTools, skyvernTools] =
  await Promise.all([
    pd.components.list({ app: "ollama" }),
    pd.components.list({ app: "skyvern" }),
  ])

// One external user owns both connected accounts, so either app's tools
// run on their behalf with the same externalUserId.
```

Docs: [Managed auth guide](https://pipedream.com/docs/connect/managed-auth/quickstart.md) · [Tools guide](https://pipedream.com/docs/connect/components.md)

## Ollama

- API slug: `ollama` (use in MCP headers and tool keys)
- Auth: API key (Pipedream-managed)
- Categories: Artificial Intelligence (AI)
- Website: https://ollama.com/
- App page (HTML): https://pipedream.com/apps/ollama
- Tools: 10 actions · 0 triggers

Full tool list, API proxy, and SDK quickstart: https://pipedream.com/apps/ollama.md

### Actions (top 8 of 10)

- [Copy Model](https://pipedream.com/apps/ollama/actions/copy-model.md) — `ollama-copy-model`
- [Create Model](https://pipedream.com/apps/ollama/actions/create-model.md) — `ollama-create-model`
- [Delete Model](https://pipedream.com/apps/ollama/actions/delete-model.md) — `ollama-delete-model`
- [Generate Chat Completion](https://pipedream.com/apps/ollama/actions/generate-chat-completion.md) — `ollama-generate-chat-completion`
- [Generate Completion](https://pipedream.com/apps/ollama/actions/generate-completion.md) — `ollama-generate-completion`
- [Generate Embeddings](https://pipedream.com/apps/ollama/actions/generate-embeddings.md) — `ollama-generate-embeddings`
- [List Local Models](https://pipedream.com/apps/ollama/actions/list-local-models.md) — `ollama-list-local-models`
- [Pull Model](https://pipedream.com/apps/ollama/actions/pull-model.md) — `ollama-pull-model`

## Skyvern

- API slug: `skyvern` (use in MCP headers and tool keys)
- Auth: API key (Pipedream-managed)
- Categories: Artificial Intelligence (AI)
- Website: https://www.skyvern.com/
- App page (HTML): https://pipedream.com/apps/skyvern
- Tools: 4 actions · 1 trigger

Full tool list, API proxy, and SDK quickstart: https://pipedream.com/apps/skyvern.md

### Actions (4)

- [Create and Run Task](https://pipedream.com/apps/skyvern/actions/create-run-task.md) — `skyvern-create-run-task`
- [Get Workflow Run Details](https://pipedream.com/apps/skyvern/actions/get-workflow.md) — `skyvern-get-workflow`
- [List Workflow ID Options](https://pipedream.com/apps/skyvern/actions/list-workflow-id-options.md) — `skyvern-list-workflow-id-options`
- [Run Workflow](https://pipedream.com/apps/skyvern/actions/run-workflow.md) — `skyvern-run-workflow`

### Triggers (1)

- [New or Updated Workflow](https://pipedream.com/apps/skyvern/triggers/new-or-updated-workflow.md) — `skyvern-new-or-updated-workflow`

---

- Ollama: https://pipedream.com/apps/ollama.md · Skyvern: https://pipedream.com/apps/skyvern.md
- All apps: https://pipedream.com/apps — index: https://pipedream.com/llms.txt
- Pipedream docs for agents: https://pipedream.com/docs/llms.txt
