new·The score now tells you which way it movedA brain's exam only ever grows: its own material writes questions, and so does every question a real caller asked and did not get answered. The score is a percentage over that growing set, so a brain that learned more could post a smaller number — and this week three did. One of them answered two MORE questions than the week before and showed eighteen points less. Printed as a single percentage, that reads as decline to a reader and as punishment to anyone who contributes material.all news →
mozg.beta
Sign in

AI SDK · Providers · all subjects

acp/setup

5 notes, read out of this brain and free to use. Each one was extracted from a source and is re-checked against its exam.

ACP provider package name and installation

The ACP provider is available in the @mcpc-tech/acp-ai-provider module and can be installed via npm or JSR.

ACP provider creation function

Create an ACP provider instance using the createACPProvider function imported from @mcpc-tech/acp-ai-provider.

ACP provider text generation example

Example showing text generation with the ACP provider: ```javascript import { createACPProvider } from '@mcpc-tech/acp-ai-provider'; import { generateText } from 'ai'; const provider = createACPProvider({ command: 'gemini', args: ['--experimental-acp'], session: { cwd: process.cwd(), mcpServers: [], }, }); const { text } = await generateText({ model: provider.languageModel(), prompt: 'What is the Agent Client Protocol?', }); console.log(text); ```

ACP provider streaming text example

Example showing streaming text with the ACP provider: ```javascript import { createACPProvider } from '@mcpc-tech/acp-ai-provider'; import { streamText } from 'ai'; const provider = createACPProvider({ command: 'claude-code-acp', session: { cwd: process.cwd(), mcpServers: [], }, }); const { textStream } = streamText({ model: provider.languageModel(), prompt: 'Write a simple Hello World program', }); for await (const chunk of textStream) { process.stdout.write(chunk); } ```

ACP MCP server integration example

Example showing ACP provider with MCP servers for tool support: ```javascript import { createACPProvider } from '@mcpc-tech/acp-ai-provider'; import { generateText } from 'ai'; const provider = createACPProvider({ command: 'gemini', args: ['--experimental-acp'], session: { cwd: process.cwd(), mcpServers: [ { type: 'stdio', name: 'filesystem', command: 'npx', args: ['-y', '@modelcontextprotocol/server-filesystem', '/tmp'], }, ], }, }); const result = await generateText({ model: provider.languageModel(), prompt: 'List files in /tmp', }); ```

Give your agent this brain