Gemini MCP Client
A TypeScript client library for interacting with Gemini MCP (Multi-Cloud Platform) services.
Installation
npm install gemini-mcp
Features
- TypeScript support out of the box
- Promise-based API
- Comprehensive type definitions
- Easy integration with Node.js applications
Usage
import { ClientMCP } from 'gemini-mcp';
// Create a new instance
const client = new ClientMCP({
apiKey: 'your-api-key',
baseUrl: 'https://api.gemini-mcp.com/v1'
});
// Use the client
async function getBlogs() {
try {
const blogs = await client.getBlogs();
console.log(blogs);
} catch (error) {
console.error('Error fetching blogs:', error);
}
}
getBlogs();
API Reference
new ClientMCP(config: ClientMCPConfig)
Creates a new Gemini MCP client instance.
Parameters
config
(Object): Configuration objectapiKey
(string): Your Gemini MCP API keybaseUrl
(string): Base URL for the API (default: 'https://api.gemini-mcp.com/v1')timeout
(number): Request timeout in milliseconds (default: 30000)
Methods
getBlogs(): Promise<Blog[]>
Fetches all blogs for the authenticated user.
getBlog(id: string): Promise<Blog>
Fetches a specific blog by ID.
createBlog(blog: BlogCreate): Promise<Blog>
Creates a new blog.
Development
- Clone the repository
- Install dependencies:
npm install
- Build the project:
npm run build
- Run tests:
npm test
License
MIT
TASK LIST
npm version control
add memory in it
- function that can add data in memory
- function that can get data from memory dynamically using ai
- update existing data in memory
add tools search capabilities
- function that can search tools dynamically using ai
- function that can add tools dynamically using ai
- save the tool usage in memory
auto update prompts
- prompts will be updated if user doesnot specify the result in the response.
dynamicaly change the prompt when user query.
- when user query it will determine what prompts to use as system prompt and other prompts
add task listing capabilities in it
- function that can list all the tasks and solve it
Add branch out task capabilities in it(Advanced feature)
Description
Languages
TypeScript
99.3%
JavaScript
0.7%