Coding with AI¶
AgentScope Java documentation supports the llms.txt standard, providing a machine-readable index optimized for Large Language Models. This allows you to use the documentation as context in your AI-powered development environment.
What is llms.txt?¶
llms.txt is a standardized text file that acts as a map for LLMs, listing the most important documentation pages and their descriptions. This helps AI tools understand the structure of the documentation and retrieve relevant information.
AgentScope provides the following files:
File |
Best For |
URL |
|---|---|---|
|
Tools that can fetch links dynamically |
|
|
Tools that need a single, static text dump |
|
Development Tools¶
Claude Code¶
Claude Code can be configured to query the AgentScope documentation by adding an MCP server.
Installation:
claude mcp add agentscope-docs -- uvx --from mcpdoc mcpdoc --urls AgentScopeJava:https://java.agentscope.io/llms.txt
Usage:
Once installed, you can ask questions about AgentScope directly in Claude Code:
How do I create a tool with AgentScope Java?
Cursor¶
Cursor IDE can be configured to access the AgentScope documentation in two ways.
Method 1: Docs Feature (Recommended)
Open Cursor Settings -> Features -> Docs
Click + Add new Doc
Add URL:
https://java.agentscope.io/llms-full.txt
Method 2: MCP Server
Open Cursor Settings -> Tools & MCP
Click New MCP Server to edit
mcp.jsonAdd the following configuration:
{
"mcpServers": {
"agentscope-docs": {
"command": "uvx",
"args": [
"--from", "mcpdoc", "mcpdoc",
"--urls", "AgentScopeJava:https://java.agentscope.io/llms.txt"
]
}
}
}
Usage:
Once configured, you can prompt the coding agent:
Use the AgentScope docs to build a ReActAgent with a weather tool.
Windsurf¶
Windsurf supports MCP servers for documentation access.
Configuration:
Open Windsurf Settings
Navigate to MCP configuration
Add the following server:
{
"mcpServers": {
"agentscope-docs": {
"command": "uvx",
"args": [
"--from", "mcpdoc", "mcpdoc",
"--urls", "AgentScopeJava:https://java.agentscope.io/llms.txt"
]
}
}
}
Other Tools¶
Any tool that supports the llms.txt standard or can ingest documentation from a URL can benefit from these files.
For tools with Docs/Knowledge Base feature:
Add URL:
https://java.agentscope.io/llms-full.txt
For tools with MCP support:
Use the MCP configuration template above with
mcpdoc
Prerequisites:
MCP configurations require uv to be installed, as they use uvx to run the documentation server.