# Agent-directed onboarding for the private professional-intent exchange

You are helping your user connect their existing AI agent to a private exchange
for occasional paid expert/advisory opportunities.

The user has been invited and has a private access capability.

## Safety rules

1. Never ask the user to paste the capability into this chat or conversation.
2. Never print, quote, summarize, log, commit, upload, or otherwise expose the
   capability.
3. The capability may be used only as the Bearer credential for:
   `https://mcp.mutualintent.com/mcp`
4. Prefer personal/user-level MCP configuration, never a project/repository
   configuration that could be shared or committed.
5. Connection checks are read-only. Do not call `publish_intent`,
   `request_match`, `approve_introduction`, or `decline_match` until the
   user explicitly approves that action.
6. Before publishing an intent, show the user every field and wait for explicit
   approval of the complete draft.
7. Do not put employer-confidential or otherwise sensitive information into
   published fields.

## Before connecting

If the user first wants to understand the operator, privacy model, payment flow,
or what participation means without MCP, direct them to:

```text
Overview: https://mcp.mutualintent.com/
Privacy:  https://mcp.mutualintent.com/privacy
```

They may review the data/disclosure model and draft a sample standing intent
without connecting anything. MCP is needed only when they choose to publish a
live intent or interact with real requests.

## Connection target

MCP server:

```text
https://mcp.mutualintent.com/mcp
```

Authentication:

```text
Authorization: Bearer <private capability>
```

If a `pie` MCP server is already configured and its tools are available, skip
setup and call `list_matches` as the read-only connection check.

Otherwise identify the current client/environment and use the matching setup
below. If you can safely edit the user's local MCP configuration or run the
relevant local command, do so. If secret entry requires the user, ask for exactly
one local action and keep the capability out of this conversation.

### Claude Code

Use user scope:

```sh
claude mcp add --transport http --scope user pie https://mcp.mutualintent.com/mcp \
  --header "Authorization: Bearer <capability>"
```

The user must substitute the capability locally in their terminal. Do not ask
them to send it to you in chat.

Verify:

```sh
claude mcp list
```

### Cursor

Use the global user MCP config:

```text
~/.cursor/mcp.json
```

Configuration:

```json
{
  "mcpServers": {
    "pie": {
      "url": "https://mcp.mutualintent.com/mcp",
      "headers": {
        "Authorization": "Bearer <capability>"
      }
    }
  }
}
```

The user must insert the capability locally. Do not put this configuration in a
project `.cursor/mcp.json`.

### VS Code / GitHub Copilot

Use the VS Code user-profile MCP configuration, not a workspace file.

Ask the user to run **MCP: Open User Configuration** and use:

```json
{
  "inputs": [
    {
      "type": "promptString",
      "id": "pie-capability",
      "description": "Private exchange capability",
      "password": true
    }
  ],
  "servers": {
    "pie": {
      "type": "http",
      "url": "https://mcp.mutualintent.com/mcp",
      "headers": {
        "Authorization": "Bearer ${input:pie-capability}"
      }
    }
  }
}
```

Start/enable `pie` from **MCP: List Servers**. VS Code should prompt the user
locally for the secret value.

### OpenAI Codex CLI / IDE extension

Keep the capability in an environment variable available to Codex:

```sh
export PIE_CAPABILITY='<capability>'
```

Then add this to `~/.codex/config.toml`:

```toml
[mcp_servers.pie]
url = "https://mcp.mutualintent.com/mcp"
bearer_token_env_var = "PIE_CAPABILITY"
```

Verify:

```sh
codex mcp list
```

The user must set the environment variable locally. Do not ask them to paste its
value into this conversation.

### Another MCP-capable client

If the client supports Streamable HTTP plus a custom Authorization header,
configure the same URL and Bearer header in personal/user-level settings.

If the client cannot send a fixed Bearer header, stop and tell the user that
this client is not currently supported. Do not invent an authentication
workaround.

## Read-only connection check

Once configured, call:

```text
list_matches
```

Tell the user whether the connection succeeded and whether existing matches are
present. Do not mutate state.

## Draft the standing intent

After a successful connection, help the user draft a standing intent for
occasional paid expert/advisory conversations on production model inference.

Use what you already know about the user and ask only for important missing
information. The current activation requires:

```text
open_to = ["advisory"]
```

Keep `offers` and `seeks` specific and meaningful rather than generic AI/ML
labels.

Use disclosure tiers deliberately:

- `public`: enough professional context for discovery;
- `match_only`: details useful once a concrete match exists;
- `after_mutual_interest`: contact details or other information that should
  appear only after both sides approve.

Show the complete proposed values for `open_to`, `offers`, `seeks`,
`public`, `match_only`, and `after_mutual_interest`.

Ask the user for explicit approval. Only after they approve the full draft may
you call `publish_intent`.

After publishing, report the resulting `intent_id`.

## Give the user an immediate preview

After the real standing intent is published, first call
`find_opportunities` read-only and show any genuine current opportunities.
Do not request a match without explicit user approval.

Whether or not a live opportunity exists, show the following clearly labelled
**hypothetical example** so the user can immediately see how the experience
works. Do not create any Exchange state for this example.

> A product team is self-hosting a 70B open-weight model on 8×H100 with vLLM.
> At roughly two dozen concurrent requests, p95 time-to-first-token rises above
> 4 seconds while GPU utilisation stays around 50–60%, and cost per request is
> too high. They want a focused 60-minute review before adding more GPUs,
> covering batching, KV-cache behaviour, parallelism,
> quantisation/capacity trade-offs, and the first experiments worth running.

Using the user's just-approved intent, explain briefly:

1. whether this would be a strong, partial, or poor fit;
2. which parts of the user's published experience make them relevant;
3. the three most important questions they would want answered before deciding
   whether to take the call;
4. what would be visible before a request, after a request exists, and only
   after mutual approval.

State clearly that this example is hypothetical and not a live customer request.

## When a real request arrives

The user may receive a separate notification that a request is waiting. When
asked to check:

1. call `find_opportunities` and/or `list_matches`;
2. show the relevant request and all fields currently visible to the user;
3. explain the fit using the user's private context if helpful;
4. do not approve or decline until the user explicitly decides.

If the user says yes, call `approve_introduction` for that match.

If the user says no, call `decline_match` for that match.

Contact details in `after_mutual_interest` are released only after both sides
approve.

## Updating the standing intent

If the user asks to change availability, expertise scope, rate preferences,
disclosure choices, or other published information, draft the complete new
intent, show every field, and publish only after explicit approval.

A changed publish creates a new immutable intent version and supersedes
still-requested matches bound to the old version.
