
Security News
White House Authorizes Private Companies to Conduct Offensive Cyber Operations
A new federal program will let vetted U.S. cybersecurity firms help investigate and disrupt foreign cybercrime groups under government direction.
@chrischall/mcp-connector
Advanced tools
Reusable Cloudflare remote-connector harness for MCP servers (auth-agnostic OAuth + streamable-HTTP McpAgent).
Reusable, auth-agnostic Cloudflare Worker harness that turns any MCP server's
tool registrars into a hosted remote connector for claude.ai — OAuth login +
streamable-HTTP/SSE via the agents SDK McpAgent and
@cloudflare/workers-oauth-provider.
It is the shared harness behind the *-mcp connector fleet (ofw, untappd, …). Each
MCP keeps its own Worker, hostname, KV, and Durable Objects; this package supplies
the identical OAuth + transport plumbing so none of it is copy-pasted per repo.
AI-maintained. This package is developed and maintained by Claude.
npm i @chrischall/mcp-connector
Peer dependencies (provide these in the consuming Worker so a single copy is
bundled): @modelcontextprotocol/sdk, agents, @cloudflare/workers-oauth-provider.
In your Worker entry point (src/worker.ts):
import { createConnector, type ConnectorAuth } from '@chrischall/mcp-connector';
import { MyClient } from './client.js';
import { registerFooTools } from './tools/foo.js';
interface Props { apiKey: string; [k: string]: unknown }
const myAuth: ConnectorAuth<Props> = {
service: 'MyService',
accent: '#3366ff',
privacyNote: 'Your key is stored encrypted and used only to call MyService on your behalf.',
fields: [{ name: 'apiKey', label: 'MyService API key', type: 'password' }],
async login(fields, env) {
// verify the credentials (throw on bad creds → shown on the login page)
await MyClient.verify(fields.apiKey);
return { apiKey: fields.apiKey };
},
};
const { Agent, handler } = createConnector<Props, MyClient>({
name: 'my-mcp',
version: '1.0.0',
auth: myAuth,
buildClient: (props, env) => new MyClient({ apiKey: props.apiKey }),
tools: [registerFooTools],
});
export { Agent as MyMcpAgent };
export default handler;
createConnector mounts /mcp (streamable HTTP), /sse, /authorize, /token,
and /register (dynamic client registration), and renders a self-contained,
theme-aware login page from the ConnectorAuth descriptor.
createConnector<Props, Client>(opts): { Agent, handler } — opts:
{ name, version, auth, buildClient(props, env), tools: Array<(server, client) => void> }.
Bind Agent to a Durable Object namespace (MCP_OBJECT) in wrangler.jsonc and
export default handler.ConnectorAuth<Props> — { service, fields: LoginField[], login(fields, env): Promise<Props>, userId?, privacyNote?, accent? }.LoginField — { name, label, type?: 'text' | 'password' }.A service that needs no credentials — a fully public API — declares fields: [].
The login page then renders a bare authorize button instead of a credential form,
and login receives an empty object. Use it to verify the service is reachable
and to return whatever props the client needs:
export const auth: ConnectorAuth<Props> = {
service: 'Charlotte On The Cheap',
fields: [],
privacyNote: 'This service needs no account — only public data is read.',
async login(_fields, _env) {
await MyClient.verifyReachable();
return { site: 'https://www.charlotteonthecheap.com' };
},
};
Because there is no per-user identity, every grant is keyed on the user id
'public' unless you set an explicit userId.
MIT
FAQs
Reusable Cloudflare remote-connector harness for MCP servers (auth-agnostic OAuth + streamable-HTTP McpAgent).
We found that @chrischall/mcp-connector demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
A new federal program will let vetted U.S. cybersecurity firms help investigate and disrupt foreign cybercrime groups under government direction.

Research
/Security News
The campaign amassed more than 75,000 installs by targeting Russian-speaking users seeking access to blocked services.

Company News
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.