Skip to content

Commit 6f85a68

Browse files
author
王录祥
committed
add request header
1 parent 13d290a commit 6f85a68

File tree

20 files changed

+32
-32
lines changed

20 files changed

+32
-32
lines changed

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<!-- omit in toc -->
22
# MCP Go 🚀
3-
[![Build](https://github.com/wlxwlxwlx/mcp-go/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/wlxwlxwlx/mcp-go/actions/workflows/ci.yml)
4-
[![Go Report Card](https://goreportcard.com/badge/github.com/wlxwlxwlx/mcp-go?cache)](https://goreportcard.com/report/github.com/wlxwlxwlx/mcp-go)
5-
[![GoDoc](https://pkg.go.dev/badge/github.com/wlxwlxwlx/mcp-go.svg)](https://pkg.go.dev/github.com/wlxwlxwlx/mcp-go)
3+
[![Build](https://github.com/mark3labs/mcp-go/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/mark3labs/mcp-go/actions/workflows/ci.yml)
4+
[![Go Report Card](https://goreportcard.com/badge/github.com/mark3labs/mcp-go?cache)](https://goreportcard.com/report/github.com/mark3labs/mcp-go)
5+
[![GoDoc](https://pkg.go.dev/badge/github.com/mark3labs/mcp-go.svg)](https://pkg.go.dev/github.com/mark3labs/mcp-go)
66

77
<div align="center">
88

@@ -26,8 +26,8 @@ import (
2626
"errors"
2727
"fmt"
2828

29-
"github.com/wlxwlxwlx/mcp-go/mcp"
30-
"github.com/wlxwlxwlx/mcp-go/server"
29+
"github.com/mark3labs/mcp-go/mcp"
30+
"github.com/mark3labs/mcp-go/server"
3131
)
3232

3333
func main() {
@@ -100,7 +100,7 @@ MCP Go handles all the complex protocol details and server management, so you ca
100100
## Installation
101101

102102
```bash
103-
go get github.com/wlxwlxwlx/mcp-go
103+
go get github.com/mark3labs/mcp-go
104104
```
105105

106106
## Quickstart
@@ -115,8 +115,8 @@ import (
115115
"errors"
116116
"fmt"
117117

118-
"github.com/wlxwlxwlx/mcp-go/mcp"
119-
"github.com/wlxwlxwlx/mcp-go/server"
118+
"github.com/mark3labs/mcp-go/mcp"
119+
"github.com/mark3labs/mcp-go/server"
120120
)
121121

122122
func main() {
@@ -548,7 +548,7 @@ Go version >= 1.23
548548
Create a fork of this repository, then clone it:
549549

550550
```bash
551-
git clone https://github.com/wlxwlxwlx/mcp-go.git
551+
git clone https://github.com/mark3labs/mcp-go.git
552552
cd mcp-go
553553
```
554554

client/client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"encoding/json"
77
"fmt"
88

9-
"github.com/wlxwlxwlx/mcp-go/mcp"
9+
"github.com/mark3labs/mcp-go/mcp"
1010
)
1111

1212
// MCPClient represents an MCP client interface

client/sse.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import (
1515
"sync/atomic"
1616
"time"
1717

18-
"github.com/wlxwlxwlx/mcp-go/mcp"
18+
"github.com/mark3labs/mcp-go/mcp"
1919
)
2020

2121
// SSEMCPClient implements the MCPClient interface using Server-Sent Events (SSE).

client/sse_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import (
55
"testing"
66
"time"
77

8-
"github.com/wlxwlxwlx/mcp-go/mcp"
9-
"github.com/wlxwlxwlx/mcp-go/server"
8+
"github.com/mark3labs/mcp-go/mcp"
9+
"github.com/mark3labs/mcp-go/server"
1010
)
1111

1212
func TestSSEMCPClient(t *testing.T) {

client/stdio.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212
"sync"
1313
"sync/atomic"
1414

15-
"github.com/wlxwlxwlx/mcp-go/mcp"
15+
"github.com/mark3labs/mcp-go/mcp"
1616
)
1717

1818
// StdioMCPClient implements the MCPClient interface using stdio communication.

client/stdio_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212
"testing"
1313
"time"
1414

15-
"github.com/wlxwlxwlx/mcp-go/mcp"
15+
"github.com/mark3labs/mcp-go/mcp"
1616
)
1717

1818
func compileTestServer(outputPath string) error {

examples/custom_context/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ import (
1010
"net/http"
1111
"os"
1212

13-
"github.com/wlxwlxwlx/mcp-go/mcp"
14-
"github.com/wlxwlxwlx/mcp-go/server"
13+
"github.com/mark3labs/mcp-go/mcp"
14+
"github.com/mark3labs/mcp-go/server"
1515
)
1616

1717
// authKey is a custom context key for storing the auth token.

examples/everything/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import (
77
"log"
88
"time"
99

10-
"github.com/wlxwlxwlx/mcp-go/mcp"
11-
"github.com/wlxwlxwlx/mcp-go/server"
10+
"github.com/mark3labs/mcp-go/mcp"
11+
"github.com/mark3labs/mcp-go/server"
1212
)
1313

1414
type ToolName string

examples/filesystem_stdio_client/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import (
77
"log"
88
"time"
99

10-
"github.com/wlxwlxwlx/mcp-go/client"
11-
"github.com/wlxwlxwlx/mcp-go/mcp"
10+
"github.com/mark3labs/mcp-go/client"
11+
"github.com/mark3labs/mcp-go/mcp"
1212
)
1313

1414
func main() {

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module github.com/wlxwlxwlx/mcp-go
1+
module github.com/mark3labs/mcp-go
22

33
go 1.23
44

server/hooks.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

server/internal/gen/hooks.go.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"errors"
99
"fmt"
1010

11-
"github.com/wlxwlxwlx/mcp-go/mcp"
11+
"github.com/mark3labs/mcp-go/mcp"
1212
)
1313

1414
// OnRegisterSessionHookFunc is a hook that will be called when a new session is registered.

server/internal/gen/request_handler.go.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"errors"
99
"fmt"
1010

11-
"github.com/wlxwlxwlx/mcp-go/mcp"
11+
"github.com/mark3labs/mcp-go/mcp"
1212
)
1313

1414
// HandleMessage processes an incoming JSON-RPC message and returns an appropriate response

server/request_handler.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

server/server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111
"sort"
1212
"sync"
1313

14-
"github.com/wlxwlxwlx/mcp-go/mcp"
14+
"github.com/mark3labs/mcp-go/mcp"
1515
)
1616

1717
// resourceEntry holds both a resource and its handler

server/server_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ import (
99
"testing"
1010
"time"
1111

12+
"github.com/mark3labs/mcp-go/mcp"
1213
"github.com/stretchr/testify/assert"
1314
"github.com/stretchr/testify/require"
14-
"github.com/wlxwlxwlx/mcp-go/mcp"
1515
)
1616

1717
func TestMCPServer_NewMCPServer(t *testing.T) {

server/sse.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import (
1313
"time"
1414

1515
"github.com/google/uuid"
16-
"github.com/wlxwlxwlx/mcp-go/mcp"
16+
"github.com/mark3labs/mcp-go/mcp"
1717
)
1818

1919
// sseSession represents an active SSE connection.

server/sse_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import (
1313
"testing"
1414
"time"
1515

16-
"github.com/wlxwlxwlx/mcp-go/mcp"
16+
"github.com/mark3labs/mcp-go/mcp"
1717
)
1818

1919
func TestSSEServer(t *testing.T) {

server/stdio.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212
"sync/atomic"
1313
"syscall"
1414

15-
"github.com/wlxwlxwlx/mcp-go/mcp"
15+
"github.com/mark3labs/mcp-go/mcp"
1616
)
1717

1818
// StdioContextFunc is a function that takes an existing context and returns

server/stdio_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
"os"
1010
"testing"
1111

12-
"github.com/wlxwlxwlx/mcp-go/mcp"
12+
"github.com/mark3labs/mcp-go/mcp"
1313
)
1414

1515
func TestStdioServer(t *testing.T) {

0 commit comments

Comments
 (0)