You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/blockchain-development-tutorials/use-AI-to-build-on-flow/mcp/contribute-to-mcp.md
+15-15Lines changed: 15 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,11 +14,11 @@ keywords:
14
14
15
15
# Contribute to Flow MCP
16
16
17
-
This tutorial will guide you through the process of contributing to the Flow MCP server. The [Model Context Protocol (MCP)] is an open standard developed by Anthropic that enables AI applications to interact seamlessly with external tools, systems, and data sources.
17
+
This tutorial will guide you through the process of contributing to the Flow MCP server. The [Model Context Protocol (MCP)] is an open standard developed by Anthropic that allows AI applications to interact seamlessly with external tools, systems, and data sources.
18
18
19
-
## Learning Objectives
19
+
## Learning objectives
20
20
21
-
After completing this tutorial, you should be able to:
21
+
After you complete this tutorial, you should be able to:
22
22
23
23
- Set up and build the Flow MCP server development environment.
24
24
- Create and register a new Action Tool, including schema, handler, and tests.
@@ -27,34 +27,34 @@ After completing this tutorial, you should be able to:
27
27
28
28
## Prerequisites
29
29
30
-
-[Bun] - the JavaScript runtime
31
-
-[Flow MCP server] - the Flow MCP server repository
30
+
-[Bun] - the JavaScript runtime.
31
+
-[Flow MCP server] - the Flow MCP server repository.
1. Create a new folder in the `src/tools` directory
57
+
1. Create a new folder in the `src/tools` directory:
58
58
59
59
```bash
60
60
mkdir src/tools/your-tool-name
@@ -75,9 +75,9 @@ After completing this tutorial, you should be able to:
75
75
76
76
If you want to add new Cadence files foryour new tool, you can add themin the `src/cadence` directory. The `bun` will compile the Cadence files into `String`, so the dedicated Cadence files will help the project to be more organized.
77
77
78
-
And it is recommended to add a testforyour new toolin the `src/tools/your-tool-name/your-tool.test.ts` file.
78
+
And we recommended that you add a testforyour new toolin the `src/tools/your-tool-name/your-tool.test.ts` file.
79
79
80
-
3. Add a prompt exportin the `src/prompts` directory which is used to ensure MCP client can understand the new tool. You can refer to the existing tools for examples.
80
+
3. Add a prompt exportin the `src/prompts` directory which is used to confirm that MCP clients can understand the new tool. You can refer to the existing tools for examples.
81
81
82
82
4. Add your new tool to the `src/tools/index.ts` file.
83
83
@@ -90,15 +90,15 @@ After completing this tutorial, you should be able to:
90
90
};
91
91
```
92
92
93
-
5. Run the test to ensure your new tool works as expected
93
+
5. Run the test to confirm your new tool works as expected:
94
94
95
95
```bash
96
96
bun test
97
97
```
98
98
99
99
6. Commit and push your changes to your forked repository, and create a pull request.
100
100
101
-
We will review your pull request and merge it if it is ready.
101
+
We will review your pull request and merge it if it's ready.
Copy file name to clipboardExpand all lines: docs/blockchain-development-tutorials/use-AI-to-build-on-flow/mcp/index.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,21 +14,21 @@ keywords:
14
14
15
15
# Flow MCP (Model Context Protocol)
16
16
17
-
The Model Context Protocol (MCP) is an open standard that enables AI applications to interact seamlessly with external tools, systems, and data sources. Flow MCP extends this protocol to provide AI tools with direct access to Flow blockchain data, smart contracts, and onchain operations. This integration allows developers to enhance their AI-powered development workflows with real-time blockchain information and automated Flow interactions.
17
+
The Model Context Protocol (MCP) is an open standard that allows AI applications to interact seamlessly with external tools, systems, and data sources. Flow MCP extends this protocol to provide AI tools with direct access to Flow blockchain data, smart contracts, and onchain operations. This integration allows developers to enhance their AI-powered development workflows with real-time blockchain information and automated Flow interactions.
18
18
19
-
Flow MCP transforms how developers work with the Flow blockchain by bringing blockchain capabilities directly into AI-powered code editors and development tools, eliminating the need to switch between different interfaces and enabling more efficient, context-aware development experiences.
19
+
Flow MCP transforms how developers work with the Flow blockchain by bringing blockchain capabilities directly into AI-powered code editors and development tools, which eliminates the need to switch between different interfaces and allows more efficient, context-aware development experiences.
20
20
21
21
## [Use Flow MCP in Cursor]
22
22
23
-
Learn how to integrate the Flow MCP server with Cursor to enable AI-driven blockchain queries directly within your code editor. This tutorial guides you through setting up Flow MCP in Cursor, allowing the AI to fetch onchain data such as account balances, contract information, and blockchain state without leaving your development environment. By the end of this tutorial, you'll be able to ask Cursor's AI to perform Flow blockchain operations, speed up development workflows, and access live blockchain data for enhanced debugging and prototyping.
23
+
Learn how to integrate the Flow MCP server with Cursor to turn on AI-driven blockchain queries directly within your code editor. This tutorial guides you through how to set up Flow MCP in Cursor, which allows the AI to fetch onchain data such as account balances, contract information, and blockchain state without leaving your development environment. By the end of this tutorial, you'll be able to ask Cursor's AI to perform Flow blockchain operations, speed up development workflows, and access live blockchain data for enhanced debugging and prototyping.
24
24
25
25
## [Contribute to Flow MCP]
26
26
27
-
Discover how to extend the Flow MCP server by creating custom Action Tools that add new blockchain interaction capabilities. This comprehensive guide walks you through the development process, from setting up the development environment to submitting pull requests for new features. Learn to create new tools with proper schemas, handlers, and tests, while following Flow MCP's contribution guidelines. This tutorial empowers developers to expand the Flow MCP ecosystem by adding specialized blockchain tools that benefit the entire Flow developer community.
27
+
Discover how to extend the Flow MCP server by creating custom Action Tools that add new blockchain interaction capabilities. This comprehensive guide walks you through the development process, from how to set up the development environment to how to submit pull requests for new features. Learn to create new tools with proper schemas, handlers, and tests, while following Flow MCP's contribution guidelines. This tutorial empowers developers to expand the Flow MCP ecosystem by adding specialized blockchain tools that benefit the entire Flow developer community.
28
28
29
29
## Conclusion
30
30
31
-
Flow MCP bridges the gap between AI development tools and blockchain functionality, enabling developers to access Flow's comprehensive blockchain features directly through AI-powered interfaces. Whether you're using existing MCP tools in Cursor or contributing new capabilities to the Flow MCP server, these tutorials provide the foundation for integrating blockchain operations into your AI-enhanced development workflow.
31
+
Flow MCP bridges the gap between AI development tools and blockchain functionality, which allows developers to access Flow's comprehensive blockchain features directly through AI-powered interfaces. Whether you're using MCP tools in Cursor or contributing new capabilities to the Flow MCP server, these tutorials provide the foundation for integrating blockchain operations into your AI-enhanced development workflow.
32
32
33
33
<!-- Reference-style links, will not render on page. -->
Copy file name to clipboardExpand all lines: docs/blockchain-development-tutorials/use-AI-to-build-on-flow/mcp/use-mcp-in-cursor.md
+18-18Lines changed: 18 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,7 +28,7 @@ keywords:
28
28
29
29
Adding Flow MCP to Cursor gives you powerful AI-driven tools directly inside your code editor. It allows Cursor's AI to understand, query, and interact with Flow blockchain data and smart contracts through a standard protocol called the Model Context Protocol (MCP).
30
30
31
-
Specifically, it enables you to:
31
+
Specifically, it lets you:
32
32
33
33
- Ask the AI in Cursor to fetch onchain data such as account balances, account information, or contract source code without leaving your editor.
34
34
- Speed up development by letting AI perform blockchain queries that would normally require manual steps.
@@ -38,20 +38,20 @@ Specifically, it enables you to:
38
38
39
39
This tutorial will guide you through setting up and using Flow MCP in [Cursor] to enhance your Flow blockchain development experience with AI assistance.
40
40
41
-
## Learning Objectives
41
+
## Learning objectives
42
42
43
-
After completing this tutorial, you should be able to:
43
+
After you complete this tutorial, you should be able to:
44
44
45
45
- Configure Cursor to connect with the Flow MCP server using the MCP protocol.
46
46
- Install and launch the Flow MCP server locally through Cursor.
47
-
- Identify when Flow MCP tools are successfully loaded and ready inside Cursor.
47
+
- Identify when Flow MCP tools successfully load and are ready inside Cursor.
48
48
- Use Flow MCP tools to retrieve blockchain data such as account balances, account details, and contract source code.
49
49
- Troubleshoot common setup and connectivity issues between Cursor and Flow MCP.
50
50
51
51
## Prerequisites
52
52
53
-
-[Cursor] - the AI code editor
54
-
-[Flow MCP GitHub Repository] - the Flow MCP server repository
53
+
-[Cursor] - the AI code editor.
54
+
-[Flow MCP GitHub Repository] - the Flow MCP server repository.
55
55
56
56
## Installation
57
57
@@ -82,35 +82,35 @@ After completing this tutorial, you should be able to:
82
82
83
83
3. Restart Cursor to load the new MCP configuration.
84
84
85
-
You need to wait for the MCP server to start. Once it's ready, you will see there will be a green spot in the left side of `flow-mcp` server name label and all tools for Flow MCP will be displayed.
85
+
You need to wait for the MCP server to start. After it's ready, a green spot appears in the left side of `flow-mcp` server name label, and all tools for Flow MCP display.
86
86
87
87

