Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: expose Claude MCP server #41

Merged
merged 6 commits into from
Nov 30, 2024
Merged

feat: expose Claude MCP server #41

merged 6 commits into from
Nov 30, 2024

Conversation

grabbou
Copy link
Collaborator

@grabbou grabbou commented Nov 30, 2024

Fixes #33
Added Builder Bob to consumable package (for context, Bun doesn't produce declarations, and since it bundles everything into a single file, that becomes a challenge)


This PR adds experimental Model Context Protocol Server that can be used with Claude, Zed and other compatible environments.

This is just a first take, there are other features in MCP, including resources, prompts that are all useful and we will be exploring them later!

Going forward, we should unify Vercel AI SDK tools with this, potentially, moving entirely to MCP protocol and using that with Cali as MCP Client in Terminal.

@grabbou grabbou requested a review from okwasniewski November 30, 2024 15:57
@grabbou
Copy link
Collaborator Author

grabbou commented Nov 30, 2024

Note: This is experimental. Not all tools are obviously working, but we will get there soon!

@grabbou
Copy link
Collaborator Author

grabbou commented Nov 30, 2024

Going to merge and ship it @okwasniewski, but let's do a CR anyways and we will do a follow-up on Monday if necessary! 🙏

@grabbou grabbou merged commit 94f91c8 into main Nov 30, 2024
Comment on lines +4 to +6
import { Server } from '@modelcontextprotocol/sdk/server/index.js'
import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js'
import { CallToolRequestSchema, ListToolsRequestSchema } from '@modelcontextprotocol/sdk/types.js'
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do these imports need .js extensions?

const server = new Server(
{
name: '@cali/mcp-server',
version: '0.1.0',
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: maybe let's read this from package.json?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feat: experiment with Claude MCP
2 participants