Skip to content

Commit d0c4e66

Browse files
committed
Lower protocol version
This allows the Zed editor to use the MCP
1 parent 5440fad commit d0c4e66

File tree

11 files changed

+10
-35
lines changed

11 files changed

+10
-35
lines changed

exe/cf-mcp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#!/usr/bin/env ruby
22
# frozen_string_literal: true
33

4+
require "bundler/setup"
45
require "cf/mcp"
56

67
CF::MCP::CLI.new(ARGV).run

exe/cf-mcp-wrapper

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/bash
2+
source /opt/homebrew/share/chruby/chruby.sh
3+
4+
PROJECT_DIR="$(cd "$(dirname "$0")/.." && pwd)"
5+
chruby "$(cat "$PROJECT_DIR/.ruby-version")"
6+
7+
export BUNDLE_GEMFILE="$PROJECT_DIR/Gemfile"
8+
exec "$PROJECT_DIR/exe/cf-mcp" "$@"

lib/cf/mcp/server.rb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def self.build_rack_app(root: nil, download: false)
3434
new(index).rack_app
3535
end
3636

37-
PROTOCOL_VERSION = "2025-06-18"
37+
PROTOCOL_VERSION = "2025-03-26"
3838
WEBSITE_URL = ENV.fetch("FLY_APP_NAME", nil) ? "https://#{ENV["FLY_APP_NAME"]}.fly.dev" : "https://cf-mcp.fly.dev"
3939
PUBLIC_DIR = File.join(__dir__, "public")
4040

@@ -44,10 +44,8 @@ def initialize(index)
4444
configuration = ::MCP::Configuration.new(protocol_version: PROTOCOL_VERSION)
4545
@server = ::MCP::Server.new(
4646
name: "cf-mcp",
47-
title: "Cute Framework MCP",
4847
configuration:,
4948
version: CF::MCP::VERSION,
50-
website_url: WEBSITE_URL,
5149
icons: [
5250
::MCP::Icon.new(src: "#{WEBSITE_URL}/favicon.svg", mime_type: "image/svg+xml", sizes: ["any"]),
5351
::MCP::Icon.new(src: "#{WEBSITE_URL}/favicon-96x96.png", mime_type: "image/png", sizes: ["96x96"])

lib/cf/mcp/tools/find_related.rb

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,7 @@ module Tools
99
class FindRelated < ::MCP::Tool
1010
extend ResponseHelpers
1111

12-
TITLE = "Find Related"
13-
1412
tool_name "find_related"
15-
title TITLE
1613
description "Find all items related to a given Cute Framework item (bidirectional relationship search)"
1714

1815
input_schema(
@@ -24,7 +21,6 @@ class FindRelated < ::MCP::Tool
2421
)
2522

2623
annotations(
27-
title: TITLE,
2824
read_only_hint: true,
2925
destructive_hint: false,
3026
idempotent_hint: true,

lib/cf/mcp/tools/get_details.rb

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,7 @@ module Tools
99
class GetDetails < ::MCP::Tool
1010
extend ResponseHelpers
1111

12-
TITLE = "Get Details"
13-
1412
tool_name "get_details"
15-
title TITLE
1613
description "Get detailed documentation for a specific Cute Framework item by exact name"
1714

1815
input_schema(
@@ -24,7 +21,6 @@ class GetDetails < ::MCP::Tool
2421
)
2522

2623
annotations(
27-
title: TITLE,
2824
read_only_hint: true,
2925
destructive_hint: false,
3026
idempotent_hint: true,

lib/cf/mcp/tools/get_topic.rb

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,7 @@ module Tools
99
class GetTopic < ::MCP::Tool
1010
extend ResponseHelpers
1111

12-
TITLE = "Get Topic"
13-
1412
tool_name "get_topic"
15-
title TITLE
1613
description "Get the full content of a Cute Framework topic guide document"
1714

1815
input_schema(
@@ -24,7 +21,6 @@ class GetTopic < ::MCP::Tool
2421
)
2522

2623
annotations(
27-
title: TITLE,
2824
read_only_hint: true,
2925
destructive_hint: false,
3026
idempotent_hint: true,

lib/cf/mcp/tools/list_category.rb

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,7 @@ module Tools
99
class ListCategory < ::MCP::Tool
1010
extend ResponseHelpers
1111

12-
TITLE = "List Category"
13-
1412
tool_name "list_category"
15-
title TITLE
1613
description "List all items in a specific category, or list all available categories"
1714

1815
input_schema(
@@ -24,7 +21,6 @@ class ListCategory < ::MCP::Tool
2421
)
2522

2623
annotations(
27-
title: TITLE,
2824
read_only_hint: true,
2925
destructive_hint: false,
3026
idempotent_hint: true,

lib/cf/mcp/tools/list_topics.rb

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,7 @@ module Tools
99
class ListTopics < ::MCP::Tool
1010
extend ResponseHelpers
1111

12-
TITLE = "List Topics"
13-
1412
tool_name "list_topics"
15-
title TITLE
1613
description "List all Cute Framework topic guides, optionally filtered by category or in recommended reading order"
1714

1815
input_schema(
@@ -24,7 +21,6 @@ class ListTopics < ::MCP::Tool
2421
)
2522

2623
annotations(
27-
title: TITLE,
2824
read_only_hint: true,
2925
destructive_hint: false,
3026
idempotent_hint: true,

lib/cf/mcp/tools/member_search.rb

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,7 @@ module Tools
99
class MemberSearch < ::MCP::Tool
1010
extend ResponseHelpers
1111

12-
TITLE = "Member Search"
13-
1412
tool_name "member_search"
15-
title TITLE
1613
description "Search Cute Framework structs by member name or type"
1714

1815
input_schema(
@@ -25,7 +22,6 @@ class MemberSearch < ::MCP::Tool
2522
)
2623

2724
annotations(
28-
title: TITLE,
2925
read_only_hint: true,
3026
destructive_hint: false,
3127
idempotent_hint: true,

lib/cf/mcp/tools/parameter_search.rb

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,7 @@ module Tools
99
class ParameterSearch < ::MCP::Tool
1010
extend ResponseHelpers
1111

12-
TITLE = "Parameter Search"
13-
1412
tool_name "parameter_search"
15-
title TITLE
1613
description "Find Cute Framework functions by parameter or return type"
1714

1815
input_schema(
@@ -29,7 +26,6 @@ class ParameterSearch < ::MCP::Tool
2926
)
3027

3128
annotations(
32-
title: TITLE,
3329
read_only_hint: true,
3430
destructive_hint: false,
3531
idempotent_hint: true,

0 commit comments

Comments
 (0)