88
88
89
89
## How to use Flow MCP in Cursor
90
90
91
-
### Checking Flow Balance
91
+
### Check Flow balance
92
92
93
93

94
94
95
-
### Viewing Account Information
95
+
### View account information
96
96
97
97

98
98
99
-
### Getting Contract Source Code
99
+
### Get contract source code
100
100
101
101

102
102
103
103
## Troubleshooting
104
104
105
105
If you encounter any issues:
106
106
107
-
1. Ensure the MCP server is properly installed
108
-
2. Verify the configuration file is in the correct location
109
-
3. Check that the paths in the configuration are correct
110
-
4. Try restarting Cursor
111
-
5. Check the console for any error messages
107
+
1. Ensure the MCP server is properly installed.
108
+
2. Verify the configuration file is in the correct location.
109
+
3. Check that the paths in the configuration are correct.
110
+
4. Try restarting Cursor.
111
+
5. Check the console for any error messages.
112
112
113
-
## Additional Resources
113
+
## Additional resources
114
114
115
115
-[Flow MCP GitHub Repository]
116
116
-[Cursor Documentation]
@@ -120,8 +120,8 @@ If you encounter any issues:
120
120
121
121
For issues or questions:
122
122
123
-
- Open an issue on the [Flow MCP GitHub Repository]
124
-
- Join the [Flow Discord] community
123
+
- Open an issue on the [Flow MCP GitHub Repository].
0 commit comments