# TestLocally — Pipedream Connect

> See what your website looks like from anywhere

- API slug: `testlocally` (use in MCP headers and tool keys)
- Auth: API key (Pipedream-managed)
- Categories: Web & App Development
- Website: https://testlocal.ly/
- This page (HTML): https://pipedream.com/apps/testlocally
- Tools: 5 actions · 1 trigger

## Connect via MCP (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: testlocally`

```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": "testlocally",
      },
    },
  },
)

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

const { tools } = await mcp.listTools()

// e.g. run Get Test:
const result = await mcp.callTool({
  name: "testlocally-get-test",
  arguments: {
    testId: "Test ID",
  },
})
```

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

## SDK

```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 result = await pd.actions.run({
  id: "testlocally-get-test",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    testlocally: { authProvisionId: "apn_xxxxxxx" },
    testId: "Test ID",
  },
})
```

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

## Actions (5)

### `testlocally-get-test` — Get Test (Read-only)

Get details of a specific test in TestLocally. See the documentation

Full schema: https://pipedream.com/apps/testlocally/actions/get-test.md

### `testlocally-list-servers-options` — List Servers Options (Read-only)

Retrieves available options for the Servers field.

Full schema: https://pipedream.com/apps/testlocally/actions/list-servers-options.md

### `testlocally-list-test-id-options` — List Test ID Options (Read-only)

Retrieves available options for the Test ID field.

Full schema: https://pipedream.com/apps/testlocally/actions/list-test-id-options.md

### `testlocally-list-tests` — List Tests (Read-only)

Returns a list of tests in TestLocally. See the documentation

Full schema: https://pipedream.com/apps/testlocally/actions/list-tests.md

### `testlocally-run-test` — Run Test (Write)

Create and run a new test in TestLocally. See the documentation

Full schema: https://pipedream.com/apps/testlocally/actions/run-test.md

## Triggers (1)

### `testlocally-new-test-run` — New Test Run (Polling)

Emit new event when a new test is run or completed in TestLocally. See the documentation

Full schema: https://pipedream.com/apps/testlocally/triggers/new-test-run.md

---

- All apps: https://pipedream.com/apps — index: https://pipedream.com/llms.txt
- Pipedream docs for agents: https://pipedream.com/docs/llms.txt
