
Gemini CLI can update Linear issues from the terminal through a Model Context Protocol server, extending the AI agent beyond its own language model. The same protocol can connect an agent to calculation tools, outside information and other software. Google for Developers demonstrates how these connections work, including the authentication needed before an agent can act on a user’s behalf. Discover how MCP servers are configured and what happened when the connected tools were put to work.
How MCP Gives an Agent Access to Tools
TL;DR Key Takeaways :
- MCP provides a standard way for Gemini CLI agents to reach external software and data.
- A configured math server returned 2,468 for the example addition request.
- Linear’s remote server requires OAuth authentication before its tools can change issues.
- A Veo 3 server generated parrot clips, although their text was not always correct.
Model Context Protocol (MCP) is a standardized communication layer between an AI agent based on a large language model and other software. An MCP server registers tools with descriptions and input schemas, which help the agent decide when a tool is relevant and what information to provide. A server can be written in JavaScript or Python as long as it follows the protocol.
One example server registers addition and subtraction tools. Its addition tool requires two numbers, giving the agent a defined way to pass a calculation to a conventional program. The Python example likewise specifies a title, description and expected input schema, although those details appear in different places than in the JavaScript example.
To connect a server, add its configuration to the Gemini CLI settings.json file, then run /mcp to list available tools and check that the configured tool appears. When asked to add 1,234 to itself with the example server configured, Gemini CLI returned 2,468. Language models are getting better at addition, so a separate server might not be needed for that particular calculation, but traditional programs offer a way to handle math that models do not always perform reliably.
External Connections Can Retrieve Data and Take Action
Calculations are only one use for the connection. MCP servers can retrieve search results, current weather and other information outside a model’s original training data. They can also add database entries, push code to GitHub or update a to-do list, allowing an agent to act on a request as well as answer it.
Those actions make authentication important. MCP uses OAuth to validate that a request comes from the user when an agent is making changes on that person’s behalf. Linear, a tool for planning and building products, provides a remote MCP server that uses OAuth to verify authentication before its tools are available.
Connect Linear and Authenticate in a Browser
Most examples use Cloud Shell, a cloud-based terminal, but the Linear connection needs a terminal that can open the browser tab for its login flow. Cloud Shell could not be used for that example because it lacked permission to open the tab. Once you have a suitable terminal, the connection follows this sequence:
- Add the Linear MCP server to the Gemini CLI settings file, start Gemini CLI and run /mcp. Linear initially appears configured but disconnected, so its tools cannot yet be used.
- Run /mcp auth linear to open a browser tab, then follow the Linear login flow to authenticate.
- Return to Gemini CLI and run /mcp again. Linear appears enabled, along with its available tools.
With the server enabled, an issue can be updated without leaving the terminal, potentially removing the need for a separate Linear browser tab during that work. Authentication is the step that turns a configured but disconnected server into an available connection.
Prompt Wording Changes Which Linear Tool Runs
Linear provides separate list issues and list my issues tools. In the demonstration, asking for “my issues” selected the latter and returned no issues. Rewording the request to ask for all issues led Gemini CLI to select the appropriate tool.
The distinction is useful when a result is narrower than expected: the wording of a request can point the agent toward a different available tool. While the Linear example shows how wording can affect a choice between external tools, Google Workspace AI prompting is a separate topic.
The connected agent also made changes to the project. In a Linear project with only one user, it was asked to assign all tasks to that user, and the Linear dashboard showed that every task was assigned. It marked the task of getting familiar with Linear complete, after which the task disappeared from the active list.
Another request created a task to make a video about MCP and Gemini CLI. It first appeared in the backlog, then was changed to active and in progress on request. These operations show why the login matters: the connection is able to change project data, not just retrieve it.
A Video Server Adds a More Involved Setup
MCP can also extend an agent to create custom generative AI videos with Veo 3. The demonstrated video-generation server takes more setup than the math and Linear examples. To install it locally, clone its repository, navigate to the MCP Gen Media directory and run the installation shell script, then update the Gemini CLI settings to include the server.
When asked to create an animation for MCP and Gemini CLI, the demonstrated setup generated cartoon parrot videos. The text in the generated video was not correct 100% of the time, so the visual output still needs inspection before it is used. A successful connection gives the agent access to the generation tool, but it does not guarantee accurate text in the result.
Our view is that the Linear example is a useful place to see both the benefit and the responsibility of an MCP connection. Updating issues from the terminal saves a change of workspace, but the difference between listing personal issues and all issues shows why requests need care. We would check the resulting project changes, particularly when asking an agent to update several tasks. For generated video, inspecting the text matters just as much as getting a clip back.
MCP can potentially extend agents beyond the calculation, task-management and video examples shown here. As more servers become available, those capabilities could become more powerful. For any connection, the practical starting point remains the same: configure the server, check its available tools and complete any authentication it requires.
More on Gemini:
- How Model Context Protocol (MCP) Simplifies AI Workflows and Enhances Productivity
- Model Context Protocol (MCP) Explained The New Standard for AI Tools
- Claude MCP: Set Up Search, File Access and GitHub
- Model Context Protocol (MCP) Explained With Code Examples)
Media Credit: Google for Developers
Disclosure: Some of our articles include affiliate links. If you buy something through one of these links, Geeky Gadgets may earn an affiliate commission. Learn about our Disclosure Policy.