# For developers

## Endpoint and transport {#endpoint-and-transport}


`POST https://mcp.searchsoftware.nl/mcp`, using stateless Streamable HTTP with JSON responses. There are no sessions or event streams, and `GET` answers `405`.

Every `POST` needs a bearer token, including `initialize` and `tools/list`.


## Status codes {#status-codes}


| Status | When |
|---|---|
| `401` | No token, or an invalid or expired one. `WWW-Authenticate` names `resource_metadata` and `scope` |
| `403` | A foreign `Origin`, or `insufficient_scope` for a missing permission. ChatGPT gets this as a `200` tool error with `_meta["mcp/www_authenticate"]` |
| `404` | An unknown host |
| `405` | `GET` on the endpoint |
| `429` | Too many invalid tokens from one address |
| `503` | The service is overloaded or recovering. Don't treat this as a dead token |

When a workspace has the connector off, tools still list and each call returns a tool error.


## OAuth discovery {#oauth-discovery}


Protected resource metadata is at `/.well-known/oauth-protected-resource/mcp` on the connector host. It names the authorization server and the [read permissions](https://docs.searchsoftware.nl/mcp/permissions.md).

- Authorization uses OAuth 2.1 with PKCE, and tokens are bound to the connector as their resource.
- Dynamic client registration isn't available, because only apps we've approved can connect. An app identifies itself with a Client ID Metadata Document URL, and an unknown URL is refused. Contact support to ask for an app to be approved.
- Consent is shown on every connection, even when an earlier one covers the same permissions.


## Testing with MCP Inspector {#testing-with-mcp-inspector}


Use MCP Inspector's CLI or proxy mode, because a browser `Origin` is refused. Without a token you get the `401`, which is enough to check discovery:

```bash
curl -i -X POST https://mcp.searchsoftware.nl/mcp -H 'Content-Type: application/json' -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'
```

Going further needs a token from an approved app.